Welcome to my first Write-up in my blog

Today I will explain How I get Full Account Takeover via stealing the action of the login form when you have XSS on the login page.

<aside> 💡 Note: This was a private program, so I will refer to it with example.com.

</aside>

How I found The XSS?

When I do my recon I usually check the web-archive URLs of my target.

I found this URL

https://www.example.com/account/?jid=77877

The jid parameter has no validation on it so when I add a simple XSS payload The alert is fired

Untitled

But sadly, the Brief of the program says

For XSS issues we request you to provide a POC that demonstrates that you can actually steal a session cookie or any other sensitive information. Just showing a cookie in a pop-up will not be considered valid either, instead, we request you to demonstrate that the session cookie can be sent outside the same-origin policy restrictions. XSS issues that do not demonstrate this will not be considered valid issues.

Time to escalate it to Account Take Over

<aside> 💡 I asked myself you are in the Login page and you have XSS you can control everything in this page via javascript, so what if you change the action of the login form to send the username and password to your server?

</aside>