Technical impact
Habitat contains an insecure direct object reference in the addAttachmentsToPost method, allowing an authenticated user to claim other users’ pending image uploads by submitting sequential attachment IDs. The attacker can therefore expose a private image publicly and remove it from the uploader’s pending list. The weakness is an IDOR flaw (CWE-639).
Affected Systems
The vulnerability exists in Habitat versions up to and including 1.7.1. Any deployment of Habitat with the 1.7.1 code base or earlier is affected.
Risk and Exploitability
The CVSS score of 5.3 indicates a moderate risk; the EPSS score is not available, and the vulnerability is not listed in CISA KEV. Exploitation requires that the attacker be an authenticated, email‑verified user with access to the post creation interface. The likely attack vector is through the web application’s post creation workflow, where the attacker supplies a specially crafted set of attachment IDs. Once triggered, the attacker can expose the image publicly and remove it from the original user’s pending uploads. The risk is moderate to low for an unauthenticated attacker, but direct authenticated users pose a moderate threat as the flaw allows unauthorized disclosure of user data.