mirror of
https://github.com/github/codeql.git
synced 2026-04-10 17:44:03 +02:00
23 lines
806 B
Plaintext
23 lines
806 B
Plaintext
/**
|
|
* @name Remote property injection
|
|
* @description Allowing writes to arbitrary properties of an object may lead to
|
|
* denial-of-service attacks.
|
|
* @kind path-problem
|
|
* @problem.severity warning
|
|
* @security-severity 7.5
|
|
* @precision medium
|
|
* @id js/remote-property-injection
|
|
* @tags security
|
|
* external/cwe/cwe-250
|
|
* external/cwe/cwe-400
|
|
*/
|
|
|
|
import javascript
|
|
import semmle.javascript.security.dataflow.RemotePropertyInjectionQuery
|
|
import RemotePropertyInjectionFlow::PathGraph
|
|
|
|
from RemotePropertyInjectionFlow::PathNode source, RemotePropertyInjectionFlow::PathNode sink
|
|
where RemotePropertyInjectionFlow::flowPath(source, sink)
|
|
select sink.getNode(), source, sink, sink.getNode().(Sink).getMessage() + " depends on a $@.",
|
|
source.getNode(), "user-provided value"
|