mirror of
https://github.com/github/codeql.git
synced 2026-04-05 23:28:17 +02:00
24 lines
759 B
Plaintext
24 lines
759 B
Plaintext
/**
|
|
* @name Reflected server-side cross-site scripting
|
|
* @description Writing user input directly to a web page
|
|
* allows for a cross-site scripting vulnerability.
|
|
* @kind path-problem
|
|
* @problem.severity error
|
|
* @security-severity 7.8
|
|
* @sub-severity high
|
|
* @precision high
|
|
* @id py/reflective-xss
|
|
* @tags security
|
|
* external/cwe/cwe-079
|
|
* external/cwe/cwe-116
|
|
*/
|
|
|
|
import python
|
|
import semmle.python.security.dataflow.ReflectedXssQuery
|
|
import ReflectedXssFlow::PathGraph
|
|
|
|
from ReflectedXssFlow::PathNode source, ReflectedXssFlow::PathNode sink
|
|
where ReflectedXssFlow::flowPath(source, sink)
|
|
select sink.getNode(), source, sink, "Cross-site scripting vulnerability due to a $@.",
|
|
source.getNode(), "user-provided value"
|