The Spanner logo
    • Home
    • Blog
      • Blog home
      • RSS
    • Login
    • Home
    • Blog
      • Blog home
      • RSS
    • Login
    The Spanner logo

    The Spanner
    Web security blog

    Made by Gareth Heyes
    Follow me on Twitter: @garethheyes

    Javascript for hackers!

    Hackvertor logo
    Shazzer logo
    My Github account
    Recent posts
    Introducing Feedworm: A Privacy-First RSS Reader That Lives in DevToolsSpeedy RSVP extensionAutoVaderHackvertor history and tag finderShadow Repeater v1.2.3 releaseBurp Hackvertor v2.1.24 releaseHacking roomsXSSing TypeErrors in SafarivalueOf: Another way to get thisMaking the Unexploitable Exploitable with X-Mixed-Replace on FirefoxThe curious case of the evt parameterCSS-Only Tic Tac Toe ChallengeRewriting relative urls with the base tag in SafariBypassing DOMPurify with mXSSNew IE mutation vectorHow I smashed MentalJSMentalJS DOM bypassAnother XSS auditor bypassXSS Auditor bypassBypassing the IE XSS filterUnbreakable filterMentalJS bypassesmXSSJava SerializationBypassing the XSS filter using function reassignmentRPOSandboxed jQueryX-Domain scroll detection on IE using focusEpic fail IEnew operatorDecoding complex non-alphanumeric JavaScriptHacking FirefoxDOM ClobberingBypassing XSS AuditorThe evolution of codeNon-Alpha PHP in 6-7 charsetTweetable PHP-Non AlphaMentalJS for PHPOpera x domain with video tutorialSandboxing and parsing jQuery in 100ms

    Google Adsense flaw revealed

    By Gareth Heyes (@hackvertor)

    Published 18 years 7 months ago • Last updated March 22, 2025 • ⏱️ 2 min read

    ← Back to articles

    Google fix vulnerability

    Well I have some good news to report about a vendor for a change, Google have been fantastic when I disclosed a vulnerability in Adsense to them. They were always in communication with me and keeping me informed of the status. They have also released a fix for the vulnerability in super quick time and I've had a look and it seems to be a good solution. I really wasn't expecting this sort of response after dealing with companies like Apple.

    Exploit details

    The exploit was really simple and used my favorite weapon of choice the iframe! It automatically logged the user onto their Adsense account before simulating clicks using Javascript on the various pages, I did this to show the functionality of the iframe and how it can be used to perform actions one after another. Once the relevant page was found the iframe was then sent a form submission via the parent window using the target attribute to target the correct iframe window.

    Proof of concept available here (now fixed of course)

    Similar flaws found

    Ronald has found a similar flaw in Adsense which can reset your password and it can be found here:- Ronald's Adsense POC

    ← Back to articles