Skip to content
XSS Advisory Intermediate CVE-2022-47197CVE-2022-47195CVE-2022-47194CVE-2022-47196

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.

Dave McDaniel Follow

Originally disclosed on Cisco Talos

Critical 9.0 View original

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.

Dave McDaniel, on Cisco Talos

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

  1. As a low-privileged user, send a request to update the twitter field with a script payload.
  2. As a low-privileged user, send a request to update the facebook field with a script payload.
  3. As a low-privileged user, create a post with a script payload in the codeinjection_head field.
  4. As a low-privileged user, create a post with a script payload in the codeinjection_foot field.
  5. 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.

More by Dave McDaniel

View all

23 more disclosed reports, best first.

More from Cisco Talos

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.