Closed sergemister closed 7 months ago
@sergemister Thanks for the excellent report and diagnosis. Reshaper is definitely handling the Set-Cookie
header incorrectly. I will look into how to fix that.
Note, if this is a blocking issue for you and you need an immediate workaround, you can use Set Value
with Response Headers
to append or replace (using regex) headers.
To be fixed with https://github.com/synfron/ReshaperForBurp/issues/56
Thanks for addressing this. I tested my scenario in the 2.3.2 version and it is working now.
If a web server returns several set-cookie headers, for example with the JSP:
then if the Reshaper is configured to add an unrelated HTTP response header, the modified response contains multiple instances of the same set-cookie header, rather than the original set-cookie header values. For example,
becomes:
In detail, Reshaper was configured as follows:
Event Direction
was set toResponse
andMatches Text
was set to the URL of the server returning multiple cookies.Set Value
was configured withResponse Header
, adding the headerReshaper
with valueWasHere
.I believe the problem is in HttpHeaders.getHeaders():
These lines are in a loop and the cookies member variable is overwritten each time through the loop.
This was tested in Reshaper version 2.3.1.