DAST issue verifier
DAST issue verifier helps developers simulate DAST tests and validate DAST vulnerabilities reported by AppScan directly within their IDE or browser. This allows them to debug and confirm fixes without rescanning, reducing the time and effort needed for fix cycles.
About this task
Using the fix verification script (JavaScript) to reproduce an issue
About this task
Procedure
- In the ASoC user interface (UI), locate the specific issue.
- Go to .
- In the Fix verification section, click Copy script to copy the provided script to your clipboard.
- Open a web browser and go to the target web application.
- Log in to the application.
- Press F12 to open the browser's developer tools.
- Navigate to the Console tab in the developer tools.
- Paste the copied script into the console.
- Press Enter to run the script.
- Interpreting the script output: The output provides a message indicating whether the issue is still present or has been resolved.
Using the fix verification script (Python) to reproduce an issue
Before you begin
Installing Python 3
- Go to https://www.python.org/downloads/ and download the Python installer for your system.
- Open the installer and follow the steps to finish the installation.
Validating Python
- Open a terminal and type:
$> python --version. - The installed Python version is displayed. For example, "Python 3.13.3".
- After installing Python, open a terminal.
- Ensure that you have the pip module present by running the following command:
$> python -m pip --versionThe installed pip version is displayed. For example, "pip 25.0.1".
- Run the following command:
$> python -m pip install appscandastissueverifier - Once the command is completed successfully, verify that the
appscandastissueverifiermodule is installed by running the command:python -m pip list appscandastissueverifier - The following details are displayed.
`Package Version` -------- --------- `appscandastissueverifier 1.0.0`
When you run the fix verification script and you encounter an error related to the version of AppScanDAST issue verifier module, you need to update it with the following command:
python -m pip update
appscandastissueverifier
About this task
Procedure
- In the ASoC user interface (UI), locate the specific issue.
- Go to .
- In the Fix verification section, click Download to download the provided script to your system.
- Open the downloaded script in a text editor.
-
Follow the instructions in the script to change the following sections and save the
script.
REPLAY_HOST Change this to the web application’s url that needs to be tested SESSION_TOKENS Login to the web application in your browser and copy the cookies. Add each cookie as a name value pair, separated by a comma (This is a python dictionary). -
Open a terminal and run the script:
$> python replay-script.py - Interpreting the script output: The output provides a message indicating whether the issue is still present or has been resolved.