QID 580554
QID 580554: String Fields Response to Invalid Format Mismatch Schema
In this scenario string fields with format defined are tested. Values for string fields that do not match the format defined are sent to the server for the endpoint being tested.The expectation is that APIs will reject the request as invalid for fields with recognized formats. Some of the known formats are: date, date-time, password, uuid, email, hostname, ip, uri, byte, binary
Based on testing done using requests with values not matching formats defined it is determined that the strings format as defined in the swagger file are not enforced. The response received for the request with invalid format values for string fields is not expected and does not match the response documented in the swagger file schema.
Enforcing value for string field based on format defined in swagger file will help provide clarity to the API users and avoid abuse of the API by hackers. The response mismatch with swagger schema results in lack of clarity to the API users.
CVEs related to QID 580554
| Advisory ID | Software | Component | Link |
|---|