QID 580558
QID 580558: String Field Minimum Limit Matches Schema
In this scenario minimum values for string fields are tested. If the minimum values are not defined this test is skipped. Values less than the minimum 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 lower than it's minimum limit specified.
Based on testing done using requests with values lower than the minimum defined in the swagger file it is determined that the minimum values defined for string fields are enforced successfully. The response code received for the request with lower values for string fields is expected and matches 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. Enforcing limits help in mitigating resource exhaustion attacks.
CVEs related to QID 580558
| Advisory ID | Software | Component | Link |
|---|