Add CVE-2019-13272#3
Open
pedrib wants to merge 2 commits intojollheef:masterfrom
pedrib:cve-2019-13272
Open
Conversation
added 2 commits
August 31, 2019 19:02
Owner
|
Hello, thank you for a pull request. You need to create also file with metadata and update .travis.yml, see #2 for example. |
jollheef
requested changes
Aug 31, 2019
| static const char *helper_path; | ||
|
|
||
| const char *helpers[] = { | ||
| "/usr/lib/x86_64-linux-gnu/xfce4/session/xfsm-shutdown-helper", |
Owner
There was a problem hiding this comment.
This file is from xfce4-session, which is not presented in most of the installations.
Author
There was a problem hiding this comment.
True - actually it relies on available helper methods that are typically found in desktops.
Quote from the page above:
Polkit's pkexec helper fits this pattern. On a typical desktop system, any
process running under an active local session can invoke some helpers through
pkexec (see configuration in /usr/share/polkit-1/actions, search for <action>s
that specify <allow_active>yes</allow_active> and <annotate key="org.freedesktop.policykit.exec.path">...</annotate>).
While pkexec is normally used to run programs as root, pkexec actually allows
its caller to specify the user to run a command as with --user, which permits
using pkexec to run a command as the user who executed pkexec. (Which is kinda
weird... why would I want to run pkexec helpers as more than one fixed user?)
I have attached a proof-of-concept that works on Debian 10 running a distro
kernel and the XFCE desktop environment; if you use a different desktop
environment, you may have to add a path to the `helpers` array in the PoC. When
you compile and run it in an active local session, you should get a root shell
within a second.
Owner
|
This exploit is not working over ssh and requires to be run from the local user only (jas502n/CVE-2019-13272#2), which means right now it's not possible to merge it till out-of-tree/out-of-tree#18 will be implemented. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Not my exploit, this comes from Jann Horn from Google's Project Zero:
https://bugs.chromium.org/p/project-zero/issues/detail?id=1903
This works pretty well on all machines I have tested.
Works at least on Linux 4.10 < 5.1.17, but it was also backported to some earlier versions according to the link above.