QID 580530
QID 580530: Exact Maximum Response for Integer and Numeric Field Mismatch Schema
In this scenario exact maximum value for integer and numeric type fields, whose maximum limit is defined, are tested. For all integer and numeric type fields who maximum is not defined, this test is skipped. Integer and numeric type fields, are replaced with exact maximum value defined in the swagger file and sent to the server for the endpoint being tested. The expectation is that APIs will accept the request as value and treat it as happy path.
Based on testing done replacing integer and numeric values with the exact maximum defined in swagger file it is determined that the valid exact maximum value request is accepted. The response code is as expected and matches swagger definition. The response to some valid values does not match schema definition for field being tested.
Enforcing the maximum value set on the field will help provide clarity to the API users and avoid abuse of the API by hackers. Enforcing limits help in mitigating resource exhaustion attacks. API users might be confused with the response mismatch to valid values.
CVEs related to QID 580530
| Advisory ID | Software | Component | Link |
|---|