QID 580544
QID 580544: Boolean Field Mismatches 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 response to string values do not match schema definition. The response received for the request with string values in place of boolean is not expected and do not match 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 580544
| Advisory ID | Software | Component | Link |
|---|