-----BEGIN PGP SIGNED MESSAGE-----
AUSCERT External Security Bulletin Redistribution
ESB-2008.0020 -- [UNIX/Linux]
SynCE Remote Command Injection
8 January 2008
AusCERT Security Bulletin Summary
Publisher: Core Security Technologies
Operating System: UNIX variants (UNIX, Linux, OSX)
Impact: Execute Arbitrary Code/Commands
Original Bulletin: http://www.coresecurity.com/?action=item&id=2070
- --------------------------BEGIN INCLUDED TEXT--------------------
- -----BEGIN PGP SIGNED MESSAGE-----
Core Security Technologies â€“ CoreLabs Advisory
SynCE Remote Command Injection
Title: SynCE Remote Command Injection
Advisory ID: CORE-2007-1106
Advisory URL: http://www.coresecurity.com/?action=item&id=2070
Date published: 2008-01-07
Date of last update: 2008-01-03
Vendors contacted: SynCE team
Release mode: Coordinated release
Class: Input validation error
Remotely Exploitable: Yes
Locally Exploitable: Yes
Bugtraq ID: N/A
CVE Name: N/A
SynCE is an open source project, whose objective is to provide a way of
communicating with a Windows CE or Pocket PC device, from a computer
running Linux, *BSD or other unices. For more information see
The vdccm daemon (part of the SynCE package) is vulnerable to a remote
command injection, which can be exploited by malicious remote attackers.
The vulnerability is due to the vdccm daemon not properly sanitizing
certain input before using it to invoke external scripts. This can be
exploited to execute arbitrary commands with the privileges of the vdccm
daemon by sending specially crafted requests.
. Synce-dccm since version 0.92
. Synce-dccm 0.91 and earlier.
. SynCE-dccm 0.10.1
*Vendor Information, Solutions and Workarounds*
This vulnerability has been fixed in SynCE-dccm 0.10.1, available at
This vulnerability was discovered and researched by Alfredo Ortega and
Oren Isacson from Core Security Technologies.
*Technical Description / Proof of Concept Code*
The vdccm daemon listens on port 5679 for incoming connections from a
Windows CE device.
The command injection exist on the name of the connected device. The
code at src/utils.cpp, function Utils::runScripts contains the
string command = string(path) + " " + action + " " + deviceName;
The contents of the string variable "deviceName" is controlled by the
The next python proof of concept script will remotely create an empty
file named "/tmp/vulnerability" when used on a FreeBSD host running the
- - ---------------------------
import socket, struct
return ''.join([x+chr(0) for x in string])
HOST = '192.168.XXX.XXX'
PORT = 5679
c= socket.socket(socket.AF_INET, socket.SOCK_STREAM)
- - ---------------------------
NOTE: for this proof of concept to work, a script file is needed on the
"$home$/.synce/scripts" directory. Some linux distributions ship with
scripts on this directory by default.
2007-11-12: Core notifies the SynCE team of the vulnerability.
2007-11-13: Technical details sent by Core to SynCE team.
2007-11-22: SynCE notifies Core that a fix has been produced, and will
be released in the next SynCE official release.
2007-12-20: SynCE releases version 0.10.1, which fixes this vulnerability.
2008-01-07: CORE-2007-1106 advisory is published.
CoreLabs, the research center of Core Security Technologies, is charged
with anticipating the future needs and requirements for information
We conduct our research in several important areas of computer security
including system vulnerabilities, cyber attack planning and simulation,
source code auditing, and cryptography. Our results include problem
formalization, identification of vulnerabilities, novel solutions and
prototypes for new technologies.
CoreLabs regularly publishes security advisories, technical papers,
project information and shared software tools for public use at:
*About Core Security Technologies*
Core Security Technologies develops strategic solutions that help
security-conscious organizations worldwide develop and maintain a
proactive process for securing their networks. The company's flagship
product, CORE IMPACT, is the most comprehensive product for performing
enterprise security assurance testing. IMPACT evaluates network,
endpoint and end-user vulnerabilities and identifies what resources are
exposed. It enables organizations to determine if current security
investments are detecting and preventing attacks. Core augments its
leading technology solution with world-class security consulting
services, including penetration testing and software security auditing.
Based in Boston, MA and Buenos Aires, Argentina, Core Security
Technologies can be reached at 617-399-6980 or on the Web at
The contents of this advisory are copyright (c) 2008 CORE Security
Technologies and (c) 2008 CoreLabs, and may be distributed freely
provided that no fee is charged for this distribution and proper credit
This advisory has been signed with the GPG key of Core Security
Technologies advisories team, which is available for download at
- -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
- -----END PGP SIGNATURE-----
- --------------------------END INCLUDED TEXT--------------------
You have received this e-mail bulletin as a result of your organisation's
registration with AusCERT. The mailing list you are subscribed to is
maintained within your organisation, so if you do not wish to continue
receiving these bulletins you should contact your local IT manager. If
you do not know who that is, please send an email to email@example.com
and we will forward your request to the appropriate person.
NOTE: Third Party Rights
This security bulletin is provided as a service to AusCERT's members. As
AusCERT did not write the document quoted above, AusCERT has had no control
over its content. The decision to follow or act on information or advice
contained in this security bulletin is the responsibility of each user or
organisation, and should be considered in accordance with your organisation's
site policies and procedures. AusCERT takes no responsibility for consequences
which may arise from following or acting on information or advice contained in
this security bulletin.
NOTE: This is only the original release of the security bulletin. It may
not be updated when updates to the original are made. If downloading at
a later date, it is recommended that the bulletin is retrieved directly
from the author's website to ensure that the information is still current.
Contact information for the authors of the original document is included
in the Security Bulletin above. If you have any questions or need further
information, please contact them directly.
Previous advisories and external security bulletins can be retrieved from:
If you believe that your computer system has been compromised or attacked in
any way, we encourage you to let us know by completing the secure National IT
Incident Reporting Form at:
Australian Computer Emergency Response Team
The University of Queensland
Internet Email: firstname.lastname@example.org
Facsimile: (07) 3365 7031
Telephone: (07) 3365 4417 (International: +61 7 3365 4417)
AusCERT personnel answer during Queensland business hours
which are GMT+10:00 (AEST).
On call after hours for member emergencies only.
-----BEGIN PGP SIGNATURE-----
-----END PGP SIGNATURE-----