Skip to content
RCE Write-up Intermediate

CVE-2023–30258: When MagnusBilling Goes Rogue — Hunting Down Vulnerable Devices on Shodan

MagnusBilling versions 6 and 7 contain a command injection flaw that lets an unauthenticated attacker run arbitrary OS commands on the host with the web server's privileges. The text describes finding exposed instances via Shodan and testing them with Nuclei and Metasploit.

Abhishek Kollur Follow

Published on systemweakness.com

Welcome, cybersecurity enthusiasts and curious minds! Today, we’re going to embark on an adventure into the thrilling world of cybersecurity vulnerabilities, specifically the command injection vulnerability known as CVE-2023–30258.

Abhishek Kollur, on systemweakness.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.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely improper input validation: the software does not adequately check data before passing it to the operating system.

Impact

An unauthenticated attacker could run arbitrary OS commands with the web server's privileges, potentially gaining significant control over the system.

What the attacker needed

Internet-exposed MagnusBilling 6 or 7; no authentication needed

The fix

Users should upgrade MagnusBilling to the latest version to mitigate the vulnerability.

How it was found

  1. Search Shodan for pages containing the MagnusBilling string.
  2. Run Nuclei against the candidate hosts to filter out vulnerable ones.
  3. Use a public exploit, for example through Metasploit, to run a system information command on a vulnerable device.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

Command injection is when a program takes input from a user and passes it to the operating system without checking it properly, so an attacker can sneak in extra commands. Here, anyone on the internet could send such input to a billing server and make it run their commands, without even logging in.

What is RCE?

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

More by Abhishek Kollur

View all

20 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.