1
1
/**
2
- * Provides classes for working with untrusted flow sources, sinks and taint propagators
2
+ * Provides classes for working with remote flow sources, sinks and taint propagators
3
3
* from the `github.com/valyala/fasthttp` package.
4
4
*/
5
5
@@ -255,11 +255,16 @@ module Fasthttp {
255
255
* Provide modeling for fasthttp.URI Type.
256
256
*/
257
257
module URI {
258
+ /**
259
+ * DEPRECATED: Use `RemoteFlowSource` instead.
260
+ */
261
+ deprecated class UntrustedFlowSource = RemoteFlowSource ;
262
+
258
263
/**
259
264
* The methods as Remote user controllable source which are part of the incoming URL.
260
265
*/
261
- class UntrustedFlowSource extends UntrustedFlowSource :: Range instanceof DataFlow:: Node {
262
- UntrustedFlowSource ( ) {
266
+ class RemoteFlowSource extends RemoteFlowSource :: Range instanceof DataFlow:: Node {
267
+ RemoteFlowSource ( ) {
263
268
exists ( Method m |
264
269
m .hasQualifiedName ( packagePath ( ) , "URI" ,
265
270
[ "FullURI" , "LastPathSegment" , "Path" , "PathOriginal" , "QueryString" , "String" ] ) and
@@ -273,13 +278,18 @@ module Fasthttp {
273
278
* Provide modeling for fasthttp.Args Type.
274
279
*/
275
280
module Args {
281
+ /**
282
+ * DEPRECATED: Use `RemoteFlowSource` instead.
283
+ */
284
+ deprecated class UntrustedFlowSource = RemoteFlowSource ;
285
+
276
286
/**
277
287
* The methods as Remote user controllable source which are part of the incoming URL Parameters.
278
288
*
279
289
* When support for lambdas has been implemented we should model "VisitAll".
280
290
*/
281
- class UntrustedFlowSource extends UntrustedFlowSource :: Range instanceof DataFlow:: Node {
282
- UntrustedFlowSource ( ) {
291
+ class RemoteFlowSource extends RemoteFlowSource :: Range instanceof DataFlow:: Node {
292
+ RemoteFlowSource ( ) {
283
293
exists ( Method m |
284
294
m .hasQualifiedName ( packagePath ( ) , "Args" ,
285
295
[ "Peek" , "PeekBytes" , "PeekMulti" , "PeekMultiBytes" , "QueryString" , "String" ] ) and
@@ -386,11 +396,16 @@ module Fasthttp {
386
396
* Provide modeling for fasthttp.Request Type.
387
397
*/
388
398
module Request {
399
+ /**
400
+ * DEPRECATED: Use `RemoteFlowSource` instead.
401
+ */
402
+ deprecated class UntrustedFlowSource = RemoteFlowSource ;
403
+
389
404
/**
390
405
* The methods as Remote user controllable source which can be many part of request.
391
406
*/
392
- class UntrustedFlowSource extends UntrustedFlowSource :: Range instanceof DataFlow:: Node {
393
- UntrustedFlowSource ( ) {
407
+ class RemoteFlowSource extends RemoteFlowSource :: Range instanceof DataFlow:: Node {
408
+ RemoteFlowSource ( ) {
394
409
exists ( Method m |
395
410
m .hasQualifiedName ( packagePath ( ) , "Request" ,
396
411
[
@@ -463,13 +478,18 @@ module Fasthttp {
463
478
override Http:: ResponseWriter getResponseWriter ( ) { none ( ) }
464
479
}
465
480
481
+ /**
482
+ * DEPRECATED: Use `RemoteFlowSource` instead.
483
+ */
484
+ deprecated class UntrustedFlowSource = RemoteFlowSource ;
485
+
466
486
/**
467
487
* The methods as Remote user controllable source which are generally related to HTTP request.
468
488
*
469
489
* When support for lambdas has been implemented we should model "VisitAll", "VisitAllCookie", "VisitAllInOrder", "VisitAllTrailer".
470
490
*/
471
- class UntrustedFlowSource extends UntrustedFlowSource :: Range instanceof DataFlow:: Node {
472
- UntrustedFlowSource ( ) {
491
+ class RemoteFlowSource extends RemoteFlowSource :: Range instanceof DataFlow:: Node {
492
+ RemoteFlowSource ( ) {
473
493
exists ( Method m |
474
494
m .hasQualifiedName ( packagePath ( ) , "RequestCtx" ,
475
495
[
@@ -486,13 +506,18 @@ module Fasthttp {
486
506
* Provide Methods of fasthttp.RequestHeader which mostly used as remote user controlled sources.
487
507
*/
488
508
module RequestHeader {
509
+ /**
510
+ * DEPRECATED: Use `RemoteFlowSource` instead.
511
+ */
512
+ deprecated class UntrustedFlowSource = RemoteFlowSource ;
513
+
489
514
/**
490
515
* The methods as Remote user controllable source which are mostly related to HTTP Request Headers.
491
516
*
492
517
* When support for lambdas has been implemented we should model "VisitAll", "VisitAllCookie", "VisitAllInOrder", "VisitAllTrailer".
493
518
*/
494
- class UntrustedFlowSource extends UntrustedFlowSource :: Range instanceof DataFlow:: Node {
495
- UntrustedFlowSource ( ) {
519
+ class RemoteFlowSource extends RemoteFlowSource :: Range instanceof DataFlow:: Node {
520
+ RemoteFlowSource ( ) {
496
521
exists ( Method m |
497
522
m .hasQualifiedName ( packagePath ( ) , "RequestHeader" ,
498
523
[
0 commit comments