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

SAML Attacks Not Forwarded Correctly With BurpSuite 2024.7.x #74

Open
edmacke opened this issue Aug 30, 2024 · 3 comments
Open

SAML Attacks Not Forwarded Correctly With BurpSuite 2024.7.x #74

edmacke opened this issue Aug 30, 2024 · 3 comments

Comments

@edmacke
Copy link

edmacke commented Aug 30, 2024

After a recent BurpSuite upgrade, SAML Raider's attacks get applied but not forwarded.

I intercept the SAMLResponse request, and apply a SAML attack, but what gets forwarded is the original, unaltered request, not the SAMLRaider-altered version.

For example, I intercept a SAMLResponse request, and apply the SAML attack "Remove Signatures". I get the orange verification text "Message signature successful removed", and I can see that the signature has indeed been removed. I click on "Forward" to send the edited message on its way.

But what actually gets forwarded is original request. I can verify this by looking in the HTTP history and seeing that there are only 2 options for the request: "Original request" and "Auto-modified request". They are both exactly the same: the original request without the SAML attack applied. There is no "Edited request" option like you'd normally see when the SAML attack was actually sent.

Using SAML Raider 2.0.0. This behavior seems to happen with all BS 2024.7.x releases and seems to work fine with BS 2024.6.6.

Have tried all the usual: rebooting, disable/enable and re-installing SAML Raider. It looks like BurpSuite made some changes to their proxy starting with 2024.7.3 and I wonder if those changes are not SAML Raider compatible?

@tobiashort
Copy link
Collaborator

Hi @edmacke

Thanks for your report. Will look at it a soon as possible.

Tobias

@tobiashort
Copy link
Collaborator

Hi @edmacke

I have looked into this bug. I am afraid that this is probably not a bug in our extension, but a bug introduced by BurpSuite. I tried the sample extension code from https://github.com/PortSwigger/burp-extensions-montoya-api-examples/tree/main/customrequesteditortab and it turns out that this sample code is also prone to the same bug.

The following video should demonstrate this:
https://github.com/user-attachments/assets/c50a57df-8151-486a-9bb1-2e45410fa543

I have filed a bug here:
https://forum.portswigger.net/thread/2024-7-5-montoya-api-extensions-custom-editor-tab-modified-requests-not-forwarded-d575daab?CategoryId=bug-reports

@ville87
Copy link

ville87 commented Sep 4, 2024

In case someone reads this and didn't find the (mentioned) workaround for this bug:

  1. Intercept the relevant request
  2. Apply whatever changes you want using SAMLRaider
  3. Go back to the "Pretty" view tab
  4. Send / forward the request, it should not use the edited request!

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

No branches or pull requests

3 participants