Description
Beganovich snappdf from 1.1.0 before 6.1.0 contains an OS command injection vulnerability on Windows that allows attackers to run commands by influencing the rendered URL. Attackers can supply cmd.exe metacharacters such as & in the setUrl() value, which executeOnWindows() passes unescaped to PHP exec(), executing commands as the PHP process.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| beganovich | snappdf | 1.1.0 – < 6.1.0 | 6.1.0 |
References
- https://github.com/beganovich/snappdf/pull/54 patch issue-tracking
- https://github.com/beganovich/snappdf/commit/5197bd3bcc4df44e17246dbceea9ce51eb390eae patch
- https://github.com/beganovich/snappdf/blob/v6.0.0/src/Snappdf.php#L280-L284 technical-description
- snappdf v6.1.0 Release Notes release-notes
- VulnCheck Advisory: Beganovich snappdf 1.1.0 before 6.1.0 OS Command Injection on Windows via setUrl() third-party-advisory