Skip to content

Commit cebd49a

Browse files
authored
Merge pull request #9968 from michaelnebel/csharp/aspreviewcomment
C#: Simplification of AspNetCoreRemoteFlowSourceMember.
2 parents 27e89cb + 64e8660 commit cebd49a

File tree

1 file changed

+5
-5
lines changed
  • csharp/ql/lib/semmle/code/csharp/security/dataflow/flowsources

1 file changed

+5
-5
lines changed

csharp/ql/lib/semmle/code/csharp/security/dataflow/flowsources/Remote.qll

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -172,19 +172,19 @@ class ActionMethodParameter extends RemoteFlowSource, DataFlow::ParameterNode {
172172
abstract class AspNetCoreRemoteFlowSource extends RemoteFlowSource { }
173173

174174
/**
175-
* Data flow for AST.NET Core.
175+
* Data flow for ASP.NET Core.
176176
*
177177
* Flow is defined from any ASP.NET Core remote source object to any of its member
178178
* properties.
179179
*/
180-
private class AspNetCoreRemoteFlowSourceMember extends TaintTracking::TaintedMember {
180+
private class AspNetCoreRemoteFlowSourceMember extends TaintTracking::TaintedMember, Property {
181181
AspNetCoreRemoteFlowSourceMember() {
182182
this.getDeclaringType() = any(AspNetCoreRemoteFlowSource source).getType() and
183183
this.isPublic() and
184184
not this.isStatic() and
185-
exists(Property p | p = this |
186-
p.isAutoImplemented() and p.getGetter().isPublic() and p.getSetter().isPublic()
187-
)
185+
this.isAutoImplemented() and
186+
this.getGetter().isPublic() and
187+
this.getSetter().isPublic()
188188
}
189189
}
190190

0 commit comments

Comments
 (0)