QID 580564
QID 580564: Numeric Fields Match Schema
In this scenario numeric fields of type integer and number are tested. Numeric fields are updated with string values. Numeric 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.
Based on the response received from the server on the request with string values in place of numeric value it is determined that the numeric fields do not allow string values. The numeric type defined in the swagger file are enforced successfully. The response code received for the request with string values in place of numeric is expected and matches the response documented in the swagger file schema.
Enforcing the types of values defined on the numeric 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 580564
| Advisory ID | Software | Component | Link |
|---|