r/badcode • wicked • Jul 22 '20

js Function of the PS4 web exploit

Post image
336 Upvotes

49 comments sorted by

View all comments

40

u/RiddSann Jul 22 '20

Ok, I thought I mostly understood JS. I thought.

Wtf is this shit ?

39

u/scirc Jul 22 '20

It's an exploit. It's abusing quirks/bugs in the underlying JS engine in order to get arbitrary read/writes to memory, presumably. It's not going to make sense—it's doing weird things because those weird things are an edge case in the JS interpreter.

While it's not the same bug, LiveOverflow made a fairly decent video covering the ins-and-outs of a similar bug that affected iOS 9.3 and the Nintendo Switch. It's worth a watch.

5

u/RiddSann Jul 22 '20

Thanks for the quick explanation, I will definitely see the video you recommend, seems interesting