Skip to content
RCE Write-up Advanced

This Is How a Hacker Hacks: Part 4 — Root, and the Backup Server That Gave Up Everything

A university server ran an outdated polkit version vulnerable to PwnKit, letting the author escalate from a normal shell to root. Root's history files and SSH key then exposed the backup server and a predictable password pattern that unlocked further systems.

CypherNova1337 Follow

Published on cyphernova1337.medium.com

Cybersecurity

CypherNova1337, on cyphernova1337.medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 7 min read.

Context

This is the fourth part of a series about a penetration test against a university estate. Part 3 ended with a compromised document box and four walls; this part covers the local privilege escalation to root on that box and the pivot from it into the university's central backup server. The target here is not a web feature but a Linux host: an old server that had never been updated since 2016, running polkit 0.96, with SELinux disabled. The feature that matters is pkexec, the polkit helper that lets an authorised user run a program as another user, normally root. It is a SUID binary, so any local user can invoke it, and it is supposed to sanitise its environment before doing anything privileged.

From the original on cyphernova1337.medium.com

Setup

The starting point is a shell on the document box, obtained earlier in the series. The researcher's attack box ran glibc 2.3x; the target ran glibc 2.12. The target's polkit was version 0.96, from 2012, and the box had not been patched since 2016. SELinux was disabled. No credentials beyond the initial foothold are described as being needed for the escalation itself.

Finding it

After an earlier dirtycow attempt failed, the next move was plain enumeration: list every SUID binary on the host.

Text
/bin/su, /bin/mount, /bin/umount, /bin/ping, /usr/bin/sudo,/usr/bin/chsh, /usr/bin/pkexec, /usr/bin/gpasswd, ...

One entry stood out: /usr/bin/pkexec. On this box that meant polkit 0.96, a version from 2012. In 2021 a vulnerability was published that affected every polkit before 0.120: CVE-2021-4034, known as PwnKit. The bug is that with a NULL argv, pkexec's environment sanitisation is skipped, and a crafted GCONV_PATH plus CHARSET makes glibc load an attacker-supplied gconv module, a shared library, into a root process.

Kernel patches do not help against this. SELinux was disabled, and this is a userspace bug in a version-confirmed binary on a host that had never been updated since 2016.

Exploitation

Step 1: Build a gconv module that loads on the target's glibc

The exploit has two pieces: a static launcher, described as trivial, and the gconv module, a .so. The obstacle was the glibc gap. A module built on modern glibc normally demands symbol versions that do not exist on the target: GLIBC_2.33 not found, and the module never loads.

The fix was to write the module so that it uses only ancient symbols. Its entire job is:

C
void gconv_init(void *step) {    setuid(0); setgid(0);    char *cmd = "cp /bin/sh /tmp/.rs && chmod 4755 /tmp/.rs";    execve("/bin/sh", (char *[]){"/bin/sh","-p","-c",cmd,NULL}, envp);}

setuid, setgid and execve are all GLIBC_2.2.5, the oldest symbol version glibc exports. Verifying with objdump -T module.so | grep GLIBC shows:

Text
GLIBC_2.2.5  setuidGLIBC_2.2.5  setgidGLIBC_2.2.5  execve

Only ancient symbols means the module loads on glibc 2.12. The module also drops a persistent setuid shell at /tmp/.rs by copying /bin/sh there and setting mode 4755.

Step 2: Lay out the gconv path and run the launcher

The module is compiled with -shared -fPIC. Both files are uploaded, then the classic directory structure is laid out: GCONV_PATH=. containing an executable file named after the module, and a directory holding gconv-modules plus the .so. Running the launcher returns:

Text
uid=0(root) gid=0(root)

Root, plus the persistent setuid shell at /tmp/.rs. Kernel version and patch level are irrelevant to this path: one userspace bug and one cross-glibc build trick were enough.

Step 3: Read root's history files

The first thing root reads is root's own files, and this box had kept a decade of them.

/root/.mysql_history held the admin's literal MySQL commands, including:

SQL
update mysql.user set [redacted]"org@2557$") where user='root';

The database root password, in plaintext, in a history file, from 2014. It was still the current password, because it is also hardcoded in the nightly backup script.

/root/.bash_history was the complete ops diary: the PHP 5.2 install for Joomla 1.5, ssh-keygen, ssh-copy-id root@<backup-server>, the scp deployments, the manual backup pruning. Ten years of administration, preserved.

/root/.ssh/id_rsa held root's SSH key, and known_hosts held the addresses of the hosts it was used against. /etc/shadow held root's hash, which was cracked in seconds against the password from the history file.

The lesson for defenders: root's home directory is a diary. History files, MySQL history, viminfo: every box keeps them, nobody cleans them, and they contain the cleartext of everything.

Step 4: Pivot to the backup server

The ssh-copy-id in the history meant passwordless root SSH to a specific host: the university's backup server. From the document box:

Bash
ssh -i /root/.ssh/id_rsa [redacted]

That gave root on the backup server, which turned out to be a map of the entire organisation:

  • authorized_keys: 24 keys from about 20 university hosts. Every one of those servers could log into this box as root. The backup server is the hub every system pushes to; owning it means knowing every system.
  • known_hosts: the internal topology, three /16 networks, dozens of addresses, custom SSH ports.
  • The storage array: 11 terabytes of Backup_Web/ and Backup_VM/, per-site backups of the whole estate. It was failing: XFS I/O errors in dmesg, unreadable. The university's central backups were broken and nobody knew. The root filesystem being 100% full, the ghost from Part 3, was likely the accomplice.

Step 5: Turn the password into an oracle

The shadow file gave up root's password, and it was not random. It was a pattern:

Text
org@2557$

2557 is a Buddhist-calendar year, the year the box was set up. It matched the pattern in everything else: the MySQL root password, the backup server's root password (current and its 2016 kickstart hash), the Moodle server's root (...2556$, set up a year earlier), the Moodle database (...2555$). One administrator, one formula, incremented yearly, never rotated, for a decade.

That is the oracle: crack one password and you can generate the candidates for every other system the admin ever touched. org@2554$ through org@2568$ is the entire password space of the organisation, computable on the back of an envelope.

Later, when the central campus database was found and its MySQL rejected every credential the team had, the oracle solved it in seconds: the box was set up in Buddhist year 2564. root / org@2564$ was accepted. Part 5 covers what lived behind that door.

Root cause

The escalation itself is CVE-2021-4034: with a NULL argv, pkexec skips environment sanitisation, and a crafted GCONV_PATH and CHARSET cause glibc to load an attacker-supplied gconv module into a root process. The host was vulnerable because polkit 0.96 predates the fix and the box had not been updated since 2016. SELinux was disabled, and the bug is in userspace, so kernel patching would not have helped. and the bug is in userspace, so kernel patching would not have helped.

The wider compromise rests on operational mistakes rather than a single code flaw: plaintext credentials and command history left in root's home, a root SSH key trusted by the backup server, and a predictable password scheme built from a calendar year. The backup server's role as the hub every host pushes to, with 24 authorised keys, turned one host into visibility over the whole estate.

Impact

On the document box, the attacker obtained root and a persistent setuid shell at /tmp/.rs. From there, the root SSH key gave passwordless root access to the university's backup server. On that server the attacker could see the internal topology through known_hosts, the full set of hosts trusted to log in as root through authorized_keys, and 11 terabytes of per-site web and VM backups. The backups were already unreadable because of XFS I/O errors, so their value as a recovery path was already lost.

The password pattern extended the impact beyond the two hosts: the same formula, incremented yearly, protected the MySQL root account, the backup server's root account, the Moodle server's root account and the Moodle database. It also yielded working credentials for the central campus database, whose contents are covered in Part 5. The report does not state how many systems were ultimately accessed or what data was taken.

Fix

Variants to test

  1. Enumerate SUID binaries on any Linux host you have a shell on and check the version of every privileged helper, starting with pkexec. A positive result is a polkit version below 0.120, which is a candidate for CVE-2021-4034.
  2. Build a gconv module against the oldest symbol versions and check it with objdump -T module.so | grep GLIBC. A positive result is that only GLIBC_2.2.5 symbols appear, meaning the module should load on much older glibc targets.
  3. Read /root/.mysql_history, /root/.bash_history, /root/.ssh/id_rsa and /etc/shadow after any root compromise. A positive result is plaintext credentials, SSH keys or host lists that extend access beyond the current host.
  4. Inspect authorized_keys and known_hosts on any central backup or jump host. A positive result is a large set of trusted keys and a map of internal networks and non-standard SSH ports.
  5. Look for passwords containing a year, especially a calendar year from a non-Gregorian calendar, and generate candidates around it. A positive result is that one cracked password predicts credentials on other hosts set up in nearby years.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 17 min read.

What happened, in plain words

This is the fourth part of a series about a security test against a university's computer systems. In part 3, the tester got a foothold on an ordinary document server but could not go any further. This part is about how that foothold was turned into full control of that machine, and then into control of the university's central backup server, the machine where copies of everything are kept.

A few ideas first, because everything below depends on them.

  • Linux is an operating system, the software that runs a computer and manages its files and programs. Servers very often run Linux.
  • root is the name of the all-powerful account on a Linux machine. A normal user can read and change their own files; root can read and change everything, install software, and create or delete other accounts. Getting root is the goal of most attacks on a Linux server.
  • A shell is a text window where you type commands and the computer answers. When someone says they "have a shell" on a machine, they mean they can type commands on it, usually as an ordinary user.
  • A binary is a program file, the compiled, ready-to-run form of software.
  • SUID is a special permission flag on a program file. Normally a program runs with the rights of the person who started it. A SUID program runs with the rights of the person who owns the file instead. If the owner is root, then anyone who runs that program is, for the duration of that program, effectively root. This exists so that ordinary users can do a few privileged things, like changing their own password, without being given the root password.
  • A vulnerability is a mistake in software that lets someone make it do something it was not supposed to do.
  • A privilege escalation is the step from a limited account to a more powerful one, here from an ordinary user to root.
  • A pivot is when an attacker uses one compromised machine as a stepping stone to reach another one that could not be reached directly.
From the original on cyphernova1337.medium.com

The article opens by saying part 3 ended at four walls, and this part is the door that opened anyway. The rest is the story of that door and of what was behind it.

Step 1: Listing the SUID programs

Earlier in the series the tester had tried dirtycow, a well-known Linux vulnerability from 2016 that also aims at getting root. It failed on this machine. So the next move was the simplest one available: ask the machine to list every SUID program it has. This is called enumeration, meaning systematically listing what is there before choosing what to attack. It is the equivalent of walking around a building reading every door sign instead of guessing.

The command used is not shown in the report, but its output is:

Text
/bin/su, /bin/mount, /bin/umount, /bin/ping, /usr/bin/sudo,/usr/bin/chsh, /usr/bin/pkexec, /usr/bin/gpasswd, ...

Line by line, in plain words:

  • /bin/su lets a user switch to another account if they know its password.
  • /bin/mount and /bin/umount attach and detach storage devices and filesystems.
  • /bin/ping sends a small test message to another computer to see if it answers.
  • /usr/bin/sudo lets a permitted user run a single command as root.
  • /usr/bin/chsh changes which shell program an account uses when it logs in.
  • /usr/bin/pkexec is the interesting one, explained below.
  • /usr/bin/gpasswd manages group passwords.
  • The ... at the end means the list continued; the report only shows these entries.

One entry stood out: /usr/bin/pkexec. pkexec is a small helper program that belongs to a piece of software called polkit. Polkit is the part of a Linux desktop or server that decides whether a user is allowed to perform a privileged action, and pkexec is the tool that lets an authorised user run one program as another user, normally root. Because pkexec is SUID, any local user can start it, and it is supposed to carefully clean up its surroundings before doing anything powerful.

On this machine, pkexec meant polkit version 0.96, released in 2012. In 2021 a vulnerability was published that affects every polkit version before 0.120. It is catalogued as CVE-2021-4034 and nicknamed PwnKit. A CVE is a public identifier for a known vulnerability, so that everyone can refer to the same bug unambiguously.

The bug works like this. When a program starts, it receives a list of arguments, the words typed after its name, and a list of environment variables, which are named settings the operating system passes to every program, such as where to find certain files. Normally pkexec throws away dangerous environment variables before doing anything privileged. But if it is started with a NULL argument list, meaning an empty list rather than a normal one, that clean-up step is skipped. An attacker can then supply two environment variables, GCONV_PATH and CHARSET, which together make the system's core C library, glibc, load an extra library file chosen by the attacker. That library then runs inside a root process, so the attacker's code runs as root.

Two details matter for why this machine was defenceless. First, the bug is in userspace, meaning in ordinary programs rather than in the kernel, the core of the operating system. Patching the kernel therefore does nothing about it. Second, SELinux, a Linux feature that can confine programs to a limited set of actions even when they run as root, was switched off on this machine. And the machine had not been updated since 2016, so the 2021 fix was never applied. The report puts it plainly: the door was open.

Step 2: Building a library the old machine will accept

The exploit has two parts. The first is a small launcher program, described as trivial, whose job is to start pkexec in the malformed way the bug requires. The second is the gconv module, a .so file. A .so file is a shared library: a bundle of ready-made code that other programs can load and use, rather like a plug-in.

Here the tester hit a practical obstacle. The attack machine ran glibc version 2.3x, while the target ran glibc 2.12. glibc is the standard C library, the collection of basic functions that almost every Linux program relies on. When a library is built, it records which version of each function it expects, and those expectations are called symbol versions. A library built on a modern glibc normally asks for modern symbol versions that simply do not exist on an old machine. The loader then refuses it with an error such as GLIBC_2.33 not found, and the module never loads.

The fix was to write the module so that it uses only very old functions, ones that have existed since the earliest glibc. The module's entire job is:

C
void gconv_init(void *step) {    setuid(0); setgid(0);    char *cmd = "cp /bin/sh /tmp/.rs && chmod 4755 /tmp/.rs";    execve("/bin/sh", (char *[]){"/bin/sh","-p","-c",cmd,NULL}, envp);}

Line by line:

  • void gconv_init(void *step) { starts the function that glibc calls when it loads this module. The name gconv_init is what the loading mechanism looks for.
  • setuid(0); switches the process to user number 0, which is root.
  • setgid(0); switches it to group number 0, root's group.
  • char *cmd = "cp /bin/sh /tmp/.rs && chmod 4755 /tmp/.rs"; prepares a command to run later. cp /bin/sh /tmp/.rs copies the standard shell program to a hidden-looking file in the temporary directory. chmod 4755 then sets that copy's permissions so that it is SUID and executable by everyone. The result is a shell that anyone who runs it gets as root.
  • execve("/bin/sh", (char *[]){"/bin/sh","-p","-c",cmd,NULL}, envp); runs the shell. The -p option tells it to keep the elevated rights instead of dropping them, and -c tells it to run the prepared command. envp passes along the environment.
  • The closing } ends the function.

setuid, setgid and execve are all available under the symbol version GLIBC_2.2.5, the oldest version glibc exports. To confirm this, the tester inspected the built file with objdump, a tool that shows what is inside a compiled program:

Text
GLIBC_2.2.5  setuidGLIBC_2.2.5  setgidGLIBC_2.2.5  execve

Each line says that one function is required at version GLIBC_2.2.5. Because only ancient symbols are requested, the module loads on glibc 2.12. The report calls this the one technical trick that mattered: an old machine will accept a new library if the library only asks for things the old machine has.

Step 3: Placing the files and running the launcher

The module is compiled with the options -shared -fPIC, which tell the compiler to produce a shared library that can be loaded at any memory address. Both files, the launcher and the module, are then uploaded to the target. Next comes the classic directory layout that the bug expects:

  1. A directory pointed to by GCONV_PATH=., meaning the current directory, containing an executable file named after the module.
  2. A directory holding a file called gconv-modules, which tells glibc which module to load, plus the .so file itself.

With that in place, the launcher is run, and the answer is:

Text
uid=0(root) gid=0(root)

This line reports the identity of the current process: user ID 0 and group ID 0, which is root. The tester now had root on the document box, plus the persistent SUID shell at /tmp/.rs that the module had dropped, so root access could be regained later even if the original route was closed. As the report notes, the kernel version and patch level were irrelevant to this path: one userspace bug and one build trick were enough.

Step 4: Reading root's history files

The first thing the tester did as root was read root's own files, and this machine had kept a decade of them. A history file is a file in which a program automatically records the commands a user has typed, so they can be recalled later.

/root/.mysql_history held the administrator's literal MySQL commands. MySQL is a database program, software that stores and answers questions about large amounts of structured data. One entry was:

SQL
update mysql.user set [redacted]"org@2557$") where user='root';

Line by line:

  • update mysql.user means change a row in MySQL's own table of user accounts.
  • set [redacted]"org@2557$") sets the account's password to the value inside the quotes, passed through MySQL's PASSWORD function, which hashes it.
  • where user='root' limits the change to the account named root.

So the database's root password was sitting in plaintext in a history file, written in 2014. It was still the current password, because the same password was also hardcoded in the nightly backup script, a program that runs automatically every night and therefore cannot prompt anyone for a password.

/root/.bash_history was the complete operations diary. Bash is the most common Linux shell, and its history file records every command typed into it. It contained the PHP 5.2 installation for Joomla 1.5, ssh-keygen, ssh-copy-id root@<backup-server>, the scp deployments and the manual backup pruning. In plain words: PHP is a programming language used to build websites, Joomla is a content management system built with it, ssh-keygen creates a pair of SSH keys, ssh-copy-id installs a public key on a remote machine so that its owner can log in without a password, and scp copies files between machines over SSH. SSH is the standard way to open a command session on a remote Linux machine, protected by encryption. Ten years of administration were preserved in that one file.

/root/.ssh/id_rsa held root's private SSH key, the secret half of the pair that proves identity, and known_hosts held the addresses of the hosts it had been used against. known_hosts is a file where SSH remembers the machines it has connected to before. /etc/shadow held root's password hash. A hash is the result of a one-way scrambling of a password: the machine stores the scrambled value, not the password itself, and checks a login by scrambling what was typed and comparing. Hashes can be attacked by guessing passwords and scrambling the guesses, which is called cracking. Here it took seconds, because the tester already had a candidate from the history file.

The lesson for defenders, as the report puts it: root's home directory is a diary. History files, MySQL history, viminfo, which is a file where the vim text editor stores recent state, are kept by every machine, cleaned by nobody, and contain the cleartext of everything.

Step 5: Using the key to reach the backup server

The ssh-copy-id in the history meant passwordless root SSH to one specific host: the university's backup server. From the document box, the tester ran:

Bash
ssh -i /root/.ssh/id_rsa [redacted]

Line by line:

  • ssh starts the remote login program.
  • -i /root/.ssh/id_rsa tells it to prove identity with that specific private key file instead of a password.
  • [redacted] says to log in as the user root on the machine at that address.

That gave root on the backup server, and the backup server turned out to be a map of the entire organisation:

  • authorized_keys is the file listing the public keys that are allowed to log in to this machine. It held 24 keys from about 20 university hosts. Every one of those servers could log into this box as root. A backup server is the hub that every system pushes its data to, so owning it means knowing every system.
  • known_hosts gave the internal topology: three /16 networks, dozens of addresses and custom SSH ports. A /16 network is a range of addresses defined by the first sixteen bits, which is a very large block. Topology means the layout of which machines exist and how they connect.
  • The storage array held 11 terabytes of Backup_Web/ and Backup_VM/, per-site backups of the whole estate. A storage array is a large box of disks presented to a server as one big volume. It was failing: XFS, the filesystem in use, was reporting I/O errors in dmesg, the kernel's log of hardware and system messages, and the data was unreadable. The university's central backups were broken and nobody knew. The root filesystem being 100% full, the ghost from part 3, was likely the accomplice.

Step 6: Turning one password into a password oracle

The shadow file gave up root's password, and it was not random. It was a pattern:

Text
org@2557$

2557 is a year in the Buddhist calendar, which runs several centuries ahead of the Gregorian calendar used in most of the world, and it was the year this machine was set up. The same pattern appeared everywhere else: the MySQL root password, the backup server's root password, both the current one and its 2016 kickstart hash, the Moodle server's root password ending in ...2556$ because it was set up a year earlier, and the Moodle database ending in ...2555$. Moodle is a widely used learning platform for universities. A kickstart hash is the scrambled password recorded in an automated installation file. One administrator, one formula, incremented yearly, never changed, for a decade.

That is the oracle: a source of answers that can be consulted again and again. Crack one password and you can generate the candidates for every other system the administrator ever touched. org@2554$ through org@2568$ is the entire password space of the organisation, computable on the back of an envelope.

Later, when the central campus database was found and its MySQL rejected every credential the team had, the oracle solved it in seconds: the machine was set up in Buddhist year 2564. root with org@2564$ was accepted. Part 5 covers what lived behind that door.

Why it worked, and what it cost

The escalation itself is CVE-2021-4034: with a NULL argument list, pkexec skips its environment clean-up, and a crafted GCONV_PATH and CHARSET make glibc load an attacker-supplied module into a root process. The machine was vulnerable because polkit 0.96 predates the fix and nothing had been updated since 2016. SELinux was disabled, and because the bug is in userspace, kernel patching would not have helped.

The wider compromise rests on operational mistakes rather than a single code flaw: plaintext credentials and command history left in root's home, a root SSH key trusted by the backup server, and a predictable password scheme built from a calendar year. The backup server's role as the hub every host pushes to, with 24 authorised keys, turned one machine into visibility over the whole estate.

On the document box the attacker obtained root and a persistent SUID shell at /tmp/.rs. From there the root SSH key gave passwordless root access to the backup server. On that server the attacker could see the internal topology through known_hosts, the full set of hosts trusted to log in as root through authorized_keys, and 11 terabytes of per-site web and virtual machine backups. A virtual machine is a computer simulated in software, whose whole disk can be copied as a file. The backups were already unreadable because of the XFS errors, so their value as a recovery path was already lost.

The password pattern extended the impact beyond the two machines: the same formula, incremented yearly, protected the MySQL root account, the backup server's root account, the Moodle server's root account and the Moodle database. It also produced working credentials for the central campus database, whose contents are covered in part 5. The report does not say how many systems were ultimately accessed or what data was taken.

How to fix it

What to test on your own systems

  1. List the SUID programs on any Linux machine you have a shell on, and check the version of every privileged helper, starting with pkexec. A polkit version below 0.120 is a candidate for CVE-2021-4034.
  2. Build a gconv module against the oldest symbol versions and check it with objdump -T module.so | grep GLIBC. If only GLIBC_2.2.5 symbols appear, the module should load on much older glibc targets.
  3. After any root compromise, read /root/.mysql_history, /root/.bash_history, /root/.ssh/id_rsa and /etc/shadow. Plaintext credentials, SSH keys or host lists there extend access beyond the current machine.
  4. Inspect authorized_keys and known_hosts on any central backup or jump host. A large set of trusted keys and a map of internal networks and non-standard SSH ports is what you are looking for.
  5. Look for passwords containing a year, especially a year from a non-Gregorian calendar, and generate candidates around it. One cracked password that predicts credentials on other machines set up in nearby years is the sign of a scheme, not a policy.

Glossary

  • Bash: the most common Linux shell, which also records typed commands in a history file.
  • Binary: a compiled, ready-to-run program file.
  • CVE: a public identifier for a known vulnerability, so everyone can refer to the same bug.
  • Cracking: guessing passwords and scrambling the guesses until one matches a stored hash.
  • dirtycow: a well-known Linux vulnerability from 2016 that aims at getting root.
  • Enumeration: systematically listing what exists on a system before choosing what to attack.
  • Environment variable: a named setting the operating system passes to every program.
  • gconv module: a shared library that glibc loads to convert between character encodings.
  • glibc: the standard C library that almost every Linux program relies on.
  • Hash: a one-way scrambling of a password, stored instead of the password itself.
  • History file: a file where a program automatically records the commands a user has typed.
  • Joomla: a content management system for building websites.
  • Kernel: the core of the operating system, which manages hardware and processes.
  • Kickstart hash: the scrambled password recorded in an automated installation file.
  • known_hosts: an SSH file remembering which machines have been connected to before.
  • Linux: an operating system commonly used on servers.
  • Moodle: a widely used learning platform for universities.
  • MySQL: a database program that stores and answers questions about structured data.
  • Oracle: here, a source of answers that can be consulted repeatedly, in this case a password pattern that predicts other passwords.
  • PHP: a programming language used to build websites.
  • Pivot: using one compromised machine as a stepping stone to reach another.
  • pkexec: a SUID helper from polkit that lets an authorised user run a program as another user, normally root.
  • polkit: the Linux component that decides whether a user may perform a privileged action.
  • Privilege escalation: moving from a limited account to a more powerful one, here to root.
  • PwnKit: the nickname for CVE-2021-4034, the pkexec vulnerability.
  • root: the all-powerful account on a Linux machine.
  • scp: a program that copies files between machines over SSH.
  • SELinux: a Linux feature that confines programs to a limited set of actions, even as root.
  • Shared library: a bundle of ready-made code that other programs can load, stored as a .so file.
  • Shell: a text window where you type commands and the computer answers.
  • SSH: the standard encrypted way to open a command session on a remote Linux machine.
  • ssh-copy-id: a command that installs a public key on a remote machine so its owner can log in without a password.
  • ssh-keygen: a command that creates a pair of SSH keys.
  • Storage array: a large box of disks presented to a server as one big volume.
  • SUID: a permission flag that makes a program run with the rights of its owner, often root.
  • Symbol version: the version label a library records for each function it expects, checked when it is loaded.
  • Topology: the layout of which machines exist on a network and how they connect.
  • Userspace: ordinary programs, as opposed to the kernel.
  • Virtual machine: a computer simulated in software, whose whole disk can be copied as a file.
  • Vulnerability: a mistake in software that lets someone make it do something it was not supposed to do.
  • XFS: a Linux filesystem, the software that organises files on a disk.
  • /16 network: a range of network addresses defined by the first sixteen bits, a very large block.

More by CypherNova1337

View all

12 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.