Created
August 25, 2015 03:48
-
-
Save tjstebbing/3c151f057a03f05712f1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Got an odd bug using duckduckgo searching for "lucifer's hammer" | |
* turns out search results from wikipedia are not escaped. DDG loads: | |
* https://duckduckgo.com/t.js?q=lucifer%27s%20hammer&t=A&l=au-en&p=1&s=0&a=ffab&ct=AU&sp=0 | |
* which contains: | |
*/ | |
nrj('/f.js?u=https://en.wikipedia.org/wiki/Lucifer's_Hammer'); | |
// ^ note the unescaped wikipedia URL | |
/* potentially you could create a wikipedia page titled "somebank';window.location='somebank.fishingsite..." | |
* and do evil things to people when they searhc duckduckgo for their bank. | |
*/ |
This was recently fixed. Thanks! Feel free to contact me directly if you have further questions / requests.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is there a bug bounty? I want a free duck please <3