QID 580559
QID 580559: String Field Maximum Value Mismatches Schema
In this scenario maximum values for string fields are tested. Values greater than the maximum defined in the swagger file for string 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 length is greater than it's maximum limit specified.
Based on testing done using requests with values more than the maximum defined in the swagger file it is determined that the maximum values defined for string fields are not enforced as expected. The response code received for the request with higher values for string fields is not expected and does not match the response documented in the swagger file schema.
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. Mimatch with swagger schema results in lack of clarity to the API users.
CVEs related to QID 580559
| Advisory ID | Software | Component | Link |
|---|