File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
csharp/ql/test/library-tests/dataflow/flowsources/aspremote Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -5,9 +5,12 @@ namespace Testing
5
5
6
6
public class ViewModel
7
7
{
8
- public string RequestId { get ; set ; }
9
-
10
- public object Query ;
8
+ public string RequestId { get ; set ; } // Considered tainted.
9
+ public object RequestIdField ; // Not considered tainted as it is a field.
10
+ public string RequestIdOnlyGet { get ; } // Not considered tainted as there is no setter.
11
+ public string RequestIdPrivateSet { get ; private set ; } // Not considered tainted as it has a private setter.
12
+ public static object RequestIdStatic { get ; set ; } // Not considered tainted as it is static.
13
+ private string RequestIdPrivate { get ; set ; } // Not considered tainted as it is private.
11
14
}
12
15
13
16
public class TestController : Controller
Original file line number Diff line number Diff line change 1
1
remoteFlowSourceMembers
2
2
| AspRemoteFlowSource.cs:8:23:8:31 | RequestId |
3
- | AspRemoteFlowSource.cs:10:23:10:27 | Query |
4
3
remoteFlowSources
5
- | AspRemoteFlowSource.cs:15 :42:15 :50 | viewModel |
4
+ | AspRemoteFlowSource.cs:18 :42:18 :50 | viewModel |
You can’t perform that action at this time.
0 commit comments