Bug 777586: (CVE-2012-1969) [SECURITY] The description of private attachments is still visible to unauthorized users when mentioned in a comment
r=glob a=LpSolit git-svn-id: svn://10.0.0.236/branches/BUGZILLA-4_0-BRANCH@264073 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
db54375ddd
commit
5902c5d0cb
@ -1 +1 @@
|
||||
7713
|
||||
7714
|
||||
@ -270,13 +270,16 @@ sub quoteUrls {
|
||||
sub get_attachment_link {
|
||||
my ($attachid, $link_text) = @_;
|
||||
my $dbh = Bugzilla->dbh;
|
||||
my $user = Bugzilla->user;
|
||||
|
||||
my $attachment = new Bugzilla::Attachment($attachid);
|
||||
|
||||
if ($attachment) {
|
||||
my $title = "";
|
||||
my $className = "";
|
||||
if (Bugzilla->user->can_see_bug($attachment->bug_id)) {
|
||||
if ($user->can_see_bug($attachment->bug_id)
|
||||
&& (!$attachment->isprivate || $user->is_insider))
|
||||
{
|
||||
$title = $attachment->description;
|
||||
}
|
||||
if ($attachment->isobsolete) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user