QID 570075
QID 570075: Array Size Limits Not Defined
Array size should be limited to mitigate resource exhaustion attacks. An analysis of the swagger file has determined that maxItems is not defined for the array defined on the API end point.
Swagger file is not compliant to swagger specification. Analysis will result in an error. Consumers of API will not have clarity and can accidentally use more resources resulting in exhausting the resources. Attackers can take advantage to attack the end point since the max limit is not specified on the array.
Solution
Ensure that maxItems has been specified. For example:
components: schemas: UsersList: type: array maxItems: 99
components: schemas: UsersList: type: array maxItems: 99
Vendor References
CVEs related to QID 570075
Software Advisories
| Advisory ID | Software | Component | Link |
|---|