๐๐ฆ๐ญ๐ญ๐ฐ, ๐'๐ฎ ๐๐จ๐ฌ๐ฌ๐๐ฆ ๐๐จ๐ฌ๐ญ๐๐๐, known in the Bug Hunting community as ๐ฝ๐๐๐๐. I work as a Penetration Tester specialized in web, mobile, and network applications.In this report, I present a CORS Misconfiguration vulnerability I discovered.
The Discovery:
I was working on something completely different, and thought: "Why not try adding an Origin like example.com and see what the server doesโฆ"
At first, the server responded normally without exposing any sensitive data, so I thought it was just default behavior and didn't pay much attention.
The next day, while testing a different endpoint, I added example.com again in the Origin headerโฆ Suddenly, the server responded with:

Access-Control-Allow-Origin: example.com and also Access-Control-Allow-Credentials: true! ๐คฏ

Even worse, it returned cookies and a GraphQL response proving the request actually reached the backend.
That's when I realized it was a real *CORS Misconfiguration* that could be exploited from an external site to automatically grab victim data.
Of course, I reported it right away โ but as usual, I was two days late and it turned out to be a *Duplicate* ๐

I kinda saw it coming, since I hadn't prioritized it at first while I was focused on something else. But that's how it goes sometimes.
Key indicators:
Access-Control-Allow-Originechoing a supplied origin.Access-Control-Allow-Credentials: true.- Cookies present in responses and a backend GraphQ payload visible.
Impact:
- An attacker hosting a malicious page could cause visitors who are logged into the target site to unknowingly leak privileged data or perform actions, depending on the API endpoints accessible via the misconfigured CORS policy.
"This report has been successfully accepted by Yeswehack."

And that's it, folks! I hope this write-up offers you valuable insights. Thank you for taking the time to read. If you have any thoughts or questions, please feel free to share them in the comments section. Thank you again, and happy bug hunting!
๐๐ฒ ๐๐ข๐ง๐ค๐๐๐ข๐ง:http://www.linkedin.com/in/hossam-mostafa-527842325