The Invalid JSON Types scan checks how your service behaves when getting unexpected values in JSON POST requests.
Typically, attackers try to throw values of an invalid type to cause the service to reveal the system data through error messages or stack traces. The Invalid JSON Type scan simulates this procedure, notifying you if your service is vulnerable to unexpected POST requests.
If the scan does not reveal any information about possible vulnerabilities, it passes successfully.
If the scan has Failed, that may indicate your service is vulnerable to unexpected value types and exposes sensitive information.
This scan is applicable to test steps or POST requests that have JSON data in the request body. Otherwise, you cannot add the Invalid JSON Types scan in your security test.
The Invalid JSON Types scan replaces the original parameters of a test step with invalid ones.
|Note:||Unconstrained parameters will keep their original values.|
This scan uses assertions to validate each response and check if it includes any information about potential vulnerabilities.
If a response passes all assertions,
PASS will be logged for that response. If any assertion fails,
FAIL will be logged.
|If you have not applied any assertions to the scan,
The Invalid JSON Types scan works by replacing data types inside a JSON request body. If there are no JSON data available in request, ReadyAPI will not run the Invalid JSON Types scan.
Use the following options to configure the scan Strategy:
|Request Delay (ms)||Set a pause between requests during the scan in milliseconds.|
|Apply to Failed TestSteps||Select to run the scan even if the target test step fails.|
|Run only once||Select to run the scan only once for each test step, even if ReadyAPI runs that step several times for the test case.|