You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 846e1b8
Browse filesBrowse the repository at this point in the historyBrowse files
Three changes so the engines report what the baseline already does: a real
finding, not a page that merely answered.
An engine that calls a path reachable when it answers 401 or 403 found a
working access control, or a "your session has expired" page, not a served
file. Those path findings are now left out the same way a not found path
is, while a finding about what the page echoes or holds is kept.
A reflected cross site scripting finding is lowered to informational when
the site sends a Content-Security-Policy that does not allow inline script,
since an injected inline script or handler cannot run there. It is lowered
with the reason rather than dropped, because a policy does not stop DOM based
XSS. A weak or missing policy changes nothing, so a real finding is never
hidden.
The curated htaccess rule no longer matches on the word Options, which turns
up in ordinary pages, and now requires a non HTML content type and a real
Apache directive, so an error page can no longer look like a served config.
Copy file name to clipboardExpand all lines: app/core/dast_checks/curated/misconfiguration-htaccess-served.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@
16
16
],
17
17
"confirm": {
18
18
"control": "A path that cannot exist, so the site's not found answer is known.",
19
-
"differential": "status==200 and (body_contains(\"RewriteEngine\") or body_contains(\"Options \") or body_contains(\"<Directory\")) and body_differs(control)",
19
+
"differential": "status==200 and \"html\" not in header(\"content-type\") and (body_contains(\"RewriteEngine\") or body_contains(\"RewriteRule\") or body_contains(\"RewriteCond\") or body_contains(\"<Directory\") or body_contains(\"<Files\") or body_contains(\"AuthType \") or body_contains(\"Require all\") or body_contains(\"Order allow\")) and body_differs(control)",
0 commit comments