Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Header type parameter placed in Cookie incorrectly #109

Open
4 tasks done
rbeede opened this issue Dec 11, 2024 · 0 comments
Open
4 tasks done

[BUG] Header type parameter placed in Cookie incorrectly #109

rbeede opened this issue Dec 11, 2024 · 0 comments
Assignees
Labels

Comments

@rbeede
Copy link

rbeede commented Dec 11, 2024

Prerequisites

  • Thoroughly read the README file.
  • Checked the project requirements and ensured they are met.
  • Searched for existing issues that may address the problem.
  • Performed basic troubleshooting steps.

Description

A parameter defined in the OpenAPI 3.0.1 json that should be an HTTP header is instead being treated as a Cookie value.

Steps to Reproduce

Create an openapi 3.0.1 json with this following "paths" included:

   "/myapifunction": {
      "get": {
        "tags": [
          "Picture"
        ],
        "parameters": [
          {
            "name": "pictureCode",
            "in": "header",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },

Load the json in the Burp OpenAPI Parser tab

Observe that the raw request used Cookie: pictureCode instead of a separate HTTP header named pictureCode.

Expected Behavior

The HTTP request generated should have created a separate HTTP header instead of using a Cookie.

Screenshots

No response

Environment

  • OS: Linux (Ubuntu)
  • Java version: built-in private JRE bundled with Burp
  • Burp Suite version: Pro 2024.10.3
  • OpenAPI Specification version: 3.0.1

Error Message

No response

Additional Context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants