Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
Pyrescom-Termod-PoC — Pyrescom Termod proof-of-concept code for CVE-2020-23160, CVE-2020-23161 and CVE-2020-23162 | Kitploit
Tools/GitHubGitHub/outpost24/pyrescom-termod-poc
Vulnerability AnalysisExploitationWeb Application ExploitationInformation GatheringPenetration TestingCommand and ControlAuthenticationRemote Access Tool
GitHuboutpost24/pyrescom-termod-poc

Pyrescom-Termod-PoC

Pyrescom Termod proof-of-concept code for CVE-2020-23160, CVE-2020-23161 and CVE-2020-23162

View Repository
5 years agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

Pyrescom-Termod-PoC

This is the Proof-of-concept exploit code for three vulnerabilities discovered by Jonas Mattsson and Hugo van den Toorn at Outpost24 Ghost Labs. These vulnerabilities are discovered in the web server component on a Pyrescom Termod4 time control machine. These vulnerabilities can be chained and allow a remote attacker to bypass authentication, read files from the local filesystem and execute arbitrary commands. The following CVE IDs can be used to reference to these vulnerabilities: CVE-2020-23160, CVE-2020-23161 and CVE-2020-23162.

CVE Details

These vulnerabilities are identified by three CVE IDs, described below.

CVE-2020-23160 - Remote code execution

Remote code execution in Pyrescom Termod4 time management devices before 10.04k allows authenticated remote attackers to arbitrary commands as root on the devices. See MITRE CVE

CVE-2020-23161 - Local file inclusion

Local file inclusion in Pyrescom Termod4 time management devices before 10.04k allows authenticated remote attackers to traverse directories and read sensitive files via the Maintenance > Logs menu and manipulating the file-path in the URL. See MITRE CVE

CVE-2020-23162 - Sensitive information disclosure & weak encryption

Sensitive information disclosure and weak encryption in Pyrescom Termod4 time management devices before 10.04k allows remote attackers to read a session-file and obtain plain-text user credentials. See MITRE CVE

Proof-of-Concept

Chained attack against Termod4 devices, allowing an unauthenticated attacker to:

  • Obtain plain credentials by reading and decrypting exposed session information (CVE-2020-23161 & CVE-2020-23162).
  • Perform remote code execution (RCE) as root (CVE-2020-23161).
  • Take screenshots of the active device's current physical screen (potential eavesdropping on user-interaction on physical device, untested).

Installation

Clone this repository, (optionally) setup a Python virtual environment and install dependencies. Assuming you have Python3 and python3-venv installed (apt-get install python3-venv).

  1. (optional) Setup virtualenv called 'Pyrescom-CVE': python3 -m venv Pyrescom-CVE, change dir cd Pyrescom-CVE and activate it . bin/activate.

  2. Clone the repository into the current directory:

root@kitploit:~
git clone https://github.com/Outpost24/Pyrescom-Termod-PoC.git .
  1. Install dependencies with Python-pip:
root@kitploit:~
python -m pip install -r requirements.txt
  1. You should now be able to the actual script:
root@kitploit:~
python Pyrescom-poc.py

Usage

Basic usage of this PoC is as follows:

  • Basic usage, obtains plain credentials: python Pyrescom-poc.py http://<target-URI or IP>
  • Take screenshot of webserver interface python Pyrescom-poc.py http://<target-URI or IP> -s
  • Execute command python Pyrescom-poc.py http://<target-URI or IP> <command>
  • Help python Pyrescom-poc.py -h

License

Distributed under the GPL3 License. See LICENSE for more information.

Additional information

Further reading

Details on these vulnerabilities and how they were discovered can be found on our blog - Tales from the frontline: Outsmarted by smart devices.

Remediation

The vulnerabilities are fixed, exact details on the patch versions are unknown and not acknowledged by the vendor. We discovered the vulnerabilities in version 10.02r and verify that in version 10.04k the vulnerabilities are remediated. How intermediate releases are affected is unknown, therefore we recommend upgrading to the latest stable firmware version available for your device.

Disclosure timeline

Information our responsible disclosure policy can be found on our website.

Contact

Jonas Mattsson - LinkedIn

Hugo van den Toorn - @HugovdToorn - LinkedIn

Acknowledgement

Many thanks to Jonas who has the great habbit of finding the most awesome findings in the weirdest of places. Unfortunately for us, today marks your last day at Outpost24. So we would like to celebrate your departure with these three CVEs and we wish you all the best in your future endeavours.

"That might have been a bit out of scope..."

From Ghostlabs with love <3

Download Tool
Day #DateActivity
0-day18-12-2019Initial contact with vendor.
2 days20-12-2019Second attempt at contact with vendor.
21 days08-01-2020Third attempt at contact with vendor.
29 days16-01-2020Vendor meeting set-up through our customer.
40 days27-01-2020Meeting with vendor and our customer, vendor acknowledged issues and received full write-up.
82 days09-03-2020Update released and rolled out, performed brief re-test for our customer. Vulnerabilities resolved.
83 days10-03-2020Confirmed patch effectiveness with vendor. Proposed disclosure timeline, no response from vendor.
124 days20-04-2020Proposed disclosure timeline, no response from vendor.
141 days07-05-2020CVE reservation requested. More than 100 days since confirmation by vendor.
401 days22-01-2021Multiple requests towards Mitre for update/CVE in past 204 days. After re-submission CVE IDs were released on January 22nd.
408 days29-01-2021Release of this blog, CVE IDs and PoC.