QID 570078
QID 570078: Limits not Defined for Integer Parameter
Schemas of components contain the definition of various parameters. The parameters can be of various types. Parameter definition of type integer should have limits set so there is clarity on the minimum and maximum values. An analysis of swagger file has resulted in determining that the parameter of integer type does not have limits defined.
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.
minimum and maximum
exclusiveMinimum and exclusiveMaximum
or used in a combination between above
For example:
openapi: "3.0" components: schemas: UserID: type: integer exclusiveMinimum: 1 maximum: 99
CVEs related to QID 570078
| Advisory ID | Software | Component | Link |
|---|