Skip to content
Leaked secrets Disclosed report Beginner

Production secret key leak in config/secrets.yml

phreak Follow

Originally disclosed on HackerOne

  • Disclosed after 33 days

Summary by the program

We have recently received a lot of duplicate reports related to keys specified in the following URL:

https://github.com/grab/blogs/blob/master/2017-01-29-deep-dive-into-database-timeouts-in-rails/config/secrets.yml

The given keys are demo boilerplate that has been used to explain Database Timeouts in Rails blog post at our Grab Engineering blog and is not used any where in production.

The report

Summary: Production secret key leak in config/secrets.yml

Description: In Github, http://engineering.grab.com/ secret_key_base is leaked which is present in the config/secrets.yml

Steps To Reproduce:

  1. Go to the below GitHub URL and we can verify that secret_key_base is present.
https://github.com/grab/blogs/blob/master/2017-01-29-deep-dive-into-database-timeouts-in-rails/config/secrets.yml

Mitigation:-

https://medium.com/@thejasonfile/hide-your-api-keys-hide-your-skype-api-keys-884427746f9c

Impact

Proper Impact is explained here:- https://stackoverflow.com/questions/44220691/rails-what-are-the-consequences-of-a-leaked-secret-key-base

Attachments

poc.png
poc.png From the original on HackerOne

The original report as published on HackerOne, by phreak. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

What is known

A high-severity leaked secrets bug in *.grab.com. HackerOne made it public on 8 January 2019.

About Leaked secrets

Keys, tokens or passwords left in public code, apps, logs or responses, that grant real access.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

What is Leaked secrets?

Keys, tokens or passwords left in public code, apps, logs or responses, that grant real access.

More from Grab

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Leaked secrets and credentials

The lesson behind this report.

Keys, tokens or passwords left in public code, apps, logs or responses, that grant real access.