QID 580508
QID 580508: Integer Values Mismatch Schema
In this scenario integer fields are tested. Integer fields are updated with decimal values. These fields are sent to the server for the endpoint(s) being tested. The expectation is that APIs will reject the request as invalid, rather than rounding it. Based on the response received from the server on the request with decimal values in place of integers it is determined that the response to integer fields with decimal values is not as expected. The response code received for the request with decimal in place of integer is not expected and does not match the response documented in the swagger file schema.
Enforcing the types of values defined on the integer 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. Since handling integer field types is not adhering to the schema, the current end point is potential to resource exhaustion attacks.
CVEs related to QID 580508
| Advisory ID | Software | Component | Link |
|---|