QID 570081
QID 570081: Schema Allows for additonalProperties to be Defined
Analysis of swagger file has resulted in detection of the option to define additional properties in the schema. JSON Schema allows additional properties to be defined but API design should enforce disabling of this property.
Swagger file is not compliant to specification. The analysis of swagger file will result in an error. Allowing API consumers to use addtionalProperties can potentially lead to mass assignment issues.
Solution
Please review swagger file and ensure additionalProperties in schema is explicitly set to false. For example:
openapi: "3.0.0" components: schemas: users: type: object additionalProperties: false
Vendor References
CVEs related to QID 570081
Software Advisories
| Advisory ID | Software | Component | Link |
|---|