← Advisories

OpenBMCS 2.4 Unauthenticated SSRF / RFI

High
Advisory ID
ZSL-2022-5694
Release Date
16 January 2022
Vendor
Affected Version
2.4
Tested On
Linux Ubuntu 5.4.0-65-generic (x86_64), Linux Debian 4.9.0-13-686-pae/4.9.228-1 (i686), Apache/2.4.41 (Ubuntu), Apache/2.4.25 (Debian), nginx/1.16.1, PHP/7.4.3, PHP/7.0.33-0+deb9u9
Summary

Building Management & Controls System (BMCS). No matter what the size of your business, the OpenBMCS software has the ability to expand to hundreds of controllers. Our product can control and monitor anything from a garage door to a complete campus wide network, with everything you need on board.

Description

Unauthenticated Server-Side Request Forgery (SSRF) and Remote File Include (RFI) vulnerability exists in OpenBMCS within its functionalities. The application parses user supplied data in the POST parameter 'ip' to query a server IP on port 81 by default. Since no validation is carried out on the parameter, an attacker can specify an external domain and force the application to make an HTTP request to an arbitrary destination host. This can be used by an external attacker for example to bypass firewalls and initiate a service and network enumeration on the internal network through the affected application, allows hijacking the current session of the user, execute cross-site scripting code or changing the look of the page and content modification on current display.

Proof of Concept
Disclosure Timeline
26.10.2021Vulnerability discovered.
17.11.2021Vendor contacted.
15.01.2022No response from the vendor.
16.01.2022Public security advisory released.
Credits
Vulnerability discovered by Gjoko Krstic
References
Changelog
16.01.2022Initial release
20.01.2022Added reference [1], [2], [3] and [4]
20.04.2026Added reference [5] and [6]