タグ

関連タグで絞り込む (1)

タグの絞り込みを解除

domとxssに関するyoupyのブックマーク (1)

  • new XSS pattern with jQuery

    XSS with $(location.hash) demo Click this link. It works on IE, Firefox, Chrome, Opera. In Safari, location.hash is percent encoded, not work. why? $("#id") is css selector, $("<img>") is createElement, and $("#<img>") is createElement too. how to fix in your library var hash = "#" + location.hash.replace(/[^\w]/g, ""); if ($(hash).size()) { ... } or patch to jQuery - quickExpr = /^(?:[^<]*(<[\w\W

    youpy
    youpy 2011/06/06
    location.hash $('#&lt;img&gt;') createElement
  • 1