Description
Spotweb through 1.5.8 contains an OS command injection vulnerability in the runcommand NZB handler that allows remote attackers to execute commands by publishing spots with malicious titles. Attackers can post self-signed spots over Usenet with shell metacharacters in the title, which are substituted unescaped for $SPOTTITLE and passed to exec() when a user downloads the spot, running commands as the Spotweb PHP process.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| spotweb | spotweb | ≤ 1.5.8 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | spotweb | No fix yet | — |
| Ubuntu 18.04 LTS | spotweb | No fix yet | — |
References
- https://hackmd.io/@haind/spotweb-runcommand-title-injection technical-description exploit
- https://github.com/spotweb/spotweb product
- https://github.com/spotweb/spotweb/blob/1.5.8/lib/services/NzbHandler/Services_NzbHandler_Runcommand.php#L41-L45 technical-description
- VulnCheck Advisory: Spotweb through 1.5.8 OS Command Injection via Spot Title in Runcommand Integration third-party-advisory