Archived GitHub repo still contains valid DataDog API information
Categories
(Websites :: Other, defect)
Tracking
(Not tracked)
People
(Reporter: geeknik, Unassigned)
Details
(Keywords: reporter-external, sec-low, wsec-disclosure, Whiteboard: [reporter-external] [web-bounty-form] [verif?])
Attachments
(1 file)
|
61.86 KB,
text/plain
|
Details |
Whilst scanning GitHub for secrets and tokens, I discovered that an archived GitHub repo associated with Mozilla still contains valid DataDog API keys. It is recommended that this API keys be expired and rotated and not re-published to GitHub.
Repo: https://github.com/mozilla/testpilot/
URL: https://github.com/mozilla/testpilot/blob/96d4f1f310c65e6b8931c204974b840a3bdd839f/docker-compose-base.yml
POC: curl -H "Content-Type: application/json" -H "DD-API-KEY: 4f3b967bbf13c7769ac4fa89efda0fae" -H "DD-APPLICATION-KEY: ddd45a7b3a3cb90ff1baf20ae8cfab04d1937038" https://api.datadoghq.com/api/v2/users | jq
Comment 1•4 years ago
|
||
Hello Brian,
Thank you for your report.
I can confirm that the API and APP keys are still valid.
% curl -X GET "https://api.datadoghq.com/api/v1/validate" \
-H "Content-Type: application/json" \
-H "DD-API-KEY: ${DD_API_KEY}"
{"valid":true}
I could also see a list of users which includes email addresses, their IDs and profile images.
I am trying to find an API endpoint that could give us information about the user who owns these keys but could not find something like that so far.
Thanks,
Frida
Updated•4 years ago
|
Updated•4 years ago
|
Comment 2•4 years ago
|
||
We were able to track down the owners of Datadog and they revoked the API key.
Some notes for reference:
- the key was an application key created by an employee.
- the key had the same permissions as the user who has the
Datadog Standard Role - according to the Datadog documentation, users with the standard role are allowed to view and modify all monitoring features that Datadog offers, such as dashboards, monitors, events, and notebooks. Standard users can also invite other users to organizations
- we do not see any suspicious or malicious activity on the user account, we don't see any activity in the past year.
- we did not find any suspicious users who were invited to the org.
Updated•4 years ago
|
Updated•4 years ago
|
Comment 4•4 years ago
|
||
Hello Brian,
We had a chance to discuss the bounty yesterday. We paid it out as a low severity issue since the account did not contain any data.
Thank you again for your report. Please let us know how you would like to be mentioned on our hall of fame.
Thanks,
Frida
Updated•4 years ago
|
Updated•2 years ago
|
Description
•