ProBlog 2.6.6 CSRF Exploit
The ProBlog plugin failed to validate its anti-CSRF token on the addBlog POST request, so a logged-in victim could be tricked into submitting a crafted form that creates a page on their site. The plugin also failed to check that the supplied parent identifier was the actual blog, letting an attacker place the page anywhere in the site map, and the page body could carry a script payload.
- Fixed in 6 hours
- Disclosed after 30 days
Summary by the program
Report
Because the ProBlogs plugin did not validate the anti-csrf token on a POST request. A victim who is logged in could be fooled into clicking a malicious form (styled to look like a link, image, etc) which would create a page in their C5 website.
Because the ProBlogs plugin does not validate the parent cID asserting it is the actual Blog, the attacker could potentially place the page anywhere on the C5 site map tree.
Because C5 discloses the CCM_CID in a set of <script></script> tags on every page, an attacker could also derive which parentID they would like to target. This would allow the attacker to either place the page in a non-obvious spot or place the page in a high traffic area depending on the attacker's use case.
The blogBody form value would include a javascript payload which could potentially harvest data, install malware, or inject another payload for further exploitation of the C5 site or surrounding infrastructure.
A CORS based attack is also a possibility here though it is much more unlikely given the current state of modern browsers.
Resolution
Change report for v2.6.8 of ProBlog:
- tools file addBlog now sanitizes postID
- tools file addBlog now utilizes core CSRF\Token
- tools file addBlog view now generates CSRF\Token
- Tools file addBlog now validates the parentID is an existing section in addition to the existing permissions check that was there.
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 addBlog handler trusted POST requests without verifying the CSRF token and without confirming the parent identifier belonged to the blog.
Impact
An attacker could create pages anywhere in the victim's site map and inject script that could harvest data, install malware or lead to further exploitation, though a CORS-based route is described as unlikely in modern browsers.
What the attacker needed
Victim is logged in; victim is tricked into submitting a form
The fix
The plugin was fixed in version 2.6.8 by sanitising the post identifier, using the core CSRF token in both the form and the handler, and validating that the parent identifier is an existing section.
How it was found
- Get a logged-in victim to open a malicious form that looks like a link or image.
- The form submits the addBlog POST request using the victim's session.
- The request creates a page in the victim's site, with a script payload in the body field.
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 CSRF attack makes a logged-in user's browser send a request they did not intend, because the site trusts any request coming from their session. Here the plugin never checked the secret token that is meant to prove the request came from the site's own form, so a page the attacker controls could submit the form for the victim. The created page could also contain script, which runs in the context of the victim's site.
What is CSRF?
Another site makes a signed-in user's browser perform an action they did not intend.