
PoC di LPE per Windows che sfrutta il driver AsInsHelp64.sys tramite lettura/scrittura arbitraria della memoria fisica per sovrascrivere i token del kernel e ottenere privilegi SYSTEM.
Questo è un PoC per la Local Privilege Escalation (LPE) che sfrutta il driver AsInsHelp64.sys.
Abusa di un driver ASUS legittimo e firmato per mappare la memoria fisica e sovrascrivere i token del kernel, ottenendo infine i privilegi NT AUTHORITY\SYSTEM.
AsInsHelp64.sys (Correlato ad ASUS Fan Xpert < v.10013)AsInsHelp64.sys deve essere caricato.!process 0 0 Systemdq <System_EPROCESS>+4b8 L1Esegui il file compilato. Il programma richiederà le informazioni di Sistema. image
Apri WinDbg ed esegui il seguente comando per trovare il processo System:
!process 0 0 System
Copia l'indirizzo che segue PROCESS e il valore di DirBase(CR3) image image
Usa l'indirizzo trovato nel passaggio precedente per leggere il valore del Token.
dq <System_EPROCESS_Address>+4b8 L1
image image
Lo strumento individuerà il tuo processo nel kernel, sovrascriverà il token e avvierà un nuovo CMD.
whoami
image
https://github.com/DriverHunter/Win-Driver-EXP/tree/main/CVE-2024-30804