@@ -4,13 +4,13 @@ import semmle.python.security.strings.External
44import HttpConstants
55
66/** Generic taint source from a http request */
7- abstract class HttpRequestTaintSource extends TaintSource { }
7+ abstract deprecated class HttpRequestTaintSource extends TaintSource { }
88
99/**
1010 * Taint kind representing the WSGI environment.
1111 * As specified in PEP 3333. https://www.python.org/dev/peps/pep-3333/#environ-variables
1212 */
13- class WsgiEnvironment extends TaintKind {
13+ deprecated class WsgiEnvironment extends TaintKind {
1414 WsgiEnvironment ( ) { this = "wsgi.environment" }
1515
1616 override TaintKind getTaintForFlowStep ( ControlFlowNode fromnode , ControlFlowNode tonode ) {
@@ -43,7 +43,7 @@ class WsgiEnvironment extends TaintKind {
4343 * A standard morsel object from a HTTP request, a value in a cookie,
4444 * typically an instance of `http.cookies.Morsel`
4545 */
46- class UntrustedMorsel extends TaintKind {
46+ deprecated class UntrustedMorsel extends TaintKind {
4747 UntrustedMorsel ( ) { this = "http.Morsel" }
4848
4949 override TaintKind getTaintOfAttribute ( string name ) {
@@ -53,7 +53,7 @@ class UntrustedMorsel extends TaintKind {
5353}
5454
5555/** A standard cookie object from a HTTP request, typically an instance of `http.cookies.SimpleCookie` */
56- class UntrustedCookie extends TaintKind {
56+ deprecated class UntrustedCookie extends TaintKind {
5757 UntrustedCookie ( ) { this = "http.Cookie" }
5858
5959 override TaintKind getTaintForFlowStep ( ControlFlowNode fromnode , ControlFlowNode tonode ) {
@@ -62,7 +62,7 @@ class UntrustedCookie extends TaintKind {
6262 }
6363}
6464
65- abstract class CookieOperation extends @py_flow_node {
65+ abstract deprecated class CookieOperation extends @py_flow_node {
6666 /** Gets a textual representation of this element. */
6767 abstract string toString ( ) ;
6868
@@ -71,20 +71,20 @@ abstract class CookieOperation extends @py_flow_node {
7171 abstract ControlFlowNode getValue ( ) ;
7272}
7373
74- abstract class CookieGet extends CookieOperation { }
74+ abstract deprecated class CookieGet extends CookieOperation { }
7575
76- abstract class CookieSet extends CookieOperation { }
76+ abstract deprecated class CookieSet extends CookieOperation { }
7777
7878/** Generic taint sink in a http response */
79- abstract class HttpResponseTaintSink extends TaintSink {
79+ abstract deprecated class HttpResponseTaintSink extends TaintSink {
8080 override predicate sinks ( TaintKind kind ) { kind instanceof ExternalStringKind }
8181}
8282
83- abstract class HttpRedirectTaintSink extends TaintSink {
83+ abstract deprecated class HttpRedirectTaintSink extends TaintSink {
8484 override predicate sinks ( TaintKind kind ) { kind instanceof ExternalStringKind }
8585}
8686
87- module Client {
87+ deprecated module Client {
8888 // TODO: user-input in other than URL:
8989 // - `data`, `json` for `requests.post`
9090 // - `body` for `HTTPConnection.request`
0 commit comments