Tuesday, November 27, 2018

New comment by batiste in "Richard Stallman: We Can Do Better Than Bitcoin"

Edit: I answered completely off base. Misunderstood the question. My hunch on the original question: Maybe some system only allow injected JS? Wordpress anyone? Not quite sure.

Yes, I learned it not so long ago in fact and I am a bit ashamed of it.

Try to save this into a HTML file:

  
  
"} If you execute just the JavaScript in your browser console: perfectly fine, valid JS. Now open the HTML file in a browser: powned.

This the because the browser has a HTML parsing phase, and only after JS is executed.

When . It doesn't matter if the happened to be inside the context of a JavaScript string. At this point the browser doesn't know about JS.



from Hacker News - New Comments: "WordPress" https://ift.tt/2FG9Fdm
via IFTTT

No comments:

Post a Comment

If Apple sends you a push notification about a spyware attack, take it seriously

Article URL: https://techcrunch.com/2026/08/13/if-apple-sends-you-a-push-notification-alerting-you-to-a-spyware-attack-take-it-seriously/ ...