QID 580546
QID 580546: Boolean Field Matches Schema
In this scenario boolean fields are tested. Boolean fields are updated with string values. Boolean fields with string values are sent to the server for the endpoint(s) being tested. The expectation is that APIs will reject the request as invalid and do not default to a boolean value.
Based on the response received from the server on the request with string values in place of boolean it is determined that the boolean fields do not allow string values. The boolean type defined in the swagger file are enforced successfully. The response code received for the request with string values in place of boolean is expected and matches the response documented in the swagger file schema.
Enforcing the types of values defined on the boolean field in swagger file will help provide clarity to the API users and avoid abuse of the API by hackers.Enforcing types help in mitigating resource exhaustion attacks.
CVEs related to QID 580546
| Advisory ID | Software | Component | Link |
|---|