Summary
LogChimp has an authorization bypass that can let an authenticated post author change a post they do not own. The risk arises when the request supplies mismatched postId and id values, allowing the author's post reference to be combined with another post's identifier.
Affected context
The issue affects LogChimp versions 0.9.0-alpha.1 through versions before 0.9.3. It occurs in post modification handling when the application accepts postId and id from the request body without consistently verifying that the authenticated user is authorized to modify the post identified by id.
Exploit preconditions
- Attack surface: The post modification endpoint
- Required access: An authenticated account with permission to author or modify its own post
- Trigger point: A modification request containing mismatched
postIdandidvalues - Why exploitation is possible: The authorization check can be associated with the author's post while the update targets a different post identified by
id; exploitation also depends on the attacker knowing or enumerating the victim post UUID
Why this happens
The underlying issue is an authorization check that does not reliably bind the requested update target to the authenticated user. When client-controlled identifiers can diverge, checking access against one identifier while applying changes to another creates an authorization bypass through a user-controlled key, consistent with CWE-639.
Potential impact
- An authenticated author could modify another user's post.
- Post titles, slugs, and content could be changed without authorization.
- The post's board or roadmap association could be altered.
- Unauthorized changes could disrupt content integrity or mislead users.
General mitigation guidance
Mitigation patterns focus on authorizing the exact resource being changed:
- Derive the target post from trusted server-side context where practical.
- Verify ownership or other appropriate permissions against the same post record that will be updated.
- Avoid relying on multiple client-supplied identifiers to establish resource identity.
- Apply field-level authorization to sensitive properties such as board and roadmap associations.
- Use least-privilege access controls and reject requests with inconsistent resource identifiers.
How teams detect issues like this
- Review update handlers for authorization checks performed against an identifier different from the one used for the database update.
- Use static analysis or code review rules to flag client-controlled resource IDs used in authorization-sensitive operations.
- Add tests that attempt to update another user's post while supplying conflicting identifiers.
- Monitor audit logs for post updates where the authenticated actor is not the post owner or otherwise authorized.
- Enforce server-side authorization policies consistently across post modification routes.

