Skip to content

Instantly share code, notes, and snippets.

@tjstebbing
Created August 25, 2015 03:48
Show Gist options
  • Save tjstebbing/3c151f057a03f05712f1 to your computer and use it in GitHub Desktop.
Save tjstebbing/3c151f057a03f05712f1 to your computer and use it in GitHub Desktop.
/* 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.
*/
@tjstebbing
Copy link
Author

Is there a bug bounty? I want a free duck please <3

@nilnilnil
Copy link

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