You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Searched for existing issues that may address the problem.
Performed basic troubleshooting steps.
Description
When the basePath in the Swagger/OpenAPI specification is set to the root ("/"), Burp Suite constructs paths incorrectly, resulting in a double slash (//) at the beginning of each request path. This leads to URLs being generated as follows: **https://example.com//api/v1/resources/{resourceId}?includeDetails=true&sortOrder=asc**
Steps to Reproduce
Create or edit an OpenAPI/Swagger specification file with the following properties:
Set basePath to "/".
Define a sample path, such as /api/v1/resources/{resourceId}, with some query parameters, e.g., includeDetails and sortOrder.
Import this specification file into Burp Suite using the OpenAPI/Swagger parser.
Observe the generated HTTP requests in Burp Suite.
Expected Result:
Paths should be generated as https://example.com/api/v1/resources/{resourceId}?includeDetails=true&sortOrder=asc.
Actual Result:
Paths are generated with a double slash, resulting in https://example.com//api/v1/resources/{resourceId}?includeDetails=true&sortOrder=asc.
Expected Behavior
When basePath is "/", paths should be constructed without the extra leading slash, as shown below: **https://example.com/api/v1/resources/{resourceId}?includeDetails=true&sortOrder=asc**
Screenshots
No response
Environment
OS: macOS Version 15.0.1 (24A348)
Burp Suite version: Professional 2024.9.3
OpenAPI Specification version: 2.0
Error Message
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered:
Prerequisites
Description
When the basePath in the Swagger/OpenAPI specification is set to the root ("/"), Burp Suite constructs paths incorrectly, resulting in a double slash (//) at the beginning of each request path. This leads to URLs being generated as follows:
**https://example.com//api/v1/resources/{resourceId}?includeDetails=true&sortOrder=asc**
Steps to Reproduce
Example:
Import this specification file into Burp Suite using the OpenAPI/Swagger parser.
Observe the generated HTTP requests in Burp Suite.
Expected Result:
Paths should be generated as
https://example.com/api/v1/resources/{resourceId}?includeDetails=true&sortOrder=asc
.Actual Result:
Paths are generated with a double slash, resulting in
https://example.com//api/v1/resources/{resourceId}?includeDetails=true&sortOrder=asc.
Expected Behavior
When basePath is "/", paths should be constructed without the extra leading slash, as shown below:
**https://example.com/api/v1/resources/{resourceId}?includeDetails=true&sortOrder=asc**
Screenshots
No response
Environment
Error Message
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: