Add new variable DAST_API_EXCLUDE_URLS which mirrors DAST_EXCLUDE_URLS
Problem
DAST_API_EXCLUDE_PATHS doesn't support commas which makes the on-demand switch over to DAST API could break some users.
Discussion: #350514 (comment 886408439)
Proposal
Review legacy variable (DAST_EXCLUDE_URLS) and verify compatibility. Support , for URL separation.
If the environmental variable DAST_API_EXCLUDE_PATHS cannot be used, then create a new variable DAST_API_EXCLUDE_URLS using a comma (,) as a separator.
Remark
- In DAST documentation uses it says
DAST_EXCLUDE_URLSuses regular expression andDAST_API_EXCLUDE_PATHSuses globbing based on Minimatcher. This leads to the creation ofDAST_API_EXCLUDE_URLS DAST_EXCLUDE_URLSseems to be using java regex which is not totally compatible with dotnet regex. Basic regex are likely to be exchanged without rewriting.
-
Worker-Entry
- Add new variable
DAST_API_EXCLUDE_URLS - Send new parameter thru RunnerOptions
- Add/Update tests (TDB if new tests can be unit test)
- Update py test to support new environmental variable
- Add test: excluding one Url
- Add test: excluding two Urls
- Add test: excluding two Urls using RegEx
- [-]
Add e2e test
- Add new variable
-
Scanner
- Receive new paramert in RunnerOptions
- Process new Parameter in:
- Update computation for
isOperationExcluded- [-]
UpdateFindRouteto also filter request matching againstAbsoluteUri - [-]
UpdateMoveNextOperationto also filter request matching againstAbsoluteUri
- [-]
- Update computation for
-
Update Documentation
- Add or extent seciont to explain how to exclude URLs
- Add examples on how to exclude URL (specific, one or more and using basic regex)
Edited by Michael Eddington