Skip to content
Misconfiguration Disclosed report Intermediate CVE-2023-6868

webpush requests do not require vapid key

Firefox's push service accepted web push requests that were not signed with the VAPID key that the site had specified when subscribing, whereas Chrome enforced the signature. An attacker who obtained a subscription endpoint could therefore send push notifications to a user without proving they control the application server key.

mozbugz Follow

Originally disclosed on Mozilla

  • Fixed in 16 days
  • Paid in 17 days
  • Disclosed after 16 days
Text
Created attachment 9364319
wpn.tar.gz

In testing webpush to Firefox, I discovered that if you send a push request w/o the request signed w/ the vapid key, even though it was specified in the PushManager.subscribe applicationServerKey.

I have verified that this is required on Chrome.  Safari just hangs on the webpush.

Attached is a project that will demonstrate the issue.

extract, run `make run` to build things, then `sudo make run EMAIL=[address removed]`  and go to http://localhost:80/   request notification, and maybe hit reload a time or two.

console output should look similar to:
'''
192.168.0.2 - - [18/Nov/2023 11:03:34] "GET / HTTP/1.1" 200 -                          
'/private/tmp/wpn/templates/../static'
192.168.0.2 - - [18/Nov/2023 11:03:35] "GET /S3_sw.js HTTP/1.1" 200 -                                                                                                          
sub: '{"endpoint": "https://updates.push.services.mozilla.com/wpush/v1/xxx-xxx
-xx-xxx", "expirationTime": null, "keys": {"auth": "xxx", "p256dh": "xxx"}}'  
sending notification...
done                   
'''

The original report as published on Mozilla's Bugzilla, by mozbugz. 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.

How it worked

Root cause

Likely the Firefox push service did not validate the VAPID JWT signature against the applicationServerKey recorded at subscription time.

Impact

An attacker with a victim's push subscription could send notifications to that user without the VAPID key, though the report only demonstrates this against Firefox and notes Safari hangs.

What the attacker needed

Victim's push subscription details; Firefox browser

How it was found

  1. Extract the attached demonstration project and build it.
  2. Run the server with the make target and open the local page.
  3. Request a notification from the page, reloading if needed.
  4. Observe the console showing the subscription and an unsigned notification being sent successfully.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

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

Web push lets a website send notifications to a browser through a push service. VAPID is a signing scheme that lets the push service check that the sender really is the site the user subscribed to. Here Firefox did not check that signature, so anyone holding the subscription details could send notifications.

What is Misconfiguration?

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.

More from Mozilla

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Security misconfiguration

The lesson behind this report.

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.