❌

Normal view

Received β€” 27 October 2026 ⏭ /r/netsec - Information Security News & Discussion

I've proven that you don't need quotes or parentheses in JavaScript

You can overwrite the prepareStackTrace property of the Error object by String prototype's functions and invoke them without parentheses. Then by overwriting the Error and Array prototype it is possible to control the arguments. Combining this behavior, together with some JSFuck-inspired tricks, it is possible to generate arbitrary JavaScript strings and run arbitrary JavaScript with only letters + - = and ,

submitted by /u/DrAdalbbert
[link] [comments]
Received β€” 9 October 2026 ⏭ /r/netsec - Information Security News & Discussion

I found yet another way to invoke JavaScript functions without parentheses

It turns out you can overwrite the Error.prepareStackTrace method with the function constructor. Then, using prototype pollution, you can inject valid JavaScript code to generate arbitrary functions and invoke it using the usual tricks.

submitted by /u/DrAdalbbert
[link] [comments]
❌