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

    Hackvertor and clickjacking

    By Gareth Heyes (@hackvertor)

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

    ← Back to articles

    Update

    I've updated Hackvertor for the final time until the brand new version is ready. I thought I'd blog about it because it includes some interesting features from a security point of view.

    HTML escape

    The DOM inspector didn't escape HTML when inspecting the DOM, this didn't cause XSS because user interaction was need to actually execute the inspector but I fixed it anyway because I need to check some values when performing some javascript research.

    Clickjacking protection

    I've also added some Clickjacking/CSS Overlay/UI redressing/Insert Lame name here protection. It works by destroying the Hackvertor UI if it has been framed. I can do this because the vulnerability is that Hackvertor executes javascript and isn't vulnerable to CSRF because there's no server side action to perform :)

    The code I've used is:-

    <pre lang="javascript"> if(top != self) { window.onload=function() { document.open(); document.write('UI Redressing/Clickjacking/CSS Overlay/Latest Buzzword protection'); document.close(); } } </pre>

    Inspect output improvements

    Finally I've updated the inspect output button. This button is really handy when you need to traverse a object quickly and find "hidden" properties or relationships with other objects. It works by evaluating the output entered and running a bruteforce check on the object for properties between -10000 and 10000 as well as single characters. Why do this? Because it exposes some interesting browser quirks in Firefox and maybe others, originally it was inspired by DoctorDan's discovery on sla.ckers that the reg exp object in Firefox contains a hidden property.

    The format now looks nice and I've added native js properties to help with js hacking and XSS research. A sample of how it works can be found here:- http://tinyurl.com/5jodze

    ← Back to articles