Description
Unrestricted file upload vulnerability in the CSV file upload functionality of the Ocsreports admin_info endpoint. The application validates files solely based on the name provided by the client, without properly checking their content or securely restricting the permitted file types. This allows a user with administrator privileges to upload PHP files to a directory accessible via the web interface. If the file is subsequently processed by the server, an attacker could execute arbitrary code with the privileges of the account used by the web service.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| OCS Inventory NG | Ocsreports | 2.12.6 | — |
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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 12 | ocsinventory-server | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 24.04 LTS | ocsinventory-server | No fix yet | — |
| Ubuntu 22.04 LTS | ocsinventory-server | No fix yet | — |
| Ubuntu 20.04 LTS | ocsinventory-server | No fix yet | — |
| Ubuntu 18.04 LTS | ocsinventory-server | No fix yet | — |
| Ubuntu 16.04 LTS | ocsinventory-server | No fix yet | — |