Working Exploits

From PS4 Developer wiki
Jump to: navigation, search

WebKit/Userland Exploits[edit]

Int32 bug[edit]

WebKit/536.26 exploit on System Firmware 1.760.000 and lower (patched in 2.000.000)
http://wololo.net/2014/10/24/webkit-exploit-confirmed-to-run-on-ps4-firmware-1-76/

CVE 2014-1303[edit]

WebKit/537.73 exploit on System Firmware 2.040.000 and lower (patched in 2.508.000)
https://github.com/Fire30/PS4-2014-1303-POC

FireKaku[edit]

WebKit/??? exploit on System Firmware 3.550.000 + 3.70 (Phat PS4 NOT PRO) and lower (patched in 4.000.000)
https://github.com/Fire30/PS4-3.55-Code-Execution-PoC

heap buffer overflow in butterfly access on uaf_target[edit]

WebKit/??? exploit on System Firmware 4.070.000 and lower (patched in 4.500.000)
https://rce.party/ps4 (mirror at https://gist.github.com/X41/36acd2a6939e4cebbecba45d35bf0d75)

Additional Information[edit]

On FW <= 1.76, you could map RWX memory from ROP by abusing the JiT functionality and the sys_jitshm_create and sys_jitshm_alias system calls. This however was fixed after 1.76, as WebKit has been split into two processes. One handles javascript compilation and the other handles other web page elements like image rendering and DOM. The second process will request JiT memory upon hitting JavaScript via IPC (Inter-Process Communication). Since we no longer have access to the process responsible for JiT, we can no longer (at least currently), map RWX memory for proper code execution.

Kernel Exploits[edit]

Dynamic Library Prepare Close (dlclose)[edit]

Analysis[edit]

Analysis of sys_dynlib_prepare_dlclose PS4 kernel heap overflow (by CTurt with the help of qwertyoruiop)

Source[edit]

Public release by kR105

Patched[edit]

Yes in 2.00 FW


BadIntegerReturn (badIRET)[edit]

Analysis[edit]

Hacking the PS4, part 3 - Kernel exploitation (by CTurt)

Source[edit]

CVE-2014-9322
Public binary

Patched[edit]

Yes in 2.00 FW


Additional Information[edit]

It seems at some point after the 1.76 FW, ASLR (Address Space Layout Randomization) was enabled in the kernel. This means that to properly exploit the kernel to escalate privileges, an information disclosure vulnerability will most likely be needed to defeat ASLR and locate the kernel in memory.

First Steps[edit]

VidNow[edit]

A possible exploit has been found in VidNow App in the Playstation Store App .

PATCHED: Sony has hotfixed this exploit via content hashing the file while in transit.

UPDATE: Some have managed to reverse the hotfix but the method is not known - the PS4 checks the content

        hash HTTP header from the HMAC header.

SnagFilms[edit]

A possible exploit has been found in the SnagFilms App in the Playstation Store App.

Arbitrary code execution in memory has been demonstrated, although so far the system will throw an exception in the programs memory before the payload finishes loading.

If you craft a small enough payload and/or a payload that load's without causing an exception in program memory you can most likely get code execution working.

http://i.imgur.com/5OrSFCa.jpg