Ghost unauthorized newsletter modification vulnerability
A member account could modify newsletter settings, including injecting malicious content into the newsletter footer. This allowed stored cross-site scripting that could be used to create an administrator account.
Originally disclosed on Cisco Talos
An authentication bypass vulnerability exists in the newsletter subscription functionality of Ghost Foundation Ghost 5.9.4. A specially-crafted HTTP request can lead to increased privileges.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
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
The member update endpoint accepted a 'newsletters' field and passed it to the update function without checking if the member had permission to modify newsletters.
Impact
An attacker could inject malicious links or images into newsletters sent to subscribers, or execute stored XSS to create an administrator account, leading to full site compromise.
What the attacker needed
A free member account; admin edits the default newsletter
The fix
The vendor released a patch on 2022-11-28.
How it was found
- Create a member account on the Ghost site.
- Send a request to the member API endpoint to update the member's data, including a newsletters array with the target newsletter ID and malicious footer_content.
- Wait for an admin to edit the default newsletter, which triggers the stored XSS.
- The injected script runs in the admin's browser and creates a new administrator invite.
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.
A newsletter is an email sent to subscribers. The system let any member change newsletter settings, which should be admin-only. By putting harmful code in the newsletter footer, an attacker could run code in an admin's browser and take over the site.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.