# CVE-2017-6900: Command injection in n/a

> Attackers can inject commands via login parameters to gain administrator access and enable remote services on Riello NetMan devices.

- **Severity:** Critical 9.8 (`CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** No
- **Published:** 3 Jul 2019
- **Updated:** 5 Aug 2024
- **Also known as:** GHSA-jv83-3f96-42vw

## What is CVE-2017-6900?

CVE-2017-6900 is a critical command injection vulnerability in n/a, published on 3 Jul 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

An issue was discovered in Riello NetMan 204 14-2 and 15-2. The issue is with the login script and wrongpass Python script used for authentication. When calling wrongpass, the variables $VAL0 and $VAL1 should be enclosed in quotes to prevent the potential for Bash command injection. Further to this, VAL0 and VAL1 should be sanitised to ensure they do not contain malicious characters. Passing it the username of '-' will cause it to time out and log the user in because of poor error handling. This will log the attacker in as an administrator where the telnet / ssh services can be enabled, and the credentials for local users can be reset. Also, login.cgi accepts the username as a GET parameter, so login can be achieved by browsing to the /cgi-bin/login.cgi?username=-%20a URI.

Weakness: CWE-255

## Which versions are affected by CVE-2017-6900?

It affects 1 product.


Products: Riello-Ups Netman 204 Firmware.

## How do I fix CVE-2017-6900?

No fix has been published for CVE-2017-6900 yet. Limit exposure of the affected software until one is available.

## Is CVE-2017-6900 being exploited?

There is no known exploitation of CVE-2017-6900 in the wild and no public exploit code.

## Other vulnerabilities in n/a

- [CVE-2024-8878](https://insights.sbomify.com/CVE-2024-8878/): Unauthenticated Password Reset (critical 10.0)
- [CVE-2022-47893](https://insights.sbomify.com/CVE-2022-47893/): NetMan 204 Remote Code Execution (critical 10.0)
- [CVE-2022-3372](https://insights.sbomify.com/CVE-2022-3372/): Cross-Site Request Forgery (CSRF) in Riello UPS Netman-204 (high 8.8)
- [CVE-2022-47891](https://insights.sbomify.com/CVE-2022-47891/): Admin password reset in NetMan 204 (high 8.1)
- [CVE-2024-8877](https://insights.sbomify.com/CVE-2024-8877/): SQL Injection (medium 6.9)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2017-6900 and fix it if it is affected.

What it is: CVE-2017-6900 is a critical command injection vulnerability in n/a, published on 3 Jul 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2017-6900 in the wild and no public exploit code.

Affected product: n/a. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2017-6900/ (Markdown: https://insights.sbomify.com/CVE-2017-6900/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2017-6900
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2017-6900
- OSV: https://osv.dev/vulnerability/CVE-2017-6900

---
From sbomify Insights: https://insights.sbomify.com/CVE-2017-6900/
Summaries are generated and may contain mistakes; the official description above is the record.
