Skip to content

Commit 6e7c054

Browse files
Jami CogswellJami Cogswell
authored andcommitted
Java: update query metadata and alert message
1 parent 5a9d755 commit 6e7c054

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed
Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
/**
2-
* @name Unsafe URL forward or include from a remote source
3-
* @description URL forward or include based on unvalidated user-input
4-
* may cause file information disclosure.
2+
* @name URL forward from a remote source
3+
* @description URL forward based on unvalidated user-input
4+
* may cause file information disclosure or
5+
* redirection to malicious web sites.
56
* @kind path-problem
67
* @problem.severity error
8+
* @security-severity 6.1
79
* @precision high
8-
* @id java/unsafe-url-forward-include
10+
* @id java/unvalidated-url-forward
911
* @tags security
10-
* external/cwe-552
12+
* external/cwe/cwe-552
13+
* external/cwe/cwe-601
1114
*/
1215

1316
import java
@@ -16,5 +19,5 @@ import UnsafeUrlForwardFlow::PathGraph
1619

1720
from UnsafeUrlForwardFlow::PathNode source, UnsafeUrlForwardFlow::PathNode sink
1821
where UnsafeUrlForwardFlow::flowPath(source, sink)
19-
select sink.getNode(), source, sink, "Potentially untrusted URL forward due to $@.",
20-
source.getNode(), "user-provided value"
22+
select sink.getNode(), source, sink, "Untrusted URL forward depends on a $@.", source.getNode(),
23+
"user-provided value"

0 commit comments

Comments
 (0)