CVE/vulnerability

Legitimate System Functions Exploited to Steal Secrets in Shared Linux Setups

Security researcher Ionuț Cernica revealed how commonplace Linux utilities can be weaponized to siphon sensitive data in multi-tenant environments.

His talk, “Silent Leaks: Harvesting Secrets from Shared Linux Environments,” exposed that without any root privileges or zero-day exploits, attackers can exploit standard tools—such as ps, /proc, and temporary file handling—to harvest database credentials, API keys, and user secrets in plain sight.

Process Visibility as an Attack Vector

Linux’s transparent process model allows any user to inspect the command lines of running processes via /proc/[pid]/cmdline and commands like ps auxww and pgrep.

While designed for debugging and system monitoring, this openness inadvertently grants attackers a reconnaissance advantage.

By continuously polling process information, an unprivileged user can reveal active jobs and extract parameters such as database usernames and passwords.

Cernica demonstrated real-world scenarios on shared hosting platforms where WordPress CLI invocations exposed plaintext credentials—DB_USER ‘wp_new_user’ and DB_PASSWORD ‘T3sting123!!’—and mysql -u root -p<password> commands leaked root passwords in the command line.

Many hosting providers rely on chroot jails or virtualization layers like CageFS to sandbox users. Yet Cernica showed that isolation can be undermined when privileged binaries run outside these restricted environments.

In one live demo, he leveraged a hosting-panel–provided binary to escape CageFS and execute host-level commands. Similarly, he exploited an undocumented command in a chrooted file manager to break out of the jail entirely.

A surprising leakage channel emerged through LiteSpeed Web Server’s shared error logging.

By reading the global stderr.log via /proc/self/fd/2, Cernica captured live error outputs from other users’ scripts—including bearer tokens, session cookies, and form credentials—highlighting how shared logs can become exfiltration points.

The LiteSpeed team patched the flaw within days, but this fix may not propagate quickly across all deployments.

Temporary directories like /tmp present a fleeting yet critical vulnerability. Applications frequently write SQL dumps, logs, and configuration files to /tmp, briefly exposing secrets.

Cernica’s monitoring script detected and exfiltrated these files within milliseconds of creation, uncovering installation logs with Mailman and MySQL root passwords, as well as temporary PHP scripts containing hardcoded admin credentials.

Even systems that disable /proc access and remove inspection utilities remain vulnerable: attackers can simply scan /tmp for world-readable scripts to extract secrets.

Cernica’s findings underscore that securing shared Linux environments demands more than kernel-level jails or default permissions.

He advises mounting /proc with the hidepid option or using user namespaces to isolate process views, sourcing credentials from secure vaults rather than command lines, and implementing per-user log files.

Additionally, isolating temporary directories per user and conducting red-team exercises targeting these silent leaks are crucial to validating defenses.

As organizations increasingly rely on shared Linux infrastructures—whether in hosting, educational labs, or container services—Cernica’s research serves as a potent reminder: the most trusted system functions can become stealthy reconnaissance tools, and assumptions, not exploits, often expose the greatest weaknesses.

Find this News Interesting! Follow us on Google News, LinkedIn, and X to Get Instant Updates!

Divya

Divya is a Senior Journalist at GBhackers covering Cyber Attacks, Threats, Breaches, Vulnerabilities and other happenings in the cyber world.

Recent Posts

OpenSSH sshole Flaw Allows Hackers to Log Into Password-Disabled Linux Accounts Using 257-Character Passwords

A decade-old authentication bypass in OpenSSH on musl-based Linux lets attackers log into accounts that…

1 minute ago

New GhostMap Android Vulnerability Can Crash Phones Permanently Without Opening an App or Granting Permissions

Bitdefender researchers have revealed a vulnerability called GhostMap that affects Android devices. This vulnerability can…

11 minutes ago

Microsoft Paint Vulnerability Allows Hackers to Execute Malicious Code Remotely Without User Interaction

Microsoft has announced a vulnerability in Windows Paint that could let unauthenticated attackers execute malicious…

34 minutes ago

ARTEX AI Framework Linked to Bank Breaches and Cloud Attacks Found Exposed Across Hundreds of Servers

An autonomous penetration-testing framework linked to South Korean banking breaches and cloud supply-chain attacks is…

1 hour ago

Shopify Makes IP Allowlisting Mandatory for All Public Apps to Prevent Stolen API Token Abuse

Shopify is making IP allowlisting mandatory for all public apps to limit abuse of stolen…

1 hour ago

OpenAI’s New GPT-6 Cyber Finds 81 High-Severity Firefox Vulnerabilities and 948 Linux Kernel Exploits

OpenAI has introduced GPT-6 Cyber, a security-focused model built to find and validate exploitable vulnerabilities…

1 hour ago