GITLAB_API_TOKEN Leaked publicly in github related to your Employee / [redacted]@gitlab.com
HackerOne report #1448490 by sam_exploit on 2022-01-13, assigned to @cmaxim:
Report
Description :
Github is truly awesome service but its unwise to put sensitive data in public repo as i was able to find repo commited 1 hour ago contained GITLAB_API_TOKEN related to user work in Gitlab. and clearly this is not intended to be public, hope you will accept this.
Employee:
Name->[redacted] https://github.com/[redacted]
POC:
https://github.com/[redacted]/roles/dotfiles/files/.gitconfig
; email = [redacted]
[github]
user = [redacted]
[gitlab]
email = [redacted]
https://github.com/[redacted]/roles/dotfiles/files/.bashrc
export GITLAB_TOKEN="[redacted]"
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
### The next line updates PATH for the Google Cloud SDK.
if [ -f '/home/m/Downloads/gcp/google-cloud-sdk/path.bash.inc' ]; then . '/home/m/Downloads/gcp/google-cloud-sdk/path.bash.inc'; fi
### The next line enables shell command completion for gcloud.
if [ -f '/home/m/Downloads/gcp/google-cloud-sdk/completion.bash.inc' ]; then . '/home/m/Downloads/gcp/google-cloud-sdk/completion.bash.inc'; fi
Impact
I will leave this for your assessment but i think this is not intended to be public.
Best Regards,
How To Reproduce
Please add reproducibility information to this section:
Edited by Nick Malcolm