Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9de2be8 commit e1e03e3Copy full SHA for e1e03e3
1 file changed
java/ql/src/Security/CWE/CWE-036/OpenStream.ql
@@ -1,3 +1,11 @@
1
+/**
2
+ * @name Calling openStream on URLs created from remote source can lead to file disclosure
3
+ * @description If openStream is called on a java.net.URL, that was created from a remote source
4
+ * an attacker can try to pass absolute URLs starting with file:// or jar:// to access
5
+ * local resources in addition to remote ones.
6
+ * @kind path-problem
7
+ */
8
+
9
import java
10
import semmle.code.java.dataflow.TaintTracking
11
import semmle.code.java.dataflow.FlowSources
0 commit comments