Skip to content

Validation (waap prove) ​

Problems running validation with waap prove, the scanner runs it starts, and the findings it reports.

waap prove start refuses an application ​

  • Cause: the application is not open to scanning.
  • Check: waap prove plan -apps NAME names the reason.
  • Fix: waap prove set -app NAME allow_scan=true, only for a UAT copy.

"not installed: run make scanners" ​

  • Cause: the scanner engines are not in the scanner directory.
  • Check: waap prove check.
  • Fix: run make scanners, and start the product with -scanner-dir .tools/scanners.

"logging in again before ... failed", or "the login's answer has no ..." ​

  • Cause: the login stopped working during the scan. The scanner most likely changed the scan account's password or deleted it. ZAP's OpenAPI import calls every operation it finds, including password changes.
  • Check: log in by hand with the same account.
  • Fix: restore the account, and add those paths to exclude_paths. Entries match exact paths, or a prefix ending in * (for VAmPI, /users/v1/name1/*). The scan continues without the login, so the rest of its numbers cover only what is public. Requests that carry a new password (a parameter such as password_new or newPassword) are already refused by the scan gateway for form and JSON logins and counted as excluded. A change by another route (a path-only API call, a deletion) still needs exclude_paths.

An engine's row says "stopped at its time limit" ​

  • Cause: the stage used all its share of the profile's time, so later rules or parameters were not tried.
  • Check: Scanner runs in the report.
  • Fix: use the standard or deep profile, or raise limits.rate if the application can take it.

An engine's row says "the scanner warned: ..." ​

  • Cause: ZAP ran its plan, but something in it was off, such as a rule that its installed add-ons do not have. Its findings are kept.
  • Check: the warning names the item.
  • Fix: if it names a rule, update the scanners with make scanners.

ZAP's row reports no findings and "zap.sh exited" ​

  • Cause: ZAP failed. Exit status 2 alone is not this case: it means warnings only, and the findings are kept.
  • Check: the rest of the row, and zap.log under validate-work in the data directory.
  • Fix: follow the message. The scan's other stages still count.

ZAP's crawl of DVGA says Job graphql error: The "data" object in the imported schema was null ​

  • Cause: DVGA's own hard mode answers Introspection is Disabled, and any client can turn it on with GET /difficulty/hard.
  • Check: send a __schema query through the listener.
  • Fix: scripts/vuln.sh prepare dvga sets it back. The lab profile excludes /difficulty*, so a scan no longer changes it. The same holds for any application whose scan can change its own settings: exclude that path.

"the login failed: ... answered 302" although the same password works by hand ​

  • Cause: check_path redirects even when logged in (WebGoat's welcome.mvc), or the password in the store is out of date.
  • Check: log in with curl -c, then request check_path with -b.
  • Fix: point check_path at a page that answers 200 once logged in, or run waap prove login again.

The application hangs after a scan, and a database reset makes it worse (lab: Mutillidae) ​

  • Cause: a time-based SQL injection probe left a sleeping query in the database. It keeps a lock for as long as it runs, so DROP DATABASE waits and all other queries queue behind it.
  • Check: show full processlist shows User sleep and Waiting for table metadata lock.
  • Fix: restart the database server. scripts/vuln.sh prepare does this for Mutillidae before its reset.

In a batch, applications late in the list have very few requests, logins time out, or a container has exited with status 137 ​

  • Cause: the host of the applications ran out of memory with two scanned at once. These numbers say nothing about Spalto.
  • Check: free -m on that host, and docker ps -a.
  • Fix: start the product with -validation-workers 1, restart what was killed, and scan again. In the lab, dmesg in the VM shows Out of memory: Killed process; scripts/vuln.sh prepare adds swap and restarts the applications.

Few or no attack findings on an API or single-page application ​

  • Cause: a crawler cannot find the application's parameters.
  • Check: the report's URL and parameter counts.
  • Fix: set seeds.urls with real query strings, or seeds.openapi or seeds.graphql.

A stored XSS finding shows unknown ​

  • Expected: the scanner's request is the page that later showed the payload, and it holds no payload. Replaying it says nothing about Spalto. The request that stored the payload is a separate finding with its own state.

Many findings are not_reproduced after blocking ​

  • Cause: applications change while being attacked, and scanners are not deterministic. Those findings are never counted as prevented.
  • Fix: re-test the ones you care about, or use a deeper profile.

"answers carry no x-request-id" ​

  • Cause: something between the gateway and the product removes the header, so results cannot be tied to events.
  • Check: curl -i through the listener.
  • Fix: remove that hop.

"N events were dropped during this scan" ​

  • Cause: the event queue was full, or the store failed. Requests with no event are then unknown, not missed.
  • Check: waap_events_store_dropped_total.
  • Fix: lower limits.rate, and check the store's disk.

A finding is new_after_block ​

  • Cause: usually the scanner reacting to the block page.
  • Check: check the finding's proof by hand before believing it.

The application is damaged after a scan ​

  • Expected: active scans change data. On a UAT copy, that is normal.
  • Fix: in the lab, scripts/vuln.sh reset APP. Elsewhere, restore the copy.

A patched finding stays missed after Re-test ​

  • Cause: the patch has not reached the data plane, or its rule does not match this request. Scanners often report a probe, such as id=1', which a patch lets through because a normal value can hold it too (O'Brien).
  • Check: waap vpatch list -app NAME, then send the parameter a real attack (id=1' or 1=1--) and look for the patch's rule in its event.
  • Fix: if the real attack is caught, the patch works and the finding is the probe's limit. If it is not caught, report the finding, or write a stricter patch by hand.