Better HN
topnewbestaskshowjobs
Log inSign up

brasenose

29 karma · joined Jul 5, 2022 (4y ago) · 1 submissions

Submissions

comment 4y ago · link · parent

Some critique from a seasoned kernel exploiter https://twitter.com/d_olex/status/1544008208641306624:

"You have at least two race condition bugs in your code: manual traverse of ActiveProcessLinks without locking the list, and same issue with process objects you're working with. Correct approach: use appropriate kernel functions to reference needed _EPROCESS in error safe way."

And https://twitter.com/d_olex/status/1544013068388433920:

"Seriously, never ever touch nt!PsActiveProcessHead list with your own code, nt!ZwQuerySystemInformation() with SystemProcessInformation info class can do it for you without any risks to catch BSoD ... and if you want direct _EPROCESS pointer for your fuckery -- it's better to obtain it with nt!PsLookupProcessByProcessId() and free it with nt!ObDereferenceObject() call at the end."