QID 570076
QID 570076: String Size Not Defined
String size should be limited to mitigate resource exhaustion attacks. An analysis of the swagger file has determined that there are no limits defined for the string parameters defined on the endpoint.
Swagger schema is not specification compliant and will result in an error. There is clarity missing for the API consumer on the the parameter usage. Attackers can use to their benefit to exhaust the resource using the string parameter.
Solution
String size should be limited to mitigate resource exhaustion attacks. This can be done using maxLength, enum or const.
Vendor References
CVEs related to QID 570076
Software Advisories
| Advisory ID | Software | Component | Link |
|---|