Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 88e0759

Browse files
committed
Java: Change RemoteUserInput to private instead of removing.
1 parent b192f6d commit 88e0759

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

java/ql/src/semmle/code/java/dataflow/FlowSources.qll

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,13 @@ private class BeanValidationSource extends RemoteFlowSource {
204204
/** Class for `tainted` user input. */
205205
abstract class UserInput extends DataFlow::Node { }
206206

207+
/**
208+
* Input that may be controlled by a remote user.
209+
*/
210+
private class RemoteUserInput extends UserInput {
211+
RemoteUserInput() { this instanceof RemoteFlowSource }
212+
}
213+
207214
/** A node with input that may be controlled by a local user. */
208215
abstract class LocalUserInput extends UserInput { }
209216

0 commit comments

Comments
 (0)