Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2026-115463 — PoC and lab for CVE-2026-115463: recovers mt_rand state from self-minted Poweradmin email 2FA codes to predict a victim's second factor and bypass MFA. | Kitploit
Tools/GitHubGitHub/googlesky/cve-2026-115463
Password AttacksExploitationWeb Application ExploitationCryptographyAuthenticationLabs & Practice
GitHubgooglesky/cve-2026-115463

CVE-2026-115463

PoC and lab for CVE-2026-115463: recovers mt_rand state from self-minted Poweradmin email 2FA codes to predict a victim's second factor and bypass MFA.

View Repository
20h 20m agoNot yet reviewed
Share

CVE-2026-115463 — Poweradmin: predictable email second-factor code (mt_rand) with unlimited verification attempts

License: MIT Research status: validated

CVECVE-2026-115463
ComponentPoweradmin — lib/Domain/Service/MfaService.php (generateEmailVerificationCode(), verifyCode())
Affected4.0.0 – 4.2.5, 4.3.0 – 4.3.4, 4.4.0
Fixed in4.2.6 / 4.3.5 / 4.4.1 — commit 021e5fea (GHSA-9657-8vc2-7g2p)
CWECWE-338 (Cryptographically Weak PRNG), CWE-307 (Excessive Authentication Attempts)
ImpactAn attacker who knows a user's password can predict the 6-digit email second factor — mt_rand() state is recoverable from codes minted on the attacker's own account — and verifyCode() imposes no failed-attempt limit, so the second factor is bypassable
VectorNetwork — MFA email-code verification endpoint, password-holding attacker
Triggerrecover mt_rand state from self-minted codes, predict the victim's code, submit it

The vulnerable generator drew the email second factor from mt_rand():

// pre-fix MfaService::generateEmailVerificationCode()
$numericCode = mt_rand(100000, 999999);
return (string)$numericCode;

The fix switches to a CSPRNG and caps verification attempts:

// fixed (commit 021e5fea)
return (string)random_int(100000, 999999);
// plus: MAX_VERIFY_ATTEMPTS = 5, VERIFY_LOCKOUT_SECONDS = 900

1. Root cause

mt_rand() is a Mersenne Twister PRNG, not a cryptographic generator. Its internal state can be recovered from a modest number of observed outputs; an attacker with their own Poweradmin account can mint email codes until the state is recovered, then compute the exact code the server will generate for any other user. Because verifyCode() also accepted unlimited failed guesses while a code was live, even partial state knowledge was enough to walk the remaining space. The fix replaces the generator with random_int() (CSPRNG) and refuses verification after 5 failed attempts for 900 seconds.

2. Reproduction environment

serviceimagerole
pa-vulncve-2026-115463:vulnreal MfaService.php from 021e5fea^ (pre-fix)
pa-fixedcve-2026-115463:fixedreal MfaService.php from 021e5fea (vendor fix)
poccve-2026-115463-poc:localstdlib-only Python driver

A PHP harness instantiates the real MfaService via reflection, seeds mt_srand(12345), computes the prediction an attacker can make from that seed, re-seeds, and calls the real generateEmailVerificationCode(). Both sides differ only in the upstream MfaService.php source.

3. Running the environment

./run-lab.sh build     # builds both sides (php:8.3-cli)
./run-lab.sh up        # cve115463lab network: pa-vuln / pa-fixed
./run-lab.sh sweep
./run-lab.sh down

4. The PoC

poc/poc.py (stdlib only):

  • check — exit 1 when the generated code equals the seeded-PRNG prediction, 0 when independent; 3 no worker, 2 unreachable.
  • exploit — narrated stages: state recovery → prediction → second-factor bypass.
  • probe — prediction vs generated code, predictability flag.
  • mitigation — upgrade past 021e5fea (4.2.6 / 4.3.5 / 4.4.1).

A standalone full-chain exploit ships at exploit/exploit.py:

python3 exploit/exploit.py --host=pa-vuln
# exit 1 on confirmed predictability, 0 on a safe target

5. Expected results

observationpa-vuln (pre-fix)pa-fixed (021e5fea)
seeded prediction370690370690
generated email code370690 — predictablerandom (e.g. 157533) — not predictable

Captured runs: evidence/check-*-run.txt, evidence/exploit-*-run.txt, evidence/probe-*-run.txt, evidence/mitigation-*-run.txt, evidence/exploit-standalone-run.txt, evidence/exploit-standalone-fixed-run.txt, evidence/versions.txt, evidence/0day-sweep.txt.

6. Environment preconditions

  • Podman (or Docker); bounded containers on the isolated cve115463lab network.
  • Real-world exploitation requires a password-holding attacker with an account on the same Poweradmin instance (to observe PRNG outputs) and email-based MFA enabled for the victim.

7. Additional findings (0-day sweep on the fixed line)

The fixed line draws the email code from random_int() (CSPRNG); the seeded mt_rand prediction never matches. The generator no longer leaks PRNG state, and the fix additionally caps verification attempts (5) with a 900-second lockout, closing the brute-force window on a live code.

8. Repository layout

README.md             this write-up
run-lab.sh            environment driver (build / up / sweep / down)
Makefile              convenience targets
poc/poc.py            the PoC (check / exploit / probe / mitigation)
exploit/exploit.py    standalone full-chain exploit
lab/lab.Dockerfile    builds both sides from upstream source
lab/vendor/           real MfaService.php at pre-fix / fix commits
lab/harness.php       reflection harness calling the real generator
lab/service.py        HTTP wrapper (POST /code)
evidence/             captured runs of every mode on both sides
TRACKING.md           excluded (working record)

9. References

  • CVE record — https://www.cve.org/CVERecord?id=CVE-2026-115463
  • GitHub advisory — https://github.com/poweradmin/poweradmin/security/advisories/GHSA-9657-8vc2-7g2p
  • Fix commit — https://github.com/poweradmin/poweradmin/commit/021e5fea029cf8787247517cde752f9a6af1647c
  • Fixed releases — https://github.com/poweradmin/poweradmin/releases/tag/v4.2.6 · v4.3.5 · v4.4.1
Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    1.1k
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    618
  • 3

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    411
  • 4

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    328
  • 5

    jumpserver

    jumpserver/jumpserver

    JumpServer is an open-source Privileged Access Management (PAM) platform that provides DevOps and IT teams with on-demand and secure access to SSH, RDP, Kubernetes, Database and RemoteApp endpoints through a web browser.

    314
  • 6

    Aliens_eye

    arxhr007/aliens_eye

    AI powered OSINT engine to discover and map 7,700+ social media identities across the web

    275

Explore all tools

Browse our collection of tools

View all tools →