Closed (fixed)
Project:
privatemsg_draft
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Aug 2011 at 21:08 UTC
Updated:
9 Sep 2011 at 19:41 UTC
There's no validation being done on the $draft_id parameter in privatemsg_drafts_loaddraft(). This parameter is taken from a $_GET['draft_id'] value and used to load a draft. I haven't tried it myself, but it looks like any user with permissions to view drafts could change that parameter and load any draft they wanted, leading to an information disclosure vulnerability.
privatemsg_drafts_loaddraft() should have a second $account parameter defaulting to NULL. If it's passed in, the query is limited to drafts owned by that author. If it's left NULL, the function should default to the UID of $GLOBALS['user'].
Comments
Comment #1
chrisfree commented