Closed
Bug 1509328
Opened 7 years ago
Closed 7 years ago
Source code disclosure due to publicly available .git endpoint.
Categories
(Websites :: Other, defect)
Websites
Other
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 1479976
People
(Reporter: aagamshah349, Unassigned)
References
()
Details
(Keywords: reporter-external, Whiteboard: [reporter-external] [web-bounty-form] [verif?])
Attachments
(1 file)
|
272.53 KB,
image/png
|
Details |
Hello Mozilla Security Team,
#Introduction
I have found a public available git endpoint on a Mozilla Subdomain, I am sending all details below. Due to the issue on can easily fetch source code for the repository.
# Proof of concept
1) https://surveillance.mozilla.org/.git/logs/HEAD
2) https://surveillance.mozilla.org/.git/config
3) https://surveillance.mozilla.org/.git/HEAD
#Impact
Due to easy availability of source code one can, use it to find further issues and may use to understand internal workings.
This can be done with tools like "Gittools" on GitHub.
#Fix
Either add proper rules to .htaccess file or remove the git file completely.
#Note
I have not tried to pull source code using the tool, let me know if you want me to do that. I have attached an image for POC of logs file.
Reference: https://hackerone.com/reports/218465
Tool to fetch Source code: https://github.com/internetwache/GitTools/tree/master/Dumper
Regards,
Aagam Shah
Flags: sec-bounty?
Comment 1•7 years ago
|
||
Hi :jgmize,
It looks like this is a private repo of yours. Can you please look into this?
If there are any secrets in the repo, I'd recommend them to be rotated.
Flags: needinfo?(jmize)
Updated•7 years ago
|
Group: websites-security
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Flags: sec-bounty?
Flags: sec-bounty-hof-
Flags: sec-bounty-
Resolution: --- → DUPLICATE
Updated•7 years ago
|
Flags: needinfo?(jmize)
Updated•2 years ago
|
Keywords: reporter-external
You need to log in
before you can comment on or make changes to this bug.
Description
•