mirror of
https://github.com/github/codeql.git
synced 2026-04-28 02:05:14 +02:00
23 lines
711 B
Plaintext
23 lines
711 B
Plaintext
/**
|
|
* @name Stored cross-site scripting
|
|
* @description Using uncontrolled stored values in HTML allows for
|
|
* a stored cross-site scripting vulnerability.
|
|
* @kind path-problem
|
|
* @problem.severity error
|
|
* @security-severity 6.1
|
|
* @precision high
|
|
* @id js/stored-xss
|
|
* @tags security
|
|
* external/cwe/cwe-079
|
|
* external/cwe/cwe-116
|
|
*/
|
|
|
|
import javascript
|
|
import semmle.javascript.security.dataflow.StoredXssQuery
|
|
import DataFlow::PathGraph
|
|
|
|
from Configuration cfg, DataFlow::PathNode source, DataFlow::PathNode sink
|
|
where cfg.hasFlowPath(source, sink)
|
|
select sink.getNode(), source, sink, "Stored cross-site scripting vulnerability due to $@.",
|
|
source.getNode(), "stored value"
|