Skip to content
Disclosed report CVE-2022-40958

'=' prepended to set-cookie header can result in __Secure- and __Host- prefix bypasses

haxatron1 Follow

Originally disclosed on Mozilla

  • Fixed in 52 days
  • Paid in 2 months
  • Disclosed after 52 days
Text
1. Go to http://httpbin.org
2. Execute document.cookie = "= __Host-test=a" in the console
3. Go to http://httpbin.org/headers and see Cookie with cookie: 'Cookie	"__Host-test=a"'. This shouldn't happen as __Secure- and __Host- should only be set from a secure context

The original report as published on Mozilla's Bugzilla, by haxatron1. Images and videos are our own copies; raw HTML is shown as text. View it on Mozilla's Bugzilla.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

What is known

A medium-severity security bug in Networking: Cookies. Mozilla made it public on 8 September 2022 as CVE-2022-40958.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

More by haxatron1

View all

30 more disclosed reports, best first.

More from Mozilla

View all

The newest disclosed reports for this program.

Similar reports

Same bug class and techniques, clearest first.