Skip to content

Failure to replace 2 tokens in the condition replacement #28

@ionimit

Description

@ionimit

I am replacing 2 tokens in a single request, one is the session cookie, and the other one is a CSRF token from a custom header.
When fetching the tokens from selection, it extracts only one currently selected. If I select the second CSRF token, it will be replaced with the first session token, and the first session token won't be replaced.

Steps:

  1. Error condition request requires 2 tokens, a session cookie, and CSRF in a custom header.
  2. Obtain a session token with a login request and response with a set-cookie header.
  3. Obtain a CSRF token with a second request that requires the session token, and respond with a custom header containing the CSRF token.
  4. In the Condition request replacement, Select the session token in the cookie header and replace it with the first session token.
  5. Then select the CSRF token from the custom header and replacing with the extracted CSRF token
  6. Result - the final request is sent without replacing the session cookie, and the CSRF token header gets replaced with the session token.

Sorry that I cannot share a screenshot.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions