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

chrisfree’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.