Technical Deep Dive: Achieving a 9.0
The KeepInMind WordPress plugin allowed low-privileged users to save notes containing CSS that could cover the entire admin dashboard with a fake login form. An attacker could trick an administrator into submitting credentials to an external server, leading to account takeover.
medium.com
Published on medium.com
Discovering a Stored Cross-Site Scripting (XSS) vulnerability in modern ecosystems often results in a “Medium” or “High” severity rating. However, during independent research into the KeepInMind — Dashboard Notes WordPress plugin (versions prior to 0.8.4.2), I uncovered an input-handling flow that breached critical…
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 write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
The plugin used WordPress's standard HTML filter but did not restrict unsafe CSS properties like position:fixed and high z-index, allowing full viewport overlay.
Impact
An attacker could steal administrator credentials and take over the WordPress site, and also cause a persistent denial of service of the dashboard.
What the attacker needed
Low-privileged account (e.g., Contributor); victim (admin) visits dashboard; victim enters credentials in fake form
The fix
The vulnerability was fixed in version 0.8.4.2 by removing the unsafe style bypass vectors.
How it was found
- A low-privileged user submits a note containing CSS that creates a full-screen overlay with a fake login form.
- The note is saved in the database.
- An administrator logs in and visits the dashboard, where the note is rendered.
- The CSS overlay hides the real admin interface and shows the fake login form.
- The administrator enters credentials into the fake form, which sends them to an attacker-controlled server.
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 write-up has not been written yet. The Original tab links to the source.
The plugin let users add notes with special styling instructions (CSS) that control how a page looks. Because the plugin didn't block certain styling, a low-level user could make their note cover the whole admin screen with a fake login box. When an admin logs in, they might type their password into the fake box, which sends it to the attacker.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.