Synopsis
A denial of service vulnerability exists in Contec CONPROSYS HMI System (CHS) v3.5.2. An unauthenticated remote attacker can exploit it to prevent legitimate users from logging in from the attacker-specified IP addresses for hours if the time zones configured in PHP and PostgreSQL are different. The attacker can repeat the attack to cause login DoS for an extended period of time.
Proof of Concept
Prevent logins from localhost.
Set "date.timezone" to "UTC" in php.ini and "America/New_York" in PostgreSQL to ensure differing timezones.
On a separate host, run:
# curl -H "X-Forwarded-For: ::1" -d 'uid=admin&pwd=aaa' 'http://<chs-host>/php/login.
# curl -H "X-Forwarded-For: 127.0.0.1" -d 'uid=admin&pwd=aaa' 'http://<chs-host>/php/login.
On the CHS host using a web browser, try to login to http://localhost/ with valid credentials for ProjectID admin. Valid users with correct credentials should not able to login from that host.
Solution
Apply latest vendor-supplied patch.
Additional References
https://jvn.jp/vu/JVNVU93372935/index.htmlhttps://jvn.jp/en/vu/JVNVU93372935/index.html
https://www.contec.com/api/downloadlogger?download=/-/media/Contec/jp/support/security-info/contec_security_chs_230531_en.pdf
https://www.contec.com/jp/api/downloadlogger?download=/-/media/Contec/jp/support/security-info/contec_security_chs_230531_jp.pdf
Disclosure Timeline
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]