ID
VAR-E-201111-0076
CVE
cve_id: | CVE-2011-4529 | Trust: 1.9 |
cve_id: | CVE-2011-4531 | Trust: 1.3 |
cve_id: | CVE-2011-4530 | Trust: 1.3 |
cve_id: | CVE-2011-4532 | Trust: 1.3 |
EDB ID
18165
TITLE
siemens automation license manager 500.0.122.1 - Multiple Vulnerabilities - Windows dos Exploit
Trust: 0.6
DESCRIPTION
siemens automation license manager 500.0.122.1 - Multiple Vulnerabilities. CVE-2011-4532CVE-2011-4531CVE-2011-4530CVE-2011-4529CVE-77370CVE-77369CVE-77368CVE-77367 . dos exploit for Windows platform
Trust: 0.6
AFFECTED PRODUCTS
vendor: | siemens | model: | automation license manager | scope: | eq | version: | 500.0.122.1 | Trust: 1.0 |
vendor: | siemens | model: | automation license manager | scope: | lte | version: | <=500.0.122.1 | Trust: 0.6 |
vendor: | siemens | model: | automation license manager | scope: | eq | version: | 501.1.102.1 | Trust: 0.3 |
vendor: | siemens | model: | automation license manager | scope: | eq | version: | 500.0.1221 | Trust: 0.3 |
EXPLOIT
#######################################################################
Luigi Auriemma
Application: Siemens Automation License Manager
http://support.automation.siemens.com/WW/llisapi.dll?func=cslib.csinfo&lang=en&siteid=cseus&aktprim=0&extranet=standard&viewreg=WW&objid=10805384&treeLang=en
Versions: <= 500.0.122.1
Platforms: Windows
Bugs: A] Service *_licensekey serialid code execution
B] Service exceptions
C] Service NULL pointer
D] almaxcx.dll files overwriting
Exploitation: remote
Date: 28 Nov 2011
Author: Luigi Auriemma
e-mail: aluigi@autistici.org
web: aluigi.org
#######################################################################
1) Introduction
2) Bugs
3) The Code
4) Fix
#######################################################################
===============
1) Introduction
===============
Siemens Automation License Manager is the system used by Siemens for
handling the remote and local licenses of its HMI, SCADA and
industrial products.
This service is available in most of the products and it's necessary to
their usage.
#######################################################################
=======
2) Bugs
=======
--------------------------------------------
Service *_licensekey serialid code execution
--------------------------------------------
Buffer overflow in the handling of the serialid field used in the
various *_licensekey commands that share the same function for parsing
the parameters.
The vulnerability leads to code execution:
011C7D96 8B01 MOV EAX,DWORD PTR DS:[ECX]
011C7D98 8B10 MOV EDX,DWORD PTR DS:[EAX] ; controlled
011C7D9A 6A 01 PUSH 1
011C7D9C FFD2 CALL EDX
---------------------
B] Service exceptions
---------------------
Some long fields can be used to raise an exception:
The exception unknown software exception (0xc0000417) occurred in
the application at location 0x????????.
The exception is caused by the usage of wcscpy_s in some functions
that copy the values passed by the client into stack buffers.
This is what happens with open_session->workstation->NAME (function
00412060) or grant->VERSION and so on.
Note that in some systems the exception doesn't lead to a direct Denial
of Service (except the resources for the thread left active).
-----------------------
C] Service NULL pointer
-----------------------
NULL pointer dereference in the handling of the get_target_ocx_param
and send_target_ocx_param commands.
Note that in some systems the exception doesn't lead to a direct Denial
of Service (except the resources for the thread left active).
--------------------------------
D] almaxcx.dll files overwriting
--------------------------------
The almaxcx.dll ActiveX component (ALMListView.ALMListCtrl
E57AF4A2-EF57-41D0-8512-FECDA78F1FE7) has a Save method that allows to
specify an arbitrary filename to save.
The effect is the overwriting of any file with this empty one (just 2
bytes "\r\n").
Note that I can't exclude the possibility of controlling the content of
the saved file allowing code execution, indeed I didn't test the
component deeper to check this hypothesis so it remains open and who
has more experience than me with this component can confirm it or not.
#######################################################################
===========
3) The Code
===========
http://aluigi.org/poc/almsrvx_1.zip
https://github.com/offensive-security/exploitdb-bin-sploits/raw/master/bin-sploits/18165.zip
A]
almsrvx_1 almsrvx_1a.dat SERVER
B]
almsrvx_1 almsrvx_1b1.dat SERVER
almsrvx_1 almsrvx_1b2.dat SERVER
C]
almsrvx_1 almsrvx_1c.dat SERVER
D]
almsrvx_1d.htm
#######################################################################
======
4) Fix
======
No fix.
#######################################################################
Trust: 1.0
EXPLOIT LANGUAGE
txt
Trust: 0.6
PRICE
free
Trust: 0.6
TYPE
Multiple Vulnerabilities
Trust: 1.6
CREDITS
Luigi Auriemma
Trust: 0.6
EXTERNAL IDS
db: | NVD | id: | CVE-2011-4529 | Trust: 1.9 |
db: | EXPLOIT-DB | id: | 18165 | Trust: 1.6 |
db: | NVD | id: | CVE-2011-4531 | Trust: 1.3 |
db: | NVD | id: | CVE-2011-4530 | Trust: 1.3 |
db: | NVD | id: | CVE-2011-4532 | Trust: 1.3 |
db: | EDBNET | id: | 40625 | Trust: 0.6 |
db: | ICS CERT | id: | ICSA-11-361-01 | Trust: 0.3 |
db: | BID | id: | 50830 | Trust: 0.3 |
db: | BID | id: | 50831 | Trust: 0.3 |
REFERENCES
url: | https://nvd.nist.gov/vuln/detail/cve-2011-4529 | Trust: 1.6 |
url: | https://nvd.nist.gov/vuln/detail/cve-2011-4530 | Trust: 1.0 |
url: | https://nvd.nist.gov/vuln/detail/cve-2011-4531 | Trust: 1.0 |
url: | https://nvd.nist.gov/vuln/detail/cve-2011-4532 | Trust: 1.0 |
url: | http://aluigi.altervista.org/adv/almsrvx_1-adv.txt | Trust: 0.6 |
url: | http://support.automation.siemens.com/ww/llisapi.dll?func=cslib.csinfo&lang=en&siteid=cseus&aktprim=0&extranet=standard&viewreg=ww&objid=17323948&tree | Trust: 0.6 |
url: | https://www.exploit-db.com/exploits/18165/ | Trust: 0.6 |
url: | http://www.us-cert.gov/control_systems/pdf/icsa-11-361-01.pdf | Trust: 0.3 |
SOURCES
db: | BID | id: | 50830 |
db: | BID | id: | 50831 |
db: | EXPLOIT-DB | id: | 18165 |
db: | EDBNET | id: | 40625 |
LAST UPDATE DATE
2022-07-27T09:38:15.027000+00:00
SOURCES UPDATE DATE
db: | BID | id: | 50830 | date: | 2012-01-04T00:20:00 |
db: | BID | id: | 50831 | date: | 2012-01-03T21:50:00 |
SOURCES RELEASE DATE
db: | BID | id: | 50830 | date: | 2011-11-28T00:00:00 |
db: | BID | id: | 50831 | date: | 2011-11-28T00:00:00 |
db: | EXPLOIT-DB | id: | 18165 | date: | 2011-11-28T00:00:00 |
db: | EDBNET | id: | 40625 | date: | 2011-11-28T00:00:00 |