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 f7529ab
Browse filesBrowse the repository at this point in the historyBrowse files
Reports name the routes that change data and were never tested
The dynamic scan is read only by design: its own checks never send a
request that creates, changes or deletes anything, and the engines only
post the forms they find. A clean report said nothing about that, so it
read as cover for routes nobody had touched.
The code reading now also lists the routes that change data, with their
method, file and line: Express, Koa and the like, FastAPI and Flask
decorators, Spring mappings, Go routers, Rails and Laravel route files,
and ASP.NET actions, where a bare [HttpPost] takes its controller's
[Route] and [controller] is filled in. After the scan they are compared
with what the engines sent, by method: a POST the engine really sent to
that path counts as tested, a GET to the same path does not.
The PDF gets a section after the code section: how many such routes the
code declares, how many the scan tested, and the rest by method, route and
place in the code, with what to check in each.
Copy file name to clipboardExpand all lines: app/web/templates/dast_report_pdf.html
+17Lines changed: 17 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -329,6 +329,23 @@ <h3>5.2 Areas to review (not reached by the scan)</h3>
329
329
{% endif %}
330
330
{% endif %}
331
331
332
+
{% if writes and writes.untested %}
333
+
<h2class="new-page">{{ '6' if (reachable_sinks or context_sinks) else '5' }}. Routes that change data, not tested</h2>
334
+
<p>{{ ("This scan is read only by design: its own checks never send a request that creates, changes or deletes anything, and the engines only submit the forms they find. The code behind the site declares " ~ writes.total ~ " route" ~ ('' if writes.total == 1 else 's') ~ " that change data, and the scan sent the matching method to " ~ writes.tested ~ " of them. The rest are below. A clean report says nothing about them.") | sentence_spaced }}</p>
335
+
<p>{{ "Check each one in the code, or with a person testing it: that it asks for a sign in, that it checks the caller may change that record, and that it does not trust a record number from the request." | sentence_spaced }}</p>
0 commit comments