HexBrain

GitLab · Report #460545

information disclosure of secret_key_base via encoding charcters

Validstatus
highseverity
$3,500bounty
146upvotes
13 Jun 2019disclosed

Summary

@paresh_parmar discovered an error page that was disclosing the value of the secret_key_base key of customers.gitlab.com to unauthenticated users, which would have allowed an attacker to arbitrarily decrypt signed cookies.

So I was fuzzing one parameter with different type of encodings. And one character threw error page .that page has secret token (rails)of application.

you can get RCE using a secret key base token. BUT in this case serialization was json action_dispatch.cookies_serializer"=>:json so RCE was not possible that time. still, you can do lots of stuff with secret_key_base of application, depends on the application logic.

thanks to @bugdiscloseguys for help and similar issue by @bugdiscloseguys At: https://blog.harshjaiswal.com/rce-due-to-showexceptions

How it was found

The write-up for this report has not been downloaded yet, or the program disclosed it without one. Read it on HackerOne.

This report was disclosed publicly on HackerOne and belongs to its author and the program. See the original