QID 570066
QID 570066: Security Scheme not Defined for the Unsafe Operations
Security scheme section should not be empty for operations that manipulate the data in the data base. Operations such as POST, PUT, PATCH, DELETE should have a security scheme defined at the operation level or global level. Analysis of the swagger file has determined that the security scheme is not defined.
Not defining security schemes results in making your operation less secure. Swagger specification suggests security scheme definition and a warning is reported. If security scheme is not defined there is no error.
Operation Level:
paths:
'/users/{userId}':
patch:
...
responses:
...
security:
- API Key: []
Global:
securitySchemes: API Key: name: API Key type: apiKey in: header security: - API Key: []
CVEs related to QID 570066
| Advisory ID | Software | Component | Link |
|---|