QID 570080
QID 570080: Format not Defined for Integer Parameter
Schema of type integer must specify format of int32 or int64.
Swagger file is not compliant to swagger specification. Compliance check will result in an error. The current definition of integer parameter does not provide clarity to API consumer and allow of attackers to abuse the API. There is a a potential for resource exhaustion attacks.
Solution
Please review swagger file and update your parameters of integer type. In order to avoid unexpected values being sent or API abused, ensure that format of either int32 or int64 is specified for integer parameters. For example:
openapi: "3.1.0" components: schemas: userId: type: integer format: int64
Vendor References
CVEs related to QID 570080
Software Advisories
| Advisory ID | Software | Component | Link |
|---|