Steps to replicate the issue (include links if applicable):
1- Go to https://donate.wikimedia.org
2- Select any amount to donate And Click Donate By Credit Card
3- Type your data to process
4- Intercept the request in Burp Suite And Click Donate
5- Forward all requests until you see https://payments.wikimedia.org/api.php POST request
6- Intercept the response of this request
7- Manipulate the response to {"warnings":{"main":{"*":"Unrecognized parameter: gateway_session_id."}},"result":{"iframe":null,"redirect":"https://embed.wikimedia.gr4vy.app/start-method.html?authUrl=https://api.wikimedia.gr4vy.app/three-d-secure-auth?&redirectUrl=https://evil.com","formData":[],"isFailed":false}}
8- Forward the Response And Stop interception
What happens?
You will redirect to https://evil.com
What should have happened instead?
Must redirect to https://payments.wikimedia.org/index.php?title=Special:GravyGatewayResult&order_id=* not any url
A full link to a web address where the issue can be seen:
You can use the redirect Without These Steps: https://embed.wikimedia.gr4vy.app/start-method.html?authUrl=https://api.wikimedia.gr4vy.app/three-d-secure-auth?&redirectUrl=https://evil.com
the web browser(s) and web browser version(s) that you tested:
Firefox And Chrome Latest Versions










