QID 570039
QID 570039: Host Property Definition in Swagger 2.0 Contains Reference to Example
In swagger file there should be a value for host.Valid value for host is the domain name or IP address of the server that serves the API. Values that are valid will have IP or domain with non-default port. The protocol or paths should not be present as part of the value. Value should not be empty. The value is used to generate documentation and code. Analysis of swagger shows that the host value is not valid. The host property contains example.com added during testing phases. Sometimes this is left in when the specification is pushed to production. Analysis of swagger file resulted in detecting presence of example.com.
Analysis of swagger file results in a warning if example.com is present to ensure there is a review of the value. Host value is not mandatory so there is no error just information disclosure. Given the invalid host value the generated documentation or code could have invalid values.
CVEs related to QID 570039
| Advisory ID | Software | Component | Link |
|---|