Bypassing X-frame options
The reporter claims that gratipay.com can be embedded through a third-party translation proxy, which bypasses the site's X-Frame-Options framing protection. They argue an attacker could build a lookalike proxied page to phish credentials from users who sign up through it.
- Disclosed after 7 hours
bypass X-Frame-Options ( Proxy protection NOT used )
DomainUsing: gratipay.com
Proxy protection NOT used , i can bypass X-Frame-Options header and recreate clickjacking on the whole domain. I see that you don't have a reverse proxy protection this allows all users to proxy your website rather than iframe it. They use use it for
Phishing
Tricking First-time gratipay users that (fake website) is original website.
Debug gratipay.com (see all request an response make on fake website)
Exploit
I will create a fake website which closely matches your domain or any other confusing domain. I will post on many forums that "gratipay.com is best" etc. with my fake website link (better to use URl shortner!) He will visit here and signup As I have made that proxy, I can see all request made on them thus , Passwords Also! I will hack him. NOTE: When he clicks on confirmation link in his email , He is redirected to ORIGNAL website but I will get his password and username and I would login with the username and password i have , on original website.
How Facebook Handles it (Amazing Protection): http://i.gyazo.com/1ca03e64dac455f24d0ac1c4a59218e4.png ( https://translate.google.com/translate?hl=en&sl=auto&tl=zu&u=https://facebook.com
How your webiste handles it :( -> https://translate.googleusercontent.com/translate_c?depth=1&hl=en&rurl=translate.google.com&sl=en&sp=nmt4&tl=af&u=https://gratipay.com AN attacker can remove the Translate interface to make the webiste look real.
POC URL: https://translate.googleusercontent.com/translate_c?depth=1&hl=en&rurl=translate.google.com&sl=en&sp=nmt4&tl=af&u=https://gratipay.com try submitting real login data (of test account) You'll get logged in!
FIX
Here is the code that I use for stopping 100% of these types of sites:
RewriteEngine on RewriteCond %{HTTP:VIA} !^$ [OR] RewriteCond %{HTTP:FORWARDED} !^$ [OR] RewriteCond %{HTTP:USERAGENT_VIA} !^$ [OR] RewriteCond %{HTTP:X_FORWARDED_FOR} !^$ [OR] RewriteCond %{HTTP:PROXY_CONNECTION} !^$ [OR] RewriteCond %{HTTP:XPROXY_CONNECTION} !^$ [OR] RewriteCond %{HTTP:HTTP_PC_REMOTE_ADDR} !^$ [OR] RewriteCond %{HTTP:HTTP_CLIENT_IP} !^$ RewriteRule ^(.*)$ - [F]
To use this code, copy & paste into your site's root .htaccess file. Upload to your server, and test its effectiveness ! It is perfect and compared to blacklisting a million sites of this kind, itâs lightweight, concise, and very effective.
Please let me know if want more information.
Thank you!
Regards: Hafsa Mirza Ethical Hacker Cyber Security Researcher
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the site relies only on X-Frame-Options, which does not stop a third-party proxy from fetching and re-serving the page inside its own frame.
Impact
An attacker could phish a user's credentials through a proxied lookalike page, though the report only demonstrates this via a third-party translation service rather than a self-hosted proxy.
What the attacker needed
Victim visits attacker's proxied page; victim enters credentials there; third-party proxy service reachable
The fix
The reporter suggests blocking requests that carry proxy-related headers via server rewrite rules, though this only addresses known proxy headers rather than the framing issue itself.
How it was found
- Create a fake site that closely matches the target domain or a confusing domain.
- Post links to the fake site on forums, optionally using a URL shortener.
- The victim visits the fake site and signs up, and the attacker captures the submitted credentials.
- The attacker logs in on the original site with the captured username and password.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
X-Frame-Options is a response header that tells browsers whether a site may be shown inside a frame on another page; it is a defence against clickjacking, where a hidden or disguised page tricks you into clicking things. The reporter says a translation service can still display the site inside its own page, so the header does not stop that particular route. They then describe a phishing scenario where a fake page collects a user's login details.
What is UI spoofing?
The interface lies to the user: a framed page catches their clicks, or a browser shows the wrong address or a fake prompt. Paid when it leads to a sensitive action or convincing phishing.