Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c3f71c2

Browse files
committed
Java: Change main ZipSlip location to the source.
1 parent 36f41a3 commit c3f71c2

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

java/ql/src/Security/CWE/CWE-022/ZipSlip.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,5 +172,5 @@ class ZipSlipConfiguration extends TaintTracking::Configuration {
172172

173173
from Node source, Node sink
174174
where any(ZipSlipConfiguration c).hasFlow(source, sink)
175-
select sink, "Unsanitized $@, which may contain '..', is used in a file system operation.", source,
176-
"archive entry"
175+
select source, "Unsanitized archive entry, which may contain '..', is used in a $@.", sink,
176+
"file system operation"
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
| ZipTest.java:9:48:9:51 | file | Unsanitized $@, which may contain '..', is used in a file system operation. | ZipTest.java:7:19:7:33 | getName(...) | archive entry |
2-
| ZipTest.java:10:49:10:52 | file | Unsanitized $@, which may contain '..', is used in a file system operation. | ZipTest.java:7:19:7:33 | getName(...) | archive entry |
3-
| ZipTest.java:11:36:11:39 | file | Unsanitized $@, which may contain '..', is used in a file system operation. | ZipTest.java:7:19:7:33 | getName(...) | archive entry |
1+
| ZipTest.java:7:19:7:33 | getName(...) | Unsanitized archive entry, which may contain '..', is used in a $@. | ZipTest.java:9:48:9:51 | file | file system operation |
2+
| ZipTest.java:7:19:7:33 | getName(...) | Unsanitized archive entry, which may contain '..', is used in a $@. | ZipTest.java:10:49:10:52 | file | file system operation |
3+
| ZipTest.java:7:19:7:33 | getName(...) | Unsanitized archive entry, which may contain '..', is used in a $@. | ZipTest.java:11:36:11:39 | file | file system operation |

0 commit comments

Comments
 (0)