Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
from twisted.web.twcgi import CGIScript # S412
import twisted.web.twcgi.CGIScript # S412
from wsgiref.handlers import CGIHandler # S412
import wsgiref.handlers.CGIHandler # S412
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
from twisted.web.twcgi import CGIScript
import twisted.web.twcgi.CGIScript
from wsgiref.handlers import CGIHandler
import wsgiref.handlers.CGIHandler
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,9 @@ pub(crate) fn suspicious_imports(checker: &Checker, stmt: &Stmt) {
"xmlrpc" => {
checker.report_diagnostic_if_enabled(SuspiciousXmlrpcImport, name.range);
}
"wsgiref.handlers.CGIHandler" | "twisted.web.twcgi.CGIScript" => {
checker.report_diagnostic_if_enabled(SuspiciousHttpoxyImport, name.range);
}
"Crypto.Cipher" | "Crypto.Hash" | "Crypto.IO" | "Crypto.Protocol"
| "Crypto.PublicKey" | "Crypto.Random" | "Crypto.Signature" | "Crypto.Util" => {
checker.report_diagnostic_if_enabled(SuspiciousPycryptoImport, name.range);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,36 @@
---
source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs
snapshot_kind: text
---
S412.py:1:6: S412 `httpoxy` is a set of vulnerabilities that affect application code running inCGI, or CGI-like environments. The use of CGI for web applications should be avoided
|
1 | from twisted.web.twcgi import CGIScript # S412
| ^^^^^^^^^^^^^^^^^ S412
2 | import twisted.web.twcgi.CGIScript # S412
3 | from wsgiref.handlers import CGIHandler # S412
|

S412.py:2:8: S412 `httpoxy` is a set of vulnerabilities that affect application code running inCGI, or CGI-like environments. The use of CGI for web applications should be avoided
|
1 | from twisted.web.twcgi import CGIScript # S412
2 | import twisted.web.twcgi.CGIScript # S412
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ S412
3 | from wsgiref.handlers import CGIHandler # S412
4 | import wsgiref.handlers.CGIHandler # S412
|

S412.py:3:6: S412 `httpoxy` is a set of vulnerabilities that affect application code running inCGI, or CGI-like environments. The use of CGI for web applications should be avoided
|
1 | from twisted.web.twcgi import CGIScript # S412
2 | import twisted.web.twcgi.CGIScript # S412
3 | from wsgiref.handlers import CGIHandler # S412
| ^^^^^^^^^^^^^^^^ S412
4 | import wsgiref.handlers.CGIHandler # S412
|

S412.py:4:8: S412 `httpoxy` is a set of vulnerabilities that affect application code running inCGI, or CGI-like environments. The use of CGI for web applications should be avoided
|
2 | import twisted.web.twcgi.CGIScript # S412
3 | from wsgiref.handlers import CGIHandler # S412
4 | import wsgiref.handlers.CGIHandler # S412
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ S412
|
Loading