Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

Over elevation when simulating UAC #119

Open
bencikpeter opened this issue Aug 25, 2018 · 2 comments
Open

Over elevation when simulating UAC #119

bencikpeter opened this issue Aug 25, 2018 · 2 comments

Comments

@bencikpeter
Copy link
Contributor

I´ve been having a look at how the elevation promt issue was resolved and found this:

https://github.com/SharkCagey/HTWG_shark_cage/blob/6e7da91cdcfdcc57d6324d8cc08021d76337bb5a/SharkCage/CageManager/CageManager.cpp#L212-L229

In my opinion this is a massive over-elevation of that process. Arbitrary process is being launched with a token having SeCreateTokenPrivilege, SeTcbPrivilege and with context of LocalSystem. That alone grants basically unlimited control of the whole machine. (And who knows what else is in that token, since it is sampled from some system process)

If we cannot fix it, I think it should be a point of discussion whether we want to do this and leave a big security hole, or disable running elevated processes in a cage for now

@DonatJR
Copy link
Contributor

DonatJR commented Aug 25, 2018

Yeah, from #105:

Solution 2: Check for this error and display our own elevation prompt, this is currently rudimentarily implemented (thoughts?)

I just used the same code as before the token was used at all. This can certainly be improved.

@bencikpeter
Copy link
Contributor Author

@DonatJR Sorry, didn´t see it there 😉

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants