Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IsLimitedUserLogon function improvements #14

Open
antonioCoco opened this issue Mar 31, 2024 · 0 comments
Open

IsLimitedUserLogon function improvements #14

antonioCoco opened this issue Mar 31, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@antonioCoco
Copy link
Owner

The IsLimitedUserLogon function is a useful feature that suggests if other more powerful logon are available to the user.
The current logic first check some token properties like TokenElevation and TokenElevationType and then checks mismatch in token IL.

This logic should be inverted and the check for the token IL mismatch should be called before than the below if:

RunasCs/RunasCs.cs

Lines 434 to 438 in a1e47b5

if (isTokenUACFiltered)
{
logonTypeNotFiltered = LOGON32_LOGON_NETWORK_CLEARTEXT;
isLimitedUserLogon = true;
}

@antonioCoco antonioCoco added the enhancement New feature or request label Mar 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant