mirror of
https://github.com/github/codeql.git
synced 2026-03-24 00:16:49 +01:00
JS: polish FileAccessToHttp.ql
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
/**
|
||||
* @name File Access data flows to Http POST/PUT
|
||||
* @description Writing data from file directly to http body or request header can be an indication to data exfiltration or unauthorized information disclosure.
|
||||
* @name File data in outbound remote request
|
||||
* @description Directly sending file data in an outbound remote request can indicate unauthorized information disclosure.
|
||||
* @kind problem
|
||||
* @problem.severity warning
|
||||
* @id js/file-access-to-http
|
||||
@@ -11,6 +11,6 @@
|
||||
import javascript
|
||||
import semmle.javascript.security.dataflow.FileAccessToHttp
|
||||
|
||||
from FileAccessToHttpDataFlow::Configuration config, DataFlow::Node src, DataFlow::Node sink
|
||||
from FileAccessToHttp::Configuration config, DataFlow::Node src, DataFlow::Node sink
|
||||
where config.hasFlow (src, sink)
|
||||
select src, "$@ flows directly to Http request body", sink, "File access"
|
||||
select sink, "$@ flows directly to outbound remote request", src, "File data"
|
||||
|
||||
Reference in New Issue
Block a user