Description
WriteFreely through 0.17.3 contains a cross-site request forgery vulnerability in the newPost and existingPost handlers that allows attackers to publish or edit posts as a logged-in user. Attackers can lure users to a malicious page submitting form-encoded requests to /api/posts, where the SameSite=None session cookie authenticates them, to publish or overwrite blog posts.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Musing Studio | WriteFreely | 0 ≤0.17.3 | — |
References
- https://github.com/writefreely/writefreely/blob/v0.17.3/routes.go#L159-L164
- https://github.com/writefreely/writefreely/blob/v0.17.3/posts.go#L565-L590
- https://github.com/writefreely/writefreely/blob/v0.17.3/session.go#L42-L51
- https://www.vulncheck.com/advisories/writefreely-through-0.17.3-cross-site-request-forgery-via-post-api