CVE-2026-44481
NVD
Vulnerability Summary
Summary Cacti 1.2.30 (and earlier 1.2.x releases) contains an unauthenticated open redirect in `link.php`. When a request specifies a non-existent `external_links` id, `link.php` reflects the value of the HTTP `Referer` header into the `Location:` response header without validating the URL scheme or host. The sanitiser `sanitize_uri()` in `lib/functions.php` strips a fixed character set (parentheses, quotes, brackets, semicolons, etc.) but allows the URL scheme and host intact, so attacker-supplied `https://` URLs survive untouched. An attacker who can cause a victim's browser to issue a request to `/link.php?id=<non-existent>` with a controlled `Referer` can have the Cacti server redirect the victim to any external URL, providing a credential phishing pivot through the trusted Cacti domain. No authentication is required. Details Vulnerable file: `link.php` (root of the Cacti webroot). Vulnerable helper: `lib/functions.php :: sanitize_uri()` at line 4435. `sanitize_uri()` removes only the following character set: ``` ^ $ < > ` ' " | + [ ] { } ; ! ( ) ``` It keeps: letters, digits, slash, colon, dot, hyphen, ampersand, percent, etc. So `http(s)://`, `ftp://`, and protocol-relative `//` schemes all survive intact, plus arbitrary host names and query strings. `link.php` looks up the requested `external_links.id`. When the row is missing, it falls through to a redirect that uses `$_SERVER['HTTP_REFERER']` (after passing through `sanitize_uri()`): ``` php header('Location: ' . sanitize_uri($_SERVER['HTTP_REFERER'])); ``` Because the sanitiser does not validate scheme or host, the redirect target is fully attacker-controlled. PoC Single curl reproduction against the running Cacti instance: ``` $ curl -s -D - -o /dev/null \ -H "Referer: https://attacker.example/phish?token=secret" \ "http://<cacti-host>/link.php?id=99999" HTTP/1.1 302 Found ... Location: https://attacker.example/phish?token=secret ``` `id=99999` (any id with no row in `external_links`) triggers the redirect fallback. The `Referer` value is reflected into `Location` verbatim. Impact - Vulnerability type: Open Redirect (CWE-601 URL Redirection to Untrusted Site). - Who is impacted: any Cacti 1.2.x deployment exposed to users who follow links from attacker-controlled pages. Phishing campaigns can use this to obtain a redirect that originates from the trusted Cacti domain, lending credibility to the attacker's destination page (typical impact: credential-harvesting forms styled to look like the victim's organisation). - Auth not required: the redirect fires before any authentication check. - Side notes: - The `javascript:` variant is partially neutralised by the existing sanitiser (parentheses are dropped, so `javascript:alert(1)` arrives as `javascript:alert1` and is inert), and modern browsers also block `javascript:` URLs in `Location` headers. The practical impact is the plain HTTP(S) phishing redirect described above. - No direct C/I/A on the Cacti instance itself. CVSS v3.1 base: 4.3 Medium - `AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N`. Mitigation suggestion In `link.php`, before issuing the redirect: 1. Validate the destination URL with `filter_var($url, FILTER_VALIDATE_URL, FILTER_FLAG_PATH_REQUIRED)` and reject anything whose scheme is not in a small allow-list (`http`, `https` only). 2. Confirm the host equals the configured Cacti host, OR fall back to a fixed internal page (`index.php`) when the request looks suspicious. 3. Either drop the Referer-based redirect entirely (preferred) or sign the redirect target server-side and verify on inbound. References - `link.php` (1.2.30): https://github.com/Cacti/cacti/blob/release/1.2.30/link.php - `lib/functions.php :: sanitize_uri()` (1.2.30, line 4435): https://github.com/Cacti/cacti/blob/release/1.2.30/lib/functions.php#L4435 - CWE-601 - URL Redirection to Untrusted Site: https://cwe.mitre.org/data/definitions/601.html - OWASP Unvalidated Redirects and Forwards Cheat Sheet: https://owasp.org/www-community/attacks/Unvalidated_Redirects_and_Forwards_Cheat_Sheet Discoverer / Credit VANGUARD Project (by fieldofsouls). Fix Addressed in: https://github.com/Cacti/cacti/pull/7103 --- Maintainer Remediation & Release Information This vulnerability is fixed in Cacti 1.2.31 (`release/1.2.31`) via PR #7103, which removes unvalidated `Referer`-based redirects in `link.php`. Users should upgrade to Cacti 1.2.31 or later.
CVSS v3.1 Base Metrics — Score 4.3
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:NAttack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionRequired
ScopeUnchanged
ConfidentialityNone
IntegrityLow
AvailabilityNone
Affected & Patched Versions
- cacti/cacti >= 1.2.0, <= 1.2.30
- cacti/cacti 1.2.31
What to do
Fix it during your normal patch cycle. No exploitation is confirmed yet.
- Check whether you run cacti/cacti and which version.
- Update to a patched version listed above, then confirm the new version.
Timeline
- Nov 29, 2026Published
- Nov 29, 2026Record last modified
Score, severity and exploitation changes are tracked from the day Watchtower started logging them.
Get notified about new cacti/cacti CVEsYou are reading CVE-2026-44481. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alertsExternal References
Data last checked: Nov 29, 2026 23:01 UTC