forked from GNUsocial/gnu-social
Escape argument to prevent SQL injection attack in
User::getTaggedSubscriptions() This change escapes the $tag argument to prevent a SQL injection attack in User::getTaggedSubscriptions(). The parameter was not escaped higher up the stack, so this vulnerability could be exploited.
This commit is contained in:
parent
4a30da924a
commit
89ba820246
@ -758,7 +758,7 @@ class User extends Managed_DataObject
|
||||
|
||||
$profile = new Profile();
|
||||
|
||||
$profile->query(sprintf($qry, $this->id, $tag));
|
||||
$profile->query(sprintf($qry, $this->id, $profile->escape($tag)));
|
||||
|
||||
return $profile;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user