ashenchowthee / zaproxy

Automatically exported from code.google.com/p/zaproxy
0 stars 0 forks source link

Cookie parsing within Zest Scripts does not work as expected #1660

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Do the following steps:
1. record new zest script
2. browse to www.google.de
3. stop recording
4. replay script

The first response of www.google.de includes:
Set-Cookie: foo=bar; expires=...; path=/; domain=.google.de
Set-Cookie: spam=ham; expires=...; ....

This should give the following header within the second request:
Cookie: foo=bar; spam=ham

However, the following is produced:
Cookie: $Version=0; foo=bar; $Path=/; $Domain=.google.de
Cookie: $Version=0; spam=ham; $Path=/; $Domain=.google.de

Tested with OWASP ZAP 2.4.0 (2.4.0-0kali1 build on a Debian Jessie)

java -version
openjdk version "1.8.0_40-internal"
OpenJDK Runtime Environment (build 1.8.0_40-internal-b09)
OpenJDK 64-Bit Server VM (build 25.40-b13, mixed mode)

Original issue reported on code.google.com by bratscherben on 14 Jul 2015 at 3:19

GoogleCodeExporter commented 9 years ago
transferred this at github…

Original comment by bratscherben on 15 Jul 2015 at 1:14

GoogleCodeExporter commented 9 years ago
Thanks!

Issue at:
https://github.com/zaproxy/zaproxy/issues/1704

Original comment by THC...@gmail.com on 15 Jul 2015 at 1:18