QID 580515
QID 580515: Integer Fields Minimum Response Mismatch Schema
In this scenario minimum values for integer fields, whose minimum limit is defined, are tested. For all integer type fields who minimum is not defined, this test is skipped. Values less than the minimum defined in the swagger file for integer fields are sent to the server for the endpoint being tested. The expectation is that the server will reject the request as invalid, if the value is lower than it's minimum defined in the swagger file.
Based on review of response received for requests with values lower than the minimum defined in the swagger file it is determined that the minimum values defined for integer fields are enforced but not as expected. The request with invalid values is rejected. The response code received for the request with lower values for integer fields is expected but the response does not match the response documented in the swagger file schema.
Enforcing the minimum value set on the field will help provide clarity to the API users and avoid abuse of the API by hackers. Since the response does not match the swagger documentation of the end point API users do not have clarity.
CVEs related to QID 580515
| Advisory ID | Software | Component | Link |
|---|