QID 580563
QID 580563: Numeric Fields Response Mismatch 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 evaluation of numeric fields do not match with schema. The numeric type defined in the swagger file are not enforced as expected. The response code received for the request with string values in place of numeric is not expected and does not match 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. Mimatch with swagger schema results in lack of clarity to the API users.
CVEs related to QID 580563
| Advisory ID | Software | Component | Link |
|---|