We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e7e276 commit c15d1abCopy full SHA for c15d1ab
csharp/ql/lib/semmle/code/csharp/security/auth/MissingFunctionLevelAccessControlQuery.qll
@@ -81,7 +81,7 @@ predicate hasAuthViaXml(ActionMethod m) {
81
82
/** Holds if the given action has an attribute that indications authorization. */
83
predicate hasAuthViaAttribute(ActionMethod m) {
84
- exists(Attribute attr | attr.getType().getName().toLowerCase().matches("%auth%") |
+ exists(Attribute attr | attr.getType().getABaseType*().getName().toLowerCase().matches("%auth%") |
85
attr = m.getOverridee*().getAnAttribute() or
86
attr = getAnUnboundBaseType*(m.getDeclaringType()).getAnAttribute()
87
)
0 commit comments