Attachments of private bugreports are public

Bug #39674 reported by Dennis Kaarsemaker
328
This bug affects 7 people
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
High
Abel Deuring

Bug Description

Bug 39298 is a private bug. As such I cannot view it (it's publicly archived on lists.ubuntu.com, but that's beside the point). However, the attachment added to that bug is still publicly visible. That should at least be indicated when a person uploads, but preferably the attachment is private too.

See also bug 512085.

Related branches

Changed in malone:
status: Unconfirmed → Confirmed
Revision history for this message
Christian Reis (kiko) wrote :

The problem is that currently all and any librarian content is publically available if you can figure out the filename. For 1.2.4 we will have a private librarian instance, but it will only be usable internally. The next step is allowing access-controlled downloads to that private librarian; this will eventually allow us to fix this bug.

Revision history for this message
Stuart Bishop (stub) wrote :

I'm flagging this as a security bug. Bug attachment filenames no longer appear to be obfuscated, and are thus guessable.

tags: added: ubuntu-qa
Revision history for this message
Martin Pool (mbp) wrote :

Could the bug mail perhaps include URLs that redirect through the bug to the librarian and do the check at that point? Maybe it's simpler just to do the check in the librarian.

description: updated
Revision history for this message
Stuart Bishop (stub) wrote :

Bug attachments need to be stored as private Librarian files and proxied via Launchpad so it can perform the security checks.

Ideally, this would only happen for attachments of private bugs to keep most existing bug attachment URLs working file and to keep serving most bug attachments over HTTP. This isn't a requirement though.

Deryck Hodge (deryck)
Changed in malone:
importance: Medium → High
papukaija (papukaija)
tags: added: privacy
Revision history for this message
Abel Deuring (adeuring) wrote :

I think we should store all files in the restricted librarian. Otherwise, we would have to move files between the public librarian and the restricted librarian very quickly, when the "private" flag of a bug is flipped. I doubt that this is reasonable.

Revision history for this message
Stuart Bishop (stub) wrote : Re: [Bug 39674] Re: Attachments of private bugreports are public

On Tue, Jun 22, 2010 at 10:27 PM, Abel Deuring
<email address hidden> wrote:
> I think we should store all files in the restricted librarian.
> Otherwise, we would have  to move files between the public librarian and
> the restricted librarian very quickly, when the "private" flag of a bug
> is flipped. I doubt that this is reasonable.

There is actually just one Librarian, so this just involves flipping
the boolean value on all the attached LibraryFileAliases. This
controls if the file can be retrieved via the public port (public
Librarian) or not.

--
Stuart Bishop <email address hidden>
http://www.stuartbishop.net/

Revision history for this message
Francis J. Lacoste (flacoste) wrote :

Stuart suggestion sounds good.

There is no API to flip this yet though (the field is marked as read-only). So we'll need to add one.

Deryck Hodge (deryck)
Changed in malone:
status: Triaged → In Progress
assignee: nobody → Abel Deuring (adeuring)
Revision history for this message
Launchpad QA Bot (lpqabot) wrote : Bug fixed by a commit
Changed in malone:
milestone: none → 10.08
tags: added: qa-needstesting
Changed in malone:
status: In Progress → Fix Committed
Revision history for this message
Abel Deuring (adeuring) wrote :

the bug is not yet ready

Changed in malone:
status: Fix Committed → In Progress
tags: removed: qa-needstesting
Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
tags: added: qa-needstesting
Changed in malone:
status: In Progress → Fix Committed
Revision history for this message
Abel Deuring (adeuring) wrote :

still in progress... lp:~adeuring/launchpad/bug-39674-change-remaining-lfa-http_url must be merged before we can consider this bug "fix committed"

Changed in malone:
status: Fix Committed → In Progress
Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
Changed in malone:
status: In Progress → Fix Committed
Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
Abel Deuring (adeuring)
tags: added: qa-ok
removed: qa-needstesting
Changed in malone:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public Security information  
Everyone can see this security related information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.