Skip to content
Access control Disclosed report Intermediate CVE-2026-50744

XML‑RPC login leak exposes valid session ID enabling unauthorized API access

The XML-RPC login method returned a session ID cookie in HTTP headers even when authentication failed, and the session was not invalidated. An attacker could use the leaked session ID to make subsequent API calls without restrictions.

kenjisubagja29 Follow

Originally disclosed on HackerOne

Medium 4.3 View original
  • Disclosed after 20 days

Summary by the program

HackerOne community member Kenji Subagja (garuthacktivist) has reported a way to bypass the admin‑only restriction of the XML‑RPC API in Revive Adserver 6.0.7. The API response for the ox.login method returned a session ID cookie in the HTTP headers, and although the method correctly returned an error, the associated session was not invalidated. As a result, the leaked session ID could be used to perform subsequent API calls without restrictions.

The original report as published on HackerOne, by kenjisubagja29. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 4 min read.

What the report shows

The target is the XML-RPC API of Revive Adserver 6.0.7, in the open-source repository at https://github.com/revive-adserver/revive-adserver. The API is meant to be admin-only, and the report describes a way to bypass that restriction.

The researcher, Kenji Subagja (garuthacktivist), looked at the ox.login method. When that method is called, the API response carries a session ID cookie in the HTTP headers. The method itself behaves correctly: it returns an error. The problem is what happens alongside the error. The session tied to the returned cookie is not invalidated, so the session ID stays valid after the failed login.

That leaked session ID can then be used for subsequent API calls without the restrictions that should apply. In other words, the failed login hands out a usable credential, and the admin-only boundary around the API no longer holds.

The report was disclosed on 25 June 2026 through HackerOne. It is rated medium severity with a CVSS score of 4.3, under the weakness category Improper Access Control - Generic. No bounty amount is recorded. The report does not describe a specific fix or patch.

Root cause

The report does not identify the underlying cause; it only records that the session tied to the returned cookie was not invalidated. The error response is correct at the application level, but the session lifecycle is not tied to the authentication outcome. A session that was never authenticated is left alive, and later API calls made with it are not subject to the restrictions that should apply.

Impact

Within the report's own framing, the consequence is that the admin-only restriction on the XML-RPC API can be bypassed. An attacker who can reach the ox.login method obtains a session ID from the response headers despite the login failing, and can use it to make further API calls without restrictions. The report does not enumerate which API methods were reachable this way or what data they expose, so the practical ceiling of the issue is not established in the text.

How this kind of bug works

Many applications treat a session as a container for state that is created early and populated later. Login flows often start a session so they can store a CSRF token, a flash message or a partial authentication state. The access control layer then asks a simple question: does this request carry a valid session? If the answer is yes, the request is allowed to proceed, and the authorisation decision is made on the presence of a session rather than on what that session has proven.

When a failed login leaves the session intact, the two questions diverge. The session exists and is valid, but nobody has authenticated into it. Any endpoint that checks only for session validity, or that checks a flag which defaults to a permissive value, will accept it. The bug class is therefore a mismatch between session creation and authorisation state, and it shows up wherever error paths skip cleanup.

General defences for this bug class: do not issue a session before authentication succeeds, or destroy and rotate it on every failure; bind authorisation to an explicit authenticated principal rather than to session existence; and make the default state of a new session unauthenticated and deny-by-default.

How to test for it

  1. Identify endpoints that create sessions: login forms, API login methods, SSO callbacks, password reset flows and anything that returns a Set-Cookie header.
  2. Send a deliberately failed authentication request, for example a valid username with a wrong password, or a malformed credential payload.
  3. Capture every cookie in the response, including cookies set on error responses.
  4. Replay those cookies against endpoints that require authentication, starting with low-impact read methods and moving to privileged ones.
  5. Compare the behaviour with a request that carries no cookie at all. A positive result is a privileged response, or a response that differs from the anonymous baseline, using a cookie obtained from a failed login.
  6. Repeat with a session obtained before login and after logout, since the same cleanup gap often appears on both paths.

Common false positives: the endpoint may return a generic error page that looks similar to a success page; the cookie may be a pre-session identifier that is rejected by every real endpoint; or the privileged call may succeed because the target is misconfigured to allow anonymous access anyway. Confirm by testing the same call without any cookie, and by checking that the session ID is actually accepted rather than merely echoed.

How this class of bug is fixed in general

  • Create the session only after credentials are verified, or regenerate the session ID at the moment of successful authentication.
  • Invalidate and clear the session on every failed login, logout and error path.
  • Make authorisation depend on an explicit authenticated identity stored server-side, not on the mere presence of a session cookie.
  • Apply deny-by-default to new sessions, so an unauthenticated session cannot reach privileged methods.
  • Add regression tests that assert no usable session survives a failed login.

Hunting notes

This bug class hides in authentication plumbing: API login methods, JSON-RPC and XML-RPC interfaces, mobile app login endpoints, SSO and OAuth callbacks, and password reset or account recovery flows. It is especially common where the same session store serves both a web UI and an API, because the API path is tested less often.

Recon signals worth following: responses that set cookies on error status codes, login endpoints that return session identifiers in headers rather than bodies, APIs documented as admin-only, and frameworks where session middleware runs before the authentication check. Diffing the headers of a failed login against a successful one often reveals the gap immediately.

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 7 min read.

What happened, in plain words

Revive Adserver is open-source software for running online advertisements. It has a feature called an XML-RPC API: a way for one computer program to talk to the ad server directly, without a person clicking through web pages. Think of it as a service counter at the back of a shop, where a courier can drop off and collect parcels without going through the front door. That counter is meant to be staff-only: the API is supposed to be usable only by an administrator.

The report describes a way to get past that staff-only rule in version 6.0.7 of the software, whose code lives at https://github.com/revive-adserver/revive-adserver. The researcher, Kenji Subagja (garuthacktivist), looked at one specific API method, ox.login, which is the API's login step. When a program calls it, the server answers with an error, which is the correct behaviour if the login did not succeed. But the answer also carries a session ID cookie in its HTTP headers.

A cookie is a small piece of text that a website asks your browser to keep and send back on later requests, so the server can recognise you between visits. A session ID is a cookie whose value acts like a claim ticket: whoever holds it is treated as the person the server handed it to. The everyday comparison is a cloakroom ticket: the attendant gives you a numbered ticket, and later anyone holding that ticket can collect the coat, no questions asked.

The problem is that the session behind that cookie was never cancelled. Even though the login failed, the ticket stayed valid. So the failed login effectively handed out a working credential, and that session ID could then be used to make further API calls without the restrictions that should apply. The admin-only boundary around the API no longer held.

The report was disclosed on 25 June 2026 through HackerOne. It is rated medium severity with a CVSS score of 4.3, under the weakness category Improper Access Control - Generic. No bounty amount is recorded, and the report does not describe a specific fix or patch.

Why it happens

The report does not say why this happens; it only records that the session behind the returned cookie was not invalidated. The error message is correct, but the session's life is not tied to whether the login worked. A session that was never authenticated is left alive, and later API calls accept it. In effect, later API calls made with that session are not subject to the restrictions that should apply.

What it means in practice

Within the report's own framing, the consequence is that the admin-only restriction on the XML-RPC API can be bypassed. Someone who can reach the ox.login method gets a session ID from the response headers despite the login failing, and can use it to make further API calls without restrictions. The report does not list which API methods were reachable this way or what data they expose, so how far the issue could be pushed is not established in the text.

In general, how this kind of bug works

Many applications treat a session as a container for state that is created early and filled in later. Login flows often start a session so they can store a CSRF token (a value used to prove a form came from the site itself), a flash message (a one-time notice shown on the next page) or a partial login state. The access control layer then asks a simple question: does this request carry a valid session? If yes, the request proceeds. The decision is made on whether a session exists, not on what that session has proven.

When a failed login leaves the session intact, those two questions drift apart. The session exists and is valid, but nobody has logged into it. Any endpoint that checks only for session validity, or that checks a flag which defaults to a permissive value, will accept it. The bug class is therefore a mismatch between session creation and authorisation state, and it appears wherever error paths skip cleanup.

The defences are straightforward in principle: do not issue a session before authentication succeeds, or destroy and rotate it on every failure; tie authorisation to an explicit authenticated identity rather than to the existence of a session; and make a new session unauthenticated and deny-by-default.

In general, how to test for it

  1. Identify endpoints that create sessions: login forms, API login methods, SSO callbacks (single sign-on handoffs), password reset flows and anything that returns a Set-Cookie header. A header is a line of metadata sent alongside a web request or response; Set-Cookie is the one that tells the client to store a cookie.
  2. Send a deliberately failed authentication request, for example a valid username with a wrong password, or a malformed credential payload.
  3. Capture every cookie in the response, including cookies set on error responses.
  4. Replay those cookies against endpoints that require authentication, starting with low-impact read methods and moving to privileged ones.
  5. Compare the behaviour with a request that carries no cookie at all. A positive result is a privileged response, or a response that differs from the anonymous baseline, using a cookie obtained from a failed login.
  6. Repeat with a session obtained before login and after logout, since the same cleanup gap often appears on both paths.

Common false positives: the endpoint may return a generic error page that looks similar to a success page; the cookie may be a pre-session identifier that is rejected by every real endpoint; or the privileged call may succeed because the target is misconfigured to allow anonymous access anyway. Confirm by testing the same call without any cookie, and by checking that the session ID is actually accepted rather than merely echoed back.

In general, how this class of bug is fixed

  • Create the session only after credentials are verified, or regenerate the session ID at the moment of successful authentication.
  • Invalidate and clear the session on every failed login, logout and error path.
  • Make authorisation depend on an explicit authenticated identity stored server-side, not on the mere presence of a session cookie.
  • Apply deny-by-default to new sessions, so an unauthenticated session cannot reach privileged methods.
  • Add regression tests that assert no usable session survives a failed login.

In general, where to look

This bug class hides in authentication plumbing: API login methods, JSON-RPC and XML-RPC interfaces, mobile app login endpoints, SSO and OAuth callbacks, and password reset or account recovery flows. It is especially common where the same session store serves both a web interface and an API, because the API path is tested less often.

Signals worth following during reconnaissance: responses that set cookies on error status codes, login endpoints that return session identifiers in headers rather than bodies, APIs documented as admin-only, and frameworks where session middleware runs before the authentication check. Comparing the headers of a failed login against a successful one often reveals the gap immediately.

Glossary

  • API: a defined way for one program to send requests to another and get structured answers back.
  • XML-RPC: a convention for calling functions on a remote server by sending requests formatted in XML, a text-based markup language.
  • HTTP headers: extra lines of metadata sent with a web request or response, separate from the main content.
  • Cookie: a small piece of text a site asks the client to store and send back on later requests, used to recognise the client.
  • Session: a server-side record of an ongoing interaction with one client, usually identified by a session ID.
  • Session ID: the value in a cookie that names a particular session; whoever holds it is treated as that session's owner.
  • Set-Cookie: the response header that instructs the client to store a cookie.
  • ox.login: the XML-RPC method in Revive Adserver that performs an API login.
  • Admin-only: restricted so that only administrator accounts may use it.
  • Access control: the rules deciding who is allowed to do what.
  • Improper Access Control: a weakness where those rules can be bypassed or are applied incorrectly.
  • Authentication: proving who you are, typically with a username and password.
  • Authorisation: deciding what an authenticated (or unauthenticated) party is allowed to do.
  • Deny-by-default: a setting where access is refused unless it is explicitly granted.
  • CSRF token: a value embedded in a form to prove the request came from the site itself, not from another site.
  • SSO / OAuth callback: a handoff step where a login performed at one service is passed back to another.
  • CVSS: a standard scoring system for rating the severity of a security issue.
  • False positive: a test result that looks like a problem but is not one.
  • Regression test: an automated check that a fixed bug stays fixed.
  • Reconnaissance: the information-gathering phase before testing, where you look for promising entry points.

More from Revive Adserver

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.