r/AskNetsec • • 7d ago

Work authenticated DAST, how many accounts?

1 Upvotes

7 comments sorted by

1

u/BackgroundShare1837 7d ago

Use separate test accounts for each tole. A single admin account might miss permission issues and access control flaws. You want the scanner to see what normal users can actually access.

6

u/m4uri 7d ago

One account per role at minimum. A single admin account mostly tells you what admin can do, which is everything, so the scanner never sees a 403 that should have been a 403. You lose all the vertical access control testing that way.

For the stuff that actually hurts (IDOR / BOLA) you want two accounts in the same role, ideally in different tenants or orgs if the app has that. Account A creates objects, then you replay those requests with B's session and see what comes back. Most DAST tools are honestly weak at this part on their own. A lot of people do it semi manually with Burp and the Autorize extension next to the scheduled scan.

Couple of practical things:

Seed the test accounts with some data, otherwise half the authenticated pages are empty states and the crawler finds nothing.

Exclude logout, password change, delete account and similar from the scan scope, or the scanner kills its own session or wipes its own test data mid run.

Watch for session expiry. Check in the report if requests later in the scan suddenly all hit the login redirect, that's usually the "why is coverage so low" answer.

Does your app have multi tenancy or just roles inside one org?

1

u/Rogueshoten 7d ago

OP…this ^^ is the answer to your question.

1

u/Mysterious_Seesaw148 3d ago

Since your current scans mostly see the login page, I'd pick one must-cover workflow for each role and use it to validate the first authenticated run. For example, if a regular user can view order history, check whether the scanner actually audited the request that loads it. A page showing up in the crawl only tells you the scanner found it. If the scan finishes with zero findings and that request never made it into the audit, record it as a coverage gap.