|
11 | 11 |
|
12 | 12 | <groupId>com.best</groupId> |
13 | 13 | <artifactId>javasec</artifactId> |
14 | | - <version>1.7</version> |
| 14 | + <version>1.10</version> |
15 | 15 | <name>hello java sec</name> |
16 | 16 | <description>Java Sec</description> |
17 | 17 | <packaging>jar</packaging> |
18 | 18 |
|
19 | 19 | <properties> |
20 | 20 | <java.version>1.8</java.version> |
| 21 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
21 | 22 | </properties> |
22 | 23 |
|
| 24 | + <!-- 仓库搜索 https://mvnrepository.com --> |
23 | 25 | <dependencies> |
24 | 26 | <dependency> |
25 | 27 | <groupId>org.springframework.boot</groupId> |
|
43 | 45 | <dependency> |
44 | 46 | <groupId>org.mybatis.spring.boot</groupId> |
45 | 47 | <artifactId>mybatis-spring-boot-starter</artifactId> |
46 | | - <version>2.1.4</version> |
| 48 | + <version>2.2.2</version> |
| 49 | + </dependency> |
| 50 | + |
| 51 | + <!-- jndi ldap --> |
| 52 | + <dependency> |
| 53 | + <groupId>com.unboundid</groupId> |
| 54 | + <artifactId>unboundid-ldapsdk</artifactId> |
47 | 55 | </dependency> |
48 | 56 |
|
49 | 57 | <!-- mysql驱动 --> |
50 | 58 | <dependency> |
51 | 59 | <groupId>mysql</groupId> |
52 | 60 | <artifactId>mysql-connector-java</artifactId> |
| 61 | + <version>8.0.28</version> |
53 | 62 | <scope>runtime</scope> |
54 | 63 | </dependency> |
55 | 64 |
|
|
69 | 78 | <dependency> |
70 | 79 | <groupId>com.alibaba</groupId> |
71 | 80 | <artifactId>fastjson</artifactId> |
72 | | - <version>1.2.24</version> |
| 81 | + <version>1.2.41</version> |
73 | 82 | </dependency> |
74 | 83 |
|
75 | 84 | <!-- xstream多个rce --> |
|
136 | 145 | <artifactId>springfox-swagger2</artifactId> |
137 | 146 | <version>2.9.2</version> |
138 | 147 | </dependency> |
| 148 | + |
139 | 149 | <dependency> |
140 | 150 | <groupId>org.jsoup</groupId> |
141 | 151 | <artifactId>jsoup</artifactId> |
|
181 | 191 | <version>2.11.0</version> |
182 | 192 | </dependency> |
183 | 193 |
|
184 | | - <!-- webservice --> |
185 | | - <!-- |
186 | 194 | <dependency> |
187 | | - <groupId>org.apache.cxf</groupId> |
188 | | - <artifactId>cxf-spring-boot-starter-jaxws</artifactId> |
189 | | - <version>3.2.5</version> |
| 195 | + <groupId>org.apache.commons</groupId> |
| 196 | + <artifactId>commons-text</artifactId> |
| 197 | + <version>1.9</version> |
190 | 198 | </dependency> |
191 | | - --> |
192 | 199 |
|
193 | 200 | <!-- snakeyaml rce--> |
194 | 201 | <dependency> |
195 | 202 | <groupId>org.yaml</groupId> |
196 | 203 | <artifactId>snakeyaml</artifactId> |
197 | | - <version>1.17</version> |
| 204 | + <version>1.27</version> |
198 | 205 | </dependency> |
199 | 206 |
|
200 | 207 | <!-- 高版本会报错! --> |
|
204 | 211 | <version>2.2.0.0</version> |
205 | 212 | </dependency> |
206 | 213 |
|
207 | | - <!-- log4j 远程代码执行 2.15.0依赖已修复 --> |
| 214 | + <!-- log4Shell --> |
208 | 215 | <dependency> |
209 | 216 | <groupId>org.apache.logging.log4j</groupId> |
210 | 217 | <artifactId>log4j-core</artifactId> |
|
233 | 240 | <groupId>com.google.re2j</groupId> |
234 | 241 | <artifactId>re2j</artifactId> |
235 | 242 | <version>1.6</version> |
236 | | - |
237 | 243 | </dependency> |
238 | 244 |
|
| 245 | + |
| 246 | + <!-- 图形验证码 --> |
239 | 247 | <dependency> |
240 | 248 | <groupId>com.github.whvcse</groupId> |
241 | 249 | <artifactId>easy-captcha</artifactId> |
242 | 250 | <version>1.6.2</version> |
243 | 251 | </dependency> |
244 | 252 |
|
| 253 | + <dependency> |
| 254 | + <groupId>org.mindrot</groupId> |
| 255 | + <artifactId>jbcrypt</artifactId> |
| 256 | + <version>0.4</version> |
| 257 | + </dependency> |
| 258 | + |
| 259 | + <!-- JWT --> |
| 260 | + <dependency> |
| 261 | + <groupId>com.auth0</groupId> |
| 262 | + <artifactId>java-jwt</artifactId> |
| 263 | + <version>4.2.1</version> |
| 264 | + </dependency> |
| 265 | + |
| 266 | + <dependency> |
| 267 | + <groupId>io.jsonwebtoken</groupId> |
| 268 | + <artifactId>jjwt</artifactId> |
| 269 | + <version>0.9.1</version> |
| 270 | + </dependency> |
| 271 | + |
| 272 | + <dependency> |
| 273 | + <groupId>com.mchange</groupId> |
| 274 | + <artifactId>c3p0</artifactId> |
| 275 | + <version>0.9.5.2</version> |
| 276 | + </dependency> |
245 | 277 |
|
246 | 278 | </dependencies> |
247 | 279 |
|
|
256 | 288 | </plugin> |
257 | 289 |
|
258 | 290 | <plugin> |
259 | | - <groupId>org.owasp</groupId> |
260 | | - <artifactId>dependency-check-maven</artifactId> |
261 | | - <version>6.5.3</version> |
262 | | - |
263 | | - <executions> |
264 | | - <execution> |
265 | | - <goals> |
266 | | - <goal>check</goal> |
267 | | - </goals> |
268 | | - </execution> |
269 | | - </executions> |
| 291 | + <groupId>org.apache.maven.plugins</groupId> |
| 292 | + <artifactId>maven-resources-plugin</artifactId> |
| 293 | + <version>3.2.0</version> |
| 294 | + <configuration> |
| 295 | + <propertiesEncoding>${project.build.sourceEncoding}</propertiesEncoding> |
| 296 | + </configuration> |
270 | 297 | </plugin> |
271 | 298 |
|
272 | 299 | <plugin> |
| 300 | + <!-- OWASP 生成物料清单SBOM,提供Dependency Track分析 --> |
273 | 301 | <groupId>org.cyclonedx</groupId> |
274 | 302 | <artifactId>cyclonedx-maven-plugin</artifactId> |
| 303 | + <version>2.7.2</version> |
275 | 304 | <executions> |
276 | 305 | <execution> |
277 | 306 | <phase>compile</phase> |
|
285 | 314 | </configuration> |
286 | 315 | </plugin> |
287 | 316 |
|
| 317 | + |
288 | 318 | </plugins> |
289 | 319 | </build> |
290 | 320 |
|
291 | | - |
292 | 321 | </project> |
0 commit comments