Friday, October 11, 2013

Google Mail Hacking - Stored XSS in GMail for iOS

Hi! Just want to share my finding, I have found Stored XSS Vulnerability in GMail for iOS. With no user interaction, enjoy ;-)

GMail for iOS contained an XSS vulnerability in its “Mail Attachment” feature. This bug was reported to Google Security Team, fixed immediately.


Title: Stored XSS in GMail for iOS
Business Risk: High
Discovery Date: October 8, 2013
Payload: <img src=x onerror=alert(0)>
Author: Roy Castillo (me)

Steps to Reproduce

1. Login to Google Analytics
2. Create an account and name it <img src=x onerror=alert(0)>
3. Go to Reporting -> Real Time -> Overview -> Email
4. Send an email to the victim GMail address.

5. Open your GMail for iOS
6. Open the received email.

Stored XSS in GMail for iOS

The filename of the attachment was not escaped correctly and I was able to get the Stored XSS triggered. By using the generated report from Google Analytics I could inject script code that was executed on The XSS is stored just simply reopen the mail anytime you want.

Google Security Team was pretty fast to address this issue and resolved this the next day itself. Google Security team awarded this bug with $5000.

Achievement unlocked: $5000 reward for XSS at ;)

Thank you Google Security Team!

Disclosure Timeline

October 8, 2013 at 6:14 AM (GMT +08:00): Vulnerability Discovered
October 8, 2013 at 2:59 PM (GMT +08:00): Initial Report
October 8, 2013 at 2:59 PM (GMT +08:00): Autorespose from Security bot
October 9, 2013 at 12:17 AM (GMT +08:00): First response from Security Team
October 9, 2013 at 7:45 AM (GMT +08:00): Bounty Rewarded.
October 10, 2013: Vulnerability Fixed
October 12, 2013: Full Disclosure Published


Roy Castillo


  1. :D nice one, congratulations on the bounty.

  2. Man your bugs are cool . I like the way you think :D

  3. Amazing! I never image onError can run. Really smart! But is run just because you send through Google Analytics, right?

  4. The personal items are always important to be stored in the first place. So, if you’ve rented a storage space or thought about it, the time is right now for you to consider insurance options since some renting facilities will not cover your stuff.
    Storage in Vancouver, WA

  5. Copied your bug report blog post into (trying a wiki with bugs rewarded). hope you are ok with it and maybe you can add entries there yourself

  6. Thanks for the blog...very nice description about Online Tech Support...Good luck!!!
    For Online Tech Support,please follow the website: Gmail Technical Support

    Lacy Brown

  7. Thanks to post this article. Mobile Application Development is play great role in business.Great job.keep it up.

  8. There are also other options you can choose here too, but the ones I use the most are Skip the Inbox and Apply the Label.

  9. Finding the time and actual effort to create a superb article like this is great thing. I’ll learn many new stuff right here! Good luck for the next post buddy..
    IOS Training in Chennai

    1. wow give me training..hey please sent me some auto approval backlinks.

  10. Thank you for taking the time and sharing this information with us. It was indeed very helpful and insightful while being straight forward and to the point.
    Mcdonalds gutscheine | Startlr | salud limpia

  11. It is amazing and wonderful to visit your site.Thanks for sharing this information,this is useful to me...
    Android Training in Chennai
    Ios Training in Chennai

  12. Wow very nice blog and got great idea about gmail hacking....
    IOS course in chennai

  13. If you want your ex-girlfriend or ex-boyfriend to come crawling back to you on their knees (even if they're dating somebody else now) you must watch this video
    right away...

    (VIDEO) Have your ex CRAWLING back to you...?

  14. /
    Yahoo Support Phone Number
    Yahoo is useful platform for its users. While users use their yahoo platform they can get enhanced services because yahoo provides better and the most updated services for all its users. Even though it is user oriented but for better experience it makes sure that customized and personalized services can be enabled for each of its users.

  15. We are 3rd party technical support team. Get Gmail customer service number+1-866-641-8283 or Gmail toll free number. We're Here to Help about your gmail account related.