mirror of
https://github.com/carlospolop/hacktricks
synced 2024-11-21 20:23:18 +00:00
Update cookie-tossing.md
This commit is contained in:
parent
96cf75d03a
commit
9f0300678d
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ When a browser receives two cookies with the same name **partially affecting the
|
|||
|
||||
Depending on who has **the most specific path** or which one is the **oldest one**, the browser will **set the value of the cookie first** and then the value of the other one like in: `Cookie: iduser=MoreSpecificAndOldestCookie; iduser=LessSpecific;`
|
||||
|
||||
Most **websites will only use the first value**. Then, if an attacker wants to set a cookie it's better to set it before another one if set or set it with a more specific path.
|
||||
Most **websites will only use the first value**. Then, if an attacker wants to set a cookie it's better to set it before another one is set or set it with a more specific path.
|
||||
|
||||
{% hint style="warning" %}
|
||||
Moreover, the capability to **set a cookie in a more specific path** is very interesting as you will be able to make the **victim work with his cookie except in the specific path where the malicious cookie set will be sent before**.
|
||||
|
|
Loading…
Reference in a new issue