Habitat through 1.7.1 IDOR via Post Creation Attachment IDs
- State
- Published
- Severity
- 5.3 Medium
- Published
- Nov 17, 2026
- Updated
- Nov 17, 2026
- Reserved
- Nov 17, 2026
Description
Habitat through 1.7.1 contains an insecure direct object reference vulnerability in CreatePostController::addAttachmentsToPost() that allows authenticated users to claim other users' unposted image uploads. Email-verified attackers can submit sequential attachmentIds when creating a post to attach another user's pending image, exposing it publicly and removing it from the uploader's post.
| Product | Versions |
|---|---|
| Habitat carlnewton | 1.7.1 and earlier Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 5.3 Medium | VulnCheck | |
| 3.1 | 5.4 Medium | VulnCheck |
Weaknesses
- CWE-639 Authorization Bypass Through User-Controlled Key
References
- https://github.com/carlnewton/habitat/issues/164Issue Tracker
- https://github.com/carlnewton/habitat/blob/1.7.1/src/Repository/PostAttachmentRepository.php#L24-L35Technical Details
- https://github.com/carlnewton/habitat/blob/1.7.1/src/Controller/Post/CreatePostController.php#L143-L168Technical Details
- VulnCheck Advisory: Habitat through 1.7.1 IDOR via Post Creation Attachment IDsThird-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.