Burp Suite User Forum

Login to post

Concurrent extension handlers

Robin | Last updated: Aug 22, 2023 03:34AM UTC

Can I register more than 1 of each type of handler per extension? If I use a handler in 1 place, can I register a separate one somewhere else and it will also receive the data? Can I register 2 separate concurrent HttpHandlers in an extension? If I had 2 ProxyWebSocketCreationHandler, they would both receive the data? It appears like all extensions receive the same data for the handlers, and as such can conflict with each other when they edit the response or request recieved, is this correct?

Robin | Last updated: Aug 22, 2023 04:09AM UTC

I'm assuming you pass the handler objects around with the registration implementations on your side, so for each registration it would be able to find the associated handlers?

Robin | Last updated: Aug 22, 2023 07:51AM UTC

I'm hoping the answer is yes to all of these questions because that means I understand correctly, but if not I can deal with it!

Hannah, PortSwigger Agent | Last updated: Aug 22, 2023 03:45PM UTC

Hi. You can register multiple handlers of each type. Data will pass through the handlers in the order they are registered, but this order may be reversed across requests and responses. We'd recommend that you do some testing to verify the order that the same registrations are called in.

You need to Log in to post a reply. Or register here, for free.