-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Java: rename 'UnsafeUrlForward' to 'UrlForward'
- Loading branch information
Jami Cogswell
authored and
Jami Cogswell
committed
Dec 1, 2023
1 parent
c804dde
commit 62bd01f
Showing
11 changed files
with
57 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 0 additions & 18 deletions
18
java/ql/test/query-tests/security/CWE-552/UnsafeUrlForwardTest.ql
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
java/ql/test/query-tests/security/CWE-552/UrlForwardTest.ql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import java | ||
import TestUtilities.InlineExpectationsTest | ||
import semmle.code.java.security.UrlForwardQuery | ||
|
||
module UrlForwardTest implements TestSig { | ||
string getARelevantTag() { result = "hasUrlForward" } | ||
|
||
predicate hasActualResult(Location location, string element, string tag, string value) { | ||
tag = "hasUrlForward" and | ||
exists(UrlForwardFlow::PathNode sink | UrlForwardFlow::flowPath(_, sink) | | ||
location = sink.getNode().getLocation() and | ||
element = sink.getNode().toString() and | ||
value = "" | ||
) | ||
} | ||
} | ||
|
||
import MakeTest<UrlForwardTest> |