The Burp Suite User Forum was discontinued on the 1st November 2024.

Burp Suite User Forum

For support requests, go to the Support Center. To discuss with other Burp users, head to our Discord page.

SUPPORT CENTER DISCORD

Burp API - IContextMenuInvocation - Modified request/response access/hinting

Gabriel | Last updated: Oct 10, 2017 03:38PM UTC

In the Burp extender API when retrieving the selected messages from the proxy history, I don't see any way to know if the selection occurs into a modified response/request panel or the original one. IContextMenuInvocation.CONTEXT_MESSAGE_EDITOR_REQUEST IContextMenuInvocation.CONTEXT_MESSAGE_EDITOR_RESPONSE are the only indicators available. Additionally the IHttpRequestResponse object does not seems to allow to retrieve the data from the "Edited" tabs or other "auto-modified" tabs. When one want to retrieve a selected text from such modified tab ,via IContextMenuInvocation.getSelectionBounds(), this will lead to something invalid, as the selection bounds will be referring to the modified version of the request/response and only the original version are available.

PortSwigger Agent | Last updated: Oct 10, 2017 03:52PM UTC

Hi Gabriel, Thanks for reporting this. Unfortunately the current API doesn't let you do this. We do have a story on the backlog to address this (someone else reported the same a while ago). However, it's quite a difficult change so it's unlikely to be looked at until we do the major refactor of the API. Please let us know if you need any further assistance.

Burp User | Last updated: Oct 10, 2017 10:37PM UTC

Sad face. Maybe make the selected text/data available in IContextMenuInvocation directly ?

PortSwigger Agent | Last updated: Oct 11, 2017 08:51AM UTC

Hi Gabriel, That is a very good suggestion, to do what you need with minimal changes. We may be able to get this bumped up the priorities, but I'm afraid it's likely to still take some time.

Burp User | Last updated: Dec 12, 2017 04:33PM UTC

Any ETA on this ?

PortSwigger Agent | Last updated: Dec 12, 2017 04:35PM UTC