Open
Bug 1144866
Opened 11 years ago
Updated 11 years ago
Help prevent private keys from being posted
Categories
(bugzilla.mozilla.org :: General, enhancement)
Tracking
()
NEW
People
(Reporter: gcox, Unassigned)
Details
In bug 1129589 (security locked as I write this) someone posted a private key inside an svn diff.
This creates a security event where we have to verify who's seen it, and that the key has been sufficiently decom'ed so as not to cause an issue.
It would sure be nice if bugzilla (in general, and BMO in specific) could (optionally) look for X string and, if found during submission of a comment or attachment, redirect you to another page for an "are you really really sure you want to submit X? Reason: Y"
In this case, X = "-----BEGIN RSA PRIVATE KEY-----" and Y = "It seems like you're about to paste a private key." Maybe there's other uses (EC2 keys?)
If we do decide to proceed with this, on the "are you really sure" page, providing a list of the security-group checkboxes would be especially nice.
Comment 2•11 years ago
|
||
No need to implement this upstream. This is installation-specific, and upstream has hooks to let extensions do this kind of checks.
Assignee: create-and-change → nobody
Component: Creating/Changing Bugs → General
Product: Bugzilla → bugzilla.mozilla.org
QA Contact: default-qa
Version: unspecified → Production
that's reasonably complicated to implement .. a confirmation page would either require the user to re-attach the file (which i dislike), or we'd have to add the ability to store the file temporarily somewhere the retrieve it later.
i also fear this would result in a false sense of security if we detect one form of security sensitive data but not others. for example there's no way we could check for the presence of passwords in case someone accidental attaches a config file. if someone's used to bugzilla catching certificates then they may be less prudent in checking the contents of every attachment.
greg, how often does this happen?
Flags: needinfo?(gcox)
If it was restricted to checking comments, would that make it more possible?
This is a rare occurrence in my experience.
| Reporter | ||
Comment 5•11 years ago
|
||
A fair question. (un?)fortunately I'm not opsec so I won't have visibility into all bugs. It's possible that juicy ones are locked away from my eyes, and/or have been manually scrubbed in the past.
Just from what I CAN see, 19 bugs in comments and [query times out looking through attachments]. Obviously it's not all gloom and doom in those bugs. So I'd say it's on the order of "a handful" and not "a boatload".
I respectfully semi-disagree with ppg 2. You're absolutely right, there's no way we can lexically parse for all possible "ohgod i didn't mean to send that" strings. The private key string happens to be an easy one to grep for. Or: I might not survive being broadsided by a train, but I still wear my seat belt. :)
If it's an infeasible implementation (ppg1 has a good point on attachment resubmission), even comment-catching would be something.
Flags: needinfo?(gcox)
(In reply to Richard Soderberg [:atoll] from comment #4)
> If it was restricted to checking comments, would that make it more possible?
yes; we could easily check comments using client-side javascript. is that sufficient?
Anything is better than nothing, in this particular case, I suspect.
You need to log in
before you can comment on or make changes to this bug.
Description
•