Google Bug Bounty: Clickjacking on Google Payment (1337$)

Hi everyone!
I would like to share about the first Bug I reported in October 2019 to Google Security Team.

I started participating in Google’s vulnerability reward program in October 2019, and at that time I decided to look for vulnerabilities in Google’s core products such as Google Mail, Google Payments, Google Play, etc. During the search for bugs I found something interesting on the Google payments page. While looking for clickjacking vulnerabilities on Google’s payment pages, I found many sensitive pages that missed the x-frame-options and the CSP frame-ancestors options in the respone header. Sensitive pages that I mean as when adding, editing and deleting payment methods.

Payment methods

For example, when I want to delete one of my payment methods, the request will look like the following:

POST /payments/u/0/fix_instrument?cn=%24p_e981jj735kuq1&hostOrigin=aHR0cHM6Ly9wYXkuZ29vZ2xlLmNvbQ..&ipi= xxx &hl=id&mm=p&si= xxx &style=%3Apc%3D%23fff%3Bnav%3DPT%3Bm2&cst=xxx&wst=xxx&icn=%24p_u76q6apzv3lf0&initiatorFrameKey=mainWidget_%3A0Iframe&initiatorElementId=%3Af
Content-Type: application/x-www-form-urlencoded
Content-Length: 138


The referer value must be in the domain. Otherwise, there will be an x-frame-options: DENY in the response header. So, I can using Google redirection to bypass the referer check.

After I embed the URL into my web page, the page appears in my own account, but there was an error in another account. Why did it happen?
Ya, there is a <ebp> token that only works on the account itself. So, if the URL is embedded on my web page, the page will only appear on my own account and will be an error for other users.

After a few minutes, I found a page to close payments profile on the payment profile page with the <ebp> token that can be used for other users. To find this page, you can click Settings, under “Payments profile status” click Close payments profile. The request uses the GET method and the URL will be as follows:

When we embed the URL into an iframe, the value of the iframe <id> must be “standalone-container-main-widgetIframe“. Otherwise, the button on the page doesn’t work. After all, the simple HTML code will be as follows:

<!DOCTYPE html>
<iframe style="border: 0px none; vertical-align: initial; display: block; width: 100%; height: 1538px; min-height: calc(-184px + 100vh); position: static; top: auto; visibility: visible; z-index: auto; transition: all 0s ease 0s;" src="" id="standalone-container-main-widgetIframe" name="standalone-container-main-widgetIframe" title="" frameborder="0">

After the Google payments profile is successfully closed, a notification will be sent to the email as follows:

Email Notification

Thanks for reading…. I’m looking forward to sharing more of my adventures in the future, stay tuned!


  • Oct 13, 2019: Report to Google
  • Oct 14, 2019: Triaged
  • Oct 17, 2019: Nice catch! (P2 -> Accepted)
  • Oct 30, 2019: Bounty awarded ($1337)
  • ———- BUG FIXED ———–


More Posts