Ghost Foundation Ghost Post Creation insecure default installation vulnerability
Default Ghost installations allow non-administrator users to inject JavaScript into social media fields and post code injection fields, leading to stored XSS. An attacker could trick an administrator into viewing a post, executing the script and escalating privileges to administrator.
Originally disclosed on Cisco Talos
An insecure default vulnerability exists in the Post Creation functionality of Ghost Foundation Ghost 5.9.4. Default installations of Ghost allow non-administrator users to inject arbitrary Javascript in posts, which allow privilege escalation to administrator via XSS.
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
Likely, the application does not properly sanitise user-supplied input in social media fields and post code injection fields before rendering them in the admin interface.
Impact
An attacker could escalate privileges to administrator by executing JavaScript in an administrator's browser, unless the admin domain is separated as documented.
What the attacker needed
A low-privileged user account; victim (admin) views the post
How it was found
- As a low-privileged user, send a request to update the twitter field with a script payload.
- As a low-privileged user, send a request to update the facebook field with a script payload.
- As a low-privileged user, create a post with a script payload in the codeinjection_head field.
- As a low-privileged user, create a post with a script payload in the codeinjection_foot field.
- Trick an administrator into previewing or visiting the post, causing the script to execute.
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.
Ghost is a website building tool. Users with low privileges can add JavaScript code to their profile or posts. When an administrator views that content, the code runs in their browser and can perform actions as the administrator, like changing user roles.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.