11/**
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
33 * from the `github.com/valyala/fasthttp` package.
44 */
55
@@ -255,11 +255,16 @@ 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 */
261- class UntrustedFlowSource extends UntrustedFlowSource :: Range instanceof DataFlow:: Node {
262- UntrustedFlowSource ( ) {
266+ class RemoteFlowSource extends RemoteFlowSource :: Range instanceof DataFlow:: Node {
267+ RemoteFlowSource ( ) {
263268 exists ( Method m |
264269 m .hasQualifiedName ( packagePath ( ) , "URI" ,
265270 [ "FullURI" , "LastPathSegment" , "Path" , "PathOriginal" , "QueryString" , "String" ] ) and
@@ -273,13 +278,18 @@ 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 *
279289 * When support for lambdas has been implemented we should model "VisitAll".
280290 */
281- class UntrustedFlowSource extends UntrustedFlowSource :: Range instanceof DataFlow:: Node {
282- UntrustedFlowSource ( ) {
291+ class RemoteFlowSource extends RemoteFlowSource :: Range instanceof DataFlow:: Node {
292+ RemoteFlowSource ( ) {
283293 exists ( Method m |
284294 m .hasQualifiedName ( packagePath ( ) , "Args" ,
285295 [ "Peek" , "PeekBytes" , "PeekMulti" , "PeekMultiBytes" , "QueryString" , "String" ] ) and
@@ -386,11 +396,16 @@ 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 */
392- class UntrustedFlowSource extends UntrustedFlowSource :: Range instanceof DataFlow:: Node {
393- UntrustedFlowSource ( ) {
407+ class RemoteFlowSource extends RemoteFlowSource :: Range instanceof DataFlow:: Node {
408+ RemoteFlowSource ( ) {
394409 exists ( Method m |
395410 m .hasQualifiedName ( packagePath ( ) , "Request" ,
396411 [
@@ -463,13 +478,18 @@ 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 *
469489 * When support for lambdas has been implemented we should model "VisitAll", "VisitAllCookie", "VisitAllInOrder", "VisitAllTrailer".
470490 */
471- class UntrustedFlowSource extends UntrustedFlowSource :: Range instanceof DataFlow:: Node {
472- UntrustedFlowSource ( ) {
491+ class RemoteFlowSource extends RemoteFlowSource :: Range instanceof DataFlow:: Node {
492+ RemoteFlowSource ( ) {
473493 exists ( Method m |
474494 m .hasQualifiedName ( packagePath ( ) , "RequestCtx" ,
475495 [
@@ -486,13 +506,18 @@ 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 *
492517 * When support for lambdas has been implemented we should model "VisitAll", "VisitAllCookie", "VisitAllInOrder", "VisitAllTrailer".
493518 */
494- class UntrustedFlowSource extends UntrustedFlowSource :: Range instanceof DataFlow:: Node {
495- UntrustedFlowSource ( ) {
519+ class RemoteFlowSource extends RemoteFlowSource :: Range instanceof DataFlow:: Node {
520+ RemoteFlowSource ( ) {
496521 exists ( Method m |
497522 m .hasQualifiedName ( packagePath ( ) , "RequestHeader" ,
498523 [
0 commit comments