QID 580522
QID 580522: Enum Fields Match Schema Definition
In this scenario fields of string type with enum values defined are tested. Values that are not part of the defined enum values are sent to the server for the endpoint being tested.The expectation is that APIs will reject the request as invalid, instead of accepting the undefined value or defaulting to a defined enum value. Based on testing done using requests with invalid values it is determined that the values in enum strings as defined in the swagger file are enforced successfully.
Enforcing valid value for enum field based on values defined in swagger file will help provide clarity to the API users and avoid abuse of the API by hackers.
Solution
N/A
Vendor References
CVEs related to QID 580522
Software Advisories
| Advisory ID | Software | Component | Link |
|---|