< go back to overview

Command injection when using external SMB storage

Platform: ownCloud Server

Versions: 8.1.2,

Date: 9/30/2015

Risk level: High

CVSS v2 Base Score: 9 (AV:N/AC:L/Au:S/C:C/I:C/A:C)

CWE: Improper Neutralization of Special Elements used in an OS Command (‘OS Command Injection’) (CWE-78)

Description

The external legacy SMB storage (not using php-libsmbclient) of ownCloud was not properly neutralizing all special elements which allows an adversary to execute arbitrary SMB commands.

Effectively this allows an attacker to gain access to any file on the system or overwrite it, potentially leading to a PHP code execution.

Affected Software

Action Taken

The vulnerable library is now properly handling potentially dangerous characters.

Acknowledgements

The ownCloud team thanks the following people for their research and responsible disclosure of the above advisory:

  • Lukas Reschke – ownCloud Inc. (lukas@owncloud.com) – Vulnerability discovery and disclosure.

Share this