Skip to content

Harden against PEB stomping in UM #34

Description

@stevemk14ebr
  • Usermode reads should use

    extern "C" __declspec(dllexport) __declspec(noinline) BOOLEAN TraceAccessMemory(PVOID SafeAddress, ULONG_PTR UnsafeAddress, SIZE_T NumberOfBytes, SIZE_T ChunkSize, BOOLEAN DoRead)
    or at least ProbeForRead to restrict addresses we read to UM and catch with __try __except if they're invalid addresses.

  • Guard against PEB / Module lists stomping. Cycles can be created not including the list head/end causing infinite loops in the module walks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions