Java: Deprecate the local content of UrlRedirectLocalQuery and remove the local query variant.

This commit is contained in:
Michael Nebel
2024-05-01 10:56:19 +02:00
parent ed7538d0b9
commit d9c7401ea2
3 changed files with 4 additions and 28 deletions

View File

@@ -1,5 +0,0 @@
<!DOCTYPE qhelp PUBLIC
"-//Semmle//qhelp//EN"
"qhelp.dtd">
<qhelp>
<include src="UrlRedirect.qhelp" /></qhelp>

View File

@@ -1,21 +0,0 @@
/**
* @name URL redirection from local source
* @description URL redirection based on unvalidated user-input
* may cause redirection to malicious web sites.
* @kind path-problem
* @problem.severity recommendation
* @security-severity 6.1
* @precision medium
* @id java/unvalidated-url-redirection-local
* @tags security
* external/cwe/cwe-601
*/
import java
import semmle.code.java.security.UrlRedirectLocalQuery
import UrlRedirectLocalFlow::PathGraph
from UrlRedirectLocalFlow::PathNode source, UrlRedirectLocalFlow::PathNode sink
where UrlRedirectLocalFlow::flowPath(source, sink)
select sink.getNode(), source, sink, "Untrusted URL redirection depends on a $@.", source.getNode(),
"user-provided value"