Closed
Bug 952284
Opened 12 years ago
Closed 12 years ago
Tags set to private comments should not be disclosed to everybody in the bug activity table
Categories
(Bugzilla :: Creating/Changing Bugs, defect)
Tracking
()
RESOLVED
FIXED
Bugzilla 5.0
People
(Reporter: LpSolit, Assigned: dkl)
References
()
Details
(Keywords: sec-moderate, wsec-disclosure)
Attachments
(1 file, 1 obsolete file)
1.14 KB,
patch
|
LpSolit
:
review+
|
Details | Diff | Splinter Review |
In bug 392184, comments 22 to 33 have first been marked as spam and then marked as private (restricted to the insidergroup) to hide them from the UI. But the bug history still shows tags set for these comments.
If a comment is private, all the activity associated with it should be restricted to the insidergroup.
Comment 1•12 years ago
|
||
Are there tags other than spam? Doesn't seem too terrible to leak the knowledge that someone thought a particular missing comment was spam. The comment's existence can usually be inferred from discontinuous comment numbers.
Keywords: sec-low,
wsec-disclosure
Comment 2•12 years ago
|
||
Oh, I see--tags are free-form. That's slightly worse, might leak project names or who knows what depending on the bugzilla installation.
Keywords: sec-low → sec-moderate
![]() |
||
Comment 3•12 years ago
|
||
If we did this, it would mean that not only do comments need a "private" flag, but all history entries do as well.
Gerv
![]() |
Reporter | |
Comment 4•12 years ago
|
||
(In reply to Gervase Markham [:gerv] from comment #3)
> If we did this, it would mean that not only do comments need a "private"
> flag, but all history entries do as well.
I don't see why. Comments already have that private flag, as well as attachments, which are the only two things you can make private. And all the bug activity are hidden for users not in the insidergroup. So comment tags must respect that too.
![]() |
||
Comment 5•12 years ago
|
||
(In reply to Frédéric Buclin from comment #4)
> (In reply to Gervase Markham [:gerv] from comment #3)
> > If we did this, it would mean that not only do comments need a "private"
> > flag, but all history entries do as well.
>
> I don't see why.
Because when I am displaying the history and querying the history table, I need to know which entries to not display. Either the history entries can have a "private" flag, or you have to store the comment number along with the history entry for add/remove tags, do a massive JOIN to the comments table, and use the Private flag there. Which you could do, I guess - not sure how that would go performance-wise, though.
Gerv
Assignee | ||
Comment 6•12 years ago
|
||
Assignee | ||
Comment 7•12 years ago
|
||
Comment on attachment 8350669 [details] [diff] [review]
952284_1.patch
Gerv mentioned he would not have time to look at this so re-requesting.
Attachment #8350669 -
Flags: review?(gerv) → review?(LpSolit)
![]() |
Reporter | |
Comment 8•12 years ago
|
||
Comment on attachment 8350669 [details] [diff] [review]
952284_1.patch
>+ $suppjoins = "LEFT JOIN longdescs
Why LEFT JOIN instead of INNER JOIN?
![]() |
Reporter | |
Comment 9•12 years ago
|
||
Comment on attachment 8350669 [details] [diff] [review]
952284_1.patch
>+ $suppwhere = "AND COALESCE(longdescs.isprivate, 0) = 0";
Also, there is no need to call COALESCE(). longdescs.isprivate is always defined (cannot be NULL) and so longdescs.isprivate = 0 will do it.
Assignee | ||
Comment 10•12 years ago
|
||
Attachment #8350669 -
Attachment is obsolete: true
Attachment #8350669 -
Flags: review?(LpSolit)
Attachment #8355079 -
Flags: review?(LpSolit)
![]() |
Reporter | |
Comment 11•12 years ago
|
||
Comment on attachment 8355079 [details] [diff] [review]
952284_2.patch
r=LpSolit
Attachment #8355079 -
Flags: review?(LpSolit) → review+
![]() |
Reporter | |
Comment 12•12 years ago
|
||
This code isn't in any Bugzilla release (it wasn't in 4.5.1, and 4.5.2 isn't released yet), so the patch can be checked in once it gets approval.
Flags: approval?
![]() |
||
Updated•12 years ago
|
Flags: approval? → approval+
Assignee | ||
Comment 13•12 years ago
|
||
Committing to: bzr+ssh://dlawrence%40mozilla.com@bzr.mozilla.org/bugzilla/trunk
modified Bugzilla/Bug.pm
Committed revision 8849
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
![]() |
Reporter | |
Updated•12 years ago
|
Group: bugzilla-security
You need to log in
before you can comment on or make changes to this bug.
Description
•