File tree Expand file tree Collapse file tree 1 file changed +3
-10
lines changed
javascript/ql/lib/semmle/javascript/security/dataflow Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -40,17 +40,10 @@ module RequestForgery {
40
40
abstract class Sanitizer extends DataFlow:: Node { }
41
41
42
42
/** A source of server-side remote user input, considered as a flow source for request forgery. */
43
- private class ServerSideSource extends Source instanceof RemoteFlowSource {
44
- ServerSideSource ( ) { not this instanceof ClientSideRemoteFlowSource }
45
- }
46
-
47
- private class ClientSideSource extends Source instanceof ClientSideRemoteFlowSource {
48
- ClientSideSource ( ) {
49
- // Reduce FPs by excluding sources from client-side path or URL
50
- not ClientSideRemoteFlowSource .super .getKind ( ) .isPathOrUrl ( )
51
- }
43
+ private class RemoteFlowSourceAsSource extends Source instanceof RemoteFlowSource {
44
+ RemoteFlowSourceAsSource ( ) { not this .( ClientSideRemoteFlowSource ) .getKind ( ) .isPathOrUrl ( ) }
52
45
53
- override predicate isServerSide ( ) { none ( ) }
46
+ override predicate isServerSide ( ) { not this instanceof ClientSideRemoteFlowSource }
54
47
}
55
48
56
49
/**
You can’t perform that action at this time.
0 commit comments