QID 580519
QID 580519: Integer Field Maximum Value Matches Schema
In this scenario maximum value for integer type fields, whose maximum limit is defined, are tested. This test is skipped for all integer fields where maximum value is not defined. For each integer field on end points being tested, values more than the maximum defined in the swagger file are sent to the server. The expectation is that APIs will reject the request as invalid, if the value is more than it's maximum. The response from server for requests with integer value more than maximum allowed should match the schema definition for invalid request.
Based on response received replacing integer fields with values more than the maximum it is determined that the maximum limits match the schema definition in the swagger file for integer field being tested.
Enforcing schema definition for 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.
CVEs related to QID 580519
| Advisory ID | Software | Component | Link |
|---|