Critical severity

SmbClientParser perl module allows remote command execution

Remote command execution vulnerability in the Perl SmbClientParser module via manipulated folder names.

Original release date
February 2006
Discovered by
Jesús Olmos González
Severity
5 / 5 Scale 1–5
Affected product
Filesys::SmbClientParser up to version 2.7

Antecedentes

SmbClientParser is a Perl module for programming interactive NetBIOS code. It is a wrapper for the Linux smbclient command, available on CPAN.

Description

The module executes the command using backticks (`$pargs`) after applying insufficient filters to the arguments. If a tool based on this module explores a shared folder containing a directory with a manipulated name (for example, ' x && xterm ), shell commands are executed on the scanner's machine.

Business impact

Remote execution of commands on the machine exploring the shared resource.

Affected systems

All versions up to and including 2.7.

Solución

Apply the proposed patch, which adds a Sanitize function to remove dangerous characters. The issue was reported in 2006 with no response from the author, so caution is advised with CPAN modules.

Calendario de divulgación

26 Feb 2006 Vulnerability discovered by Internet Security Auditors.
26 Apr 2006 Initial notification sent to the module owner.
Sep 14, 2006 Second notification: a correction is promised within one week, but no results.
2 Dec 2006 Third notice. No response.
18 Jan 2007 Fourth notice. No response.
1 May 2007 Fifth notification. No response.
Nov 11, 2007 Sixth notice. No response.

References

Sobre Internet Security Auditors

Company based in Spain and Colombia, specializing in web application auditing, network security, penetration testing, and compliance implementation and assessment. Our clients include some of the largest finance, telecommunications, insurance, and ICT companies. A vendor-independent provider with in-depth experience since 2001. Our R&D efforts include vulnerability research, collaboration on open security projects, whitepapers, and participation in industry events.

Would you like us to review your product?

Contact us
Contact

Do you need a security audit?

Tell us about your situation and our team will get in touch with you to provide guidance or schedule a technical call.

Request information

We will contact you as soon as possible.
Global Presence

Our offices

Barcelona

C. Santander, 101. Building A-2
E-08030 Barcelona (Spain)

+34 93 305 13 18
Madrid

Arequipa St., 1
28043 Madrid (Spain)

+34 91 763 40 47
Bogotá

Transversal 22 # 98-82, Porta 100 Building, Office 1003
110221 Bogotá (Colombia)

+57 601 638 68 88
25
years of experience in cybersecurity
Contact us