Skip to content

Commit a49b43f

Browse files
committed
Add deprecated version of renamed public classes
1 parent 317c335 commit a49b43f

12 files changed

+85
-0
lines changed

go/ql/lib/semmle/go/frameworks/Fasthttp.qll

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,11 @@ module Fasthttp {
255255
* Provide modeling for fasthttp.URI Type.
256256
*/
257257
module URI {
258+
/**
259+
* DEPRECATED: Use `RemoteFlowSource` instead.
260+
*/
261+
deprecated class UntrustedFlowSource = RemoteFlowSource;
262+
258263
/**
259264
* The methods as Remote user controllable source which are part of the incoming URL.
260265
*/
@@ -273,6 +278,11 @@ module Fasthttp {
273278
* Provide modeling for fasthttp.Args Type.
274279
*/
275280
module Args {
281+
/**
282+
* DEPRECATED: Use `RemoteFlowSource` instead.
283+
*/
284+
deprecated class UntrustedFlowSource = RemoteFlowSource;
285+
276286
/**
277287
* The methods as Remote user controllable source which are part of the incoming URL Parameters.
278288
*
@@ -386,6 +396,11 @@ module Fasthttp {
386396
* Provide modeling for fasthttp.Request Type.
387397
*/
388398
module Request {
399+
/**
400+
* DEPRECATED: Use `RemoteFlowSource` instead.
401+
*/
402+
deprecated class UntrustedFlowSource = RemoteFlowSource;
403+
389404
/**
390405
* The methods as Remote user controllable source which can be many part of request.
391406
*/
@@ -463,6 +478,11 @@ module Fasthttp {
463478
override Http::ResponseWriter getResponseWriter() { none() }
464479
}
465480

481+
/**
482+
* DEPRECATED: Use `RemoteFlowSource` instead.
483+
*/
484+
deprecated class UntrustedFlowSource = RemoteFlowSource;
485+
466486
/**
467487
* The methods as Remote user controllable source which are generally related to HTTP request.
468488
*
@@ -486,6 +506,11 @@ module Fasthttp {
486506
* Provide Methods of fasthttp.RequestHeader which mostly used as remote user controlled sources.
487507
*/
488508
module RequestHeader {
509+
/**
510+
* DEPRECATED: Use `RemoteFlowSource` instead.
511+
*/
512+
deprecated class UntrustedFlowSource = RemoteFlowSource;
513+
489514
/**
490515
* The methods as Remote user controllable source which are mostly related to HTTP Request Headers.
491516
*

go/ql/lib/semmle/go/security/CommandInjectionCustomizations.qll

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ module CommandInjection {
2929
*/
3030
abstract class Sanitizer extends DataFlow::Node { }
3131

32+
/**
33+
* DEPRECATED: Use `RemoteFlowAsSource` instead.
34+
*/
35+
deprecated class UntrustedFlowAsSource = RemoteFlowAsSource;
36+
3237
/** A source of untrusted data, considered as a taint source for command injection. */
3338
class RemoteFlowAsSource extends Source instanceof RemoteFlowSource { }
3439

go/ql/lib/semmle/go/security/FlowSources.qll

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
import go
66
private import semmle.go.dataflow.ExternalFlow as ExternalFlow
77

8+
/**
9+
* DEPRECATED: Use `RemoteFlowSource` instead.
10+
*/
11+
deprecated class UntrustedFlowSource = RemoteFlowSource;
12+
813
/**
914
* A source of data that is controlled by an untrusted user.
1015
*
@@ -13,6 +18,11 @@ private import semmle.go.dataflow.ExternalFlow as ExternalFlow
1318
*/
1419
class RemoteFlowSource extends DataFlow::Node instanceof RemoteFlowSource::Range { }
1520

21+
/**
22+
* DEPRECATED: Use `RemoteFlowSource` instead.
23+
*/
24+
deprecated module UntrustedFlowSource = RemoteFlowSource;
25+
1626
/** Provides a class for modeling new sources of untrusted data. */
1727
module RemoteFlowSource {
1828
/**

go/ql/lib/semmle/go/security/LogInjectionCustomizations.qll

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ module LogInjection {
2525
*/
2626
abstract class Sanitizer extends DataFlow::Node { }
2727

28+
/**
29+
* DEPRECATED: Use `RemoteFlowAsSource` instead.
30+
*/
31+
deprecated class UntrustedFlowAsSource = RemoteFlowAsSource;
32+
2833
/** A source of untrusted data, considered as a taint source for log injection. */
2934
class RemoteFlowAsSource extends Source instanceof RemoteFlowSource { }
3035

go/ql/lib/semmle/go/security/OpenUrlRedirectCustomizations.qll

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ module OpenUrlRedirect {
4242
abstract predicate hasTaintStep(DataFlow::Node pred, DataFlow::Node succ);
4343
}
4444

45+
/**
46+
* DEPRECATED: Use `RemoteFlowAsSource` instead.
47+
*/
48+
deprecated class UntrustedFlowAsSource = RemoteFlowAsSource;
49+
4550
/**
4651
* A source of third-party user input, considered as a flow source for URL redirects.
4752
*/

go/ql/lib/semmle/go/security/ReflectedXssCustomizations.qll

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ module ReflectedXss {
3434
}
3535
}
3636

37+
/**
38+
* DEPRECATED: Use `RemoteFlowAsSource` instead.
39+
*/
40+
deprecated class UntrustedFlowAsSource = RemoteFlowAsSource;
41+
3742
/**
3843
* A third-party controllable input, considered as a flow source for reflected XSS.
3944
*/

go/ql/lib/semmle/go/security/RequestForgeryCustomizations.qll

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ module RequestForgery {
3232
/** An outgoing sanitizer edge for request forgery vulnerabilities. */
3333
abstract class SanitizerEdge extends DataFlow::Node { }
3434

35+
/**
36+
* DEPRECATED: Use `RemoteFlowAsSource` instead.
37+
*/
38+
deprecated class UntrustedFlowAsSource = RemoteFlowAsSource;
39+
3540
/**
3641
* A third-party controllable input, considered as a flow source for request forgery.
3742
*/

go/ql/lib/semmle/go/security/SqlInjectionCustomizations.qll

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ module SqlInjection {
2525
*/
2626
abstract class Sanitizer extends DataFlow::Node { }
2727

28+
/**
29+
* DEPRECATED: Use `RemoteFlowAsSource` instead.
30+
*/
31+
deprecated class UntrustedFlowAsSource = RemoteFlowAsSource;
32+
2833
/** A source of untrusted data, considered as a taint source for SQL injection. */
2934
class RemoteFlowAsSource extends Source instanceof RemoteFlowSource { }
3035

go/ql/lib/semmle/go/security/TaintedPathCustomizations.qll

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ module TaintedPath {
4444
}
4545
}
4646

47+
/**
48+
* DEPRECATED: Use `RemoteFlowAsSource` instead.
49+
*/
50+
deprecated class UntrustedFlowAsSource = RemoteFlowAsSource;
51+
4752
/** A source of untrusted data, considered as a taint source for path traversal. */
4853
class RemoteFlowAsSource extends Source instanceof RemoteFlowSource { }
4954

go/ql/lib/semmle/go/security/XPathInjectionCustomizations.qll

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ module XPathInjection {
2424
*/
2525
abstract class Sanitizer extends DataFlow::ExprNode { }
2626

27+
/**
28+
* DEPRECATED: Use `RemoteFlowAsSource` instead.
29+
*/
30+
deprecated class UntrustedFlowAsSource = RemoteFlowAsSource;
31+
2732
/** A source of untrusted data, used in an XPath expression. */
2833
class RemoteFlowAsSource extends Source instanceof RemoteFlowSource { }
2934

0 commit comments

Comments
 (0)