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

[!] Error Execute on UBUNTU SERVER with no gcc [!] #1

Open
instagmag opened this issue Jan 26, 2022 · 7 comments
Open

[!] Error Execute on UBUNTU SERVER with no gcc [!] #1

instagmag opened this issue Jan 26, 2022 · 7 comments

Comments

@instagmag
Copy link

./cve-2021-4034-poc
sh: 1: gcc: not found
GLib: Cannot convert message: Could not open converter from 'UTF-8' to 'PWNKIT'
The value for the SHELL variable was not found the /etc/shells file

Polkit
(pkexec --version)
pkexec version 0.105

KERNEL
(uname -a)
Linux new-server1 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

@toxyl
Copy link

toxyl commented Jan 26, 2022

I've had the same problem, so I compiled the binary and the library separately (only for x86 64) and made an archive from the working check. It has a test-remote.sh script, pass to it a hostname (example.com, someone@example.com, the name of an entry from your SSH config, ..., whatever scp takes) and it will upload PwnKit to the host, run the exploit and if you get a shell, well, the host is vulnerable. And then use it to fix it (either update policykit or chmod 0755 /usr/bin/pkexec).

pwnkit-check.zip

@kylincodelab
Copy link

GLib: Cannot convert message: Could not open converter from “UTF-8” to “PWNKIT”
The value for the SHELL variable was not found the /etc/shells file

@anupamjaiswall
Copy link

./cve-2021-4034-poc sh: 1: gcc: not found GLib: Cannot convert message: Could not open converter from 'UTF-8' to 'PWNKIT' The value for the SHELL variable was not found the /etc/shells file

Polkit (pkexec --version) pkexec version 0.105

KERNEL (uname -a) Linux new-server1 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

sudo apt update
sudo apt install build-essential

@babyshen
Copy link

install gcc

@toxyl
Copy link

toxyl commented Jan 28, 2022

install gcc

not always a good idea, especially not when you are testing production servers

@kenorb
Copy link

kenorb commented Jan 28, 2022

Related PR: #2

@ParnaviKulkarni
Copy link

GLib: Cannot convert message: Could not open converter from “UTF-8” to “PWNKIT” The value for the SHELL variable was not found the /etc/shells file

Any solution for this? I am facing same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
7 participants