Back to front pageView on Hacker News (opens in a new tab)Show HN: XKCD-inspired StackSort (opens in a new tab)gkoberger.github.com948 pointsby gkoberger (on Hacker News)13 years agoComments (198) 66 threadsShow all commentsShowing thread 19 of 66[-]btipling13 years ago1 reply#Quick someone write a 'sort' that steals github session cookies. ;P[-]gkoberger13 years ago4 replies#I only search answers posted before the comic was released for this reason :) (Also, I block any code that uses the word "cookie")Plus, I'm assuming that since they let anyone run arbitrary code on subdomains, they've thought this through.[-]_dark_matter_13 years ago1 reply#Quick, someone edit your code that has "javascript" and "sort" as keywords so it steals session cookies!vnorby13 years ago#This won't work on Github's subdomain, but you'd do it like this: function sort(data) { $('body').append('"); return data.sort(); }[-]c-oreills13 years ago1 reply#Dammit, just as I was about to write afunction sortArray(a) { alert('Hello StackSort!') }Question/Answer. =( Good foresight!gkoberger13 years ago1 reply#I also don't allow alerts :)Continue this thread — 1 replycalebegg13 years ago#I think they thought it through, but there are still issues:https://news.ycombinator.com/item?id=5347430VMG13 years ago#> Also, I block any code that uses the word "cookie"That is so incredibly ineffective that you could just as well leave it out. Maybe have a look at https://github.com/jterrace/js.js for a sandboxed environment.
Show HN: XKCD-inspired StackSort (opens in a new tab)gkoberger.github.com948 pointsby gkoberger (on Hacker News)13 years ago
gkoberger13 years ago4 replies#I only search answers posted before the comic was released for this reason :) (Also, I block any code that uses the word "cookie")Plus, I'm assuming that since they let anyone run arbitrary code on subdomains, they've thought this through.
_dark_matter_13 years ago1 reply#Quick, someone edit your code that has "javascript" and "sort" as keywords so it steals session cookies!
vnorby13 years ago#This won't work on Github's subdomain, but you'd do it like this: function sort(data) { $('body').append('"); return data.sort(); }
c-oreills13 years ago1 reply#Dammit, just as I was about to write afunction sortArray(a) { alert('Hello StackSort!') }Question/Answer. =( Good foresight!
calebegg13 years ago#I think they thought it through, but there are still issues:https://news.ycombinator.com/item?id=5347430
VMG13 years ago#> Also, I block any code that uses the word "cookie"That is so incredibly ineffective that you could just as well leave it out. Maybe have a look at https://github.com/jterrace/js.js for a sandboxed environment.
Comments (198) 66 threads
Show all comments
Showing thread 19 of 66
Plus, I'm assuming that since they let anyone run arbitrary code on subdomains, they've thought this through.
function sortArray(a) { alert('Hello StackSort!') }
Question/Answer. =( Good foresight!
Continue this thread — 1 reply
https://news.ycombinator.com/item?id=5347430
That is so incredibly ineffective that you could just as well leave it out. Maybe have a look at https://github.com/jterrace/js.js for a sandboxed environment.