Description
Open Source Social Network (OSSN) through 10.1 contains an insecure direct object reference vulnerability in components/OssnMessages/ossn_com.php that allows authenticated users to read other users' private message attachments. Attackers can request the /messages/attachment/{guid} route with sequential or guessed file GUIDs to retrieve attachments from private conversations without sender or recipient verification.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| opensource-socialnetwork | opensource-socialnetwork | ≤ 10.1 | — |
References
- https://github.com/opensource-socialnetwork/opensource-socialnetwork/issues/2641 issue-tracking
- https://github.com/opensource-socialnetwork/opensource-socialnetwork/commit/2e9733d8eaafccdaef3d9b498348c8332e51f48b patch
- https://hackmd.io/@leediay/ossn-idor-message-attachment exploit technical-description
- https://github.com/opensource-socialnetwork/opensource-socialnetwork/blob/48b53f5b95488187715b2d5b5ae46a993267f83d/components/OssnMessages/ossn_com.php#L149-L156 technical-description
- https://github.com/opensource-socialnetwork/opensource-socialnetwork product
- VulnCheck Advisory: Open Source Social Network (OSSN) through 10.1 IDOR via Message Attachment Route third-party-advisory