We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 906afd2 + 845148d commit 697bf35Copy full SHA for 697bf35
src/main/java/org/joychou/controller/URLRedirect.java
@@ -26,6 +26,15 @@ public class URLRedirect {
26
public String redirect(@RequestParam("url") String url) {
27
return "redirect:" + url;
28
}
29
+ /**
30
+ * @disc: 存在URL重定向漏洞
31
+ * @fix: 添加URL白名单 https://github.com/JoyChou93/trident/blob/master/src/main/java/CheckURL.java
32
+ */
33
+ @GetMapping("/redirect")
34
+ public String redirect(@RequestParam("url") String url) {
35
+ return "redirect:" + url;
36
+ }
37
+
38
/**
39
* @disc: 存在URL重定向漏洞
40
* @fix: 添加URL白名单 https://github.com/JoyChou93/trident/blob/master/src/main/java/CheckURL.java
0 commit comments