Skip to content
This repository was archived by the owner on Jan 21, 2021. It is now read-only.

PowerUp.ps1:2466 - Check SystemPath only#258

Closed
Bubbl3H3d wants to merge 1 commit intoPowerShellMafia:masterfrom
Bubbl3H3d:patch-1
Closed

PowerUp.ps1:2466 - Check SystemPath only#258
Bubbl3H3d wants to merge 1 commit intoPowerShellMafia:masterfrom
Bubbl3H3d:patch-1

Conversation

@Bubbl3H3d
Copy link
Copy Markdown

The current instantiation of code calls the %PATH% environment variable. However, since PowerUp is normally run with the permissions of an unprivileged crappy user in order to privesc, the %PATH% variable is returned as a concatenation of the SystemPath and UserPath. Any exploitable services running as SYSTEM will not call DLLs from the UserPath. Thus, we need to focus on writable folders in the SystemPath only in order to privesc. The proposed change pulls the SystemPath value directly from the registry and places it in the same format as the original code.

The current instantiation of code calls the %PATH% environment variable. However, since PowerUp is normally run with the permissions of an unprivileged crappy user in order to privesc, the %PATH% variable is returned as a concatenation of the SystemPath and UserPath. Any exploitable services running as SYSTEM will not call DLLs from the UserPath. Thus, we need to focus on writable folders in the SystemPath only in order to privesc. The proposed change pulls the SystemPath value directly from the registry and places it in the same format as the original code.
@Bubbl3H3d Bubbl3H3d changed the base branch from master to dev October 1, 2017 20:29
@Bubbl3H3d Bubbl3H3d changed the base branch from dev to master October 1, 2017 20:44
@Bubbl3H3d
Copy link
Copy Markdown
Author

Submitted to Dev: #263

@Bubbl3H3d Bubbl3H3d closed this Oct 1, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant