Public research

Tutor LMS

CVE-2026-85569
Read-only API key privilege escalation via REST request misclassification

High, 7.2 · Public source snapshot: November 12, 2026

Original portfolio report · Source reference · Source reference · Source reference · Source reference · Source reference · Public advisory · CVE record

Shared credits and the scope of my investigation are documented below.

Mallory holds a legitimate read-only Tutor LMS API key and secret issued by Alice, a WordPress administrator. By placing a Tutor-looking marker in an unrelated request's query string, Mallory can make affected Tutor LMS releases authenticate the request as Alice. The credential's Read permission is not checked before returning Alice's user ID. Mallory does not need Alice's password, a WordPress application password, or a login cookie.

The published affected range is 2.7.1–4.0.7, with the correction in 4.0.8. I compared official release archives for 2.7.0, 2.7.1, 4.0.7, and 4.0.8 and reviewed the now-public proof of concept. I did not execute the requests or perform a new takeover test. The source establishes the misclassification and identity promotion; WPScan's public report supplies the end-to-end examples. WPScan advisory

Field Public record
Product Tutor LMS WordPress plugin
Identifier CVE-2026-85569
Affected / fixed 2.7.1–4.0.7 / 4.0.8
Classification CWE-269; WPScan 7.2 High
Starting credential Valid Tutor API key and secret scoped to Read
Researcher and submitter Charles Vosburgh

Tutor LMS stores API credentials as user metadata belonging to the account that generated them. In restapi/RestAuth.php, generate_api_keys() requires an administrator and a valid nonce, then saves the key, secret, permission, and description under that administrator's user ID. Alice's deliberate grant of read-only integration access is the starting point, not an unprotected credential-creation screen.

The 4.0.7 RestAuth constructor hooks api_auth() into WordPress's determine_current_user filter. This establishes an identity for WordPress as a whole, not merely for Tutor route callbacks. A wrong answer changes how later core capability checks see the request.

The public demonstration uses HTTPS, the normal wp-json REST prefix, and PHP receiving the Basic-auth values. Tutor also requires wp_is_application_passwords_available() to return true. This is an availability gate, not validation of a WordPress application password. Existing authenticated requests are left alone. API-key deployment frequency, alternate prefixes, and site-specific authentication filters were not measured.

A query value is mistaken for the destination

In Tutor LMS 4.0.7, restapi/RestAuth.php, is_tutor_api_request() examines the complete request URI:

$rest_prefix = trailingslashit( rest_get_url_prefix() );
$request_uri = esc_url_raw( wp_unslash( $_SERVER['REQUEST_URI'] ?? '' ) );

$is_tutor_api = ( false !== strpos( $request_uri, $rest_prefix . 'tutor/' ) );

This is a substring check, not a comparison of the parsed path or dispatched route. With the standard prefix, a query value containing /wp-json/tutor/ satisfies it even when the destination is a core user endpoint. URL sanitization does not separate the query from the path.

A scoped key returns the issuer's identity

After its existing-user, request-classification, availability, and credential-presence gates, 4.0.7's api_auth() performs:

$record     = self::validate_api_key_secret( $api_key, $api_secret, true );
if ( $record ) {
    return $record->user_id;
}

validate_api_key_secret() compares the supplied key and secret against decoded user metadata. With the third argument true it returns the matching metadata row. Neither that success branch nor its caller checks the saved permission before returning the row's owner ID. We have moved from “this integration credential is valid” to “this request is Alice,” discarding its restricted authority.

Ordinary WordPress capability checks need not be broken: they now receive Alice's administrator identity. Tutor-specific route callbacks cannot restore the boundary for a request dispatched to a core route. The public PoC's unchanged-request control is important: identical credentials are rejected until the unrelated marker enables Tutor's identity filter.

Release history

The inspected 2.7.0 constructor does not register the identity filter, and it lacks api_auth() and is_tutor_api_request(). Those methods and the filter appear in 2.7.1, including the broad URI test and direct owner-ID return. The same decisions remain in 4.0.7. Version 4.0.8 adds path-only classification and a permission check before identity promotion. These snapshots support the published boundaries; intermediate releases were not individually inspected, and no introducing Git commit or separate backport was established here.

The primitive converts scoped API authority into the issuer's WordPress identity. Its consequences depend on that issuer's capabilities and independent site controls. The public administrator-issued-key example reaches private user details and administrator creation. An arbitrary visitor without the valid key and secret does not satisfy the prerequisite.

The application-password-availability gate can stop the path, as can failure to pass Basic-auth values to PHP. Invalid or revoked credentials fail the record lookup. An existing authenticated identity prevents this filter from replacing it. None enforces Read scope for the valid, otherwise unauthenticated request used by the PoC.

I did not reproduce the published response codes or inspect a separate original execution log. They are coordinator-published results, not new observations. Source review explains the changed authentication decision; end-to-end behavior on a particular WordPress and web-server configuration still requires a disposable local test. No separate code-execution claim is made.

The public WPScan PoC now documents this controlled comparison:

  1. Send the Read key and secret as Basic credentials to the core wp/v2/users route with edit context. The published negative control is HTTP 401.
  2. Repeat with an unused query value containing /wp-json/tutor/. WPScan reports HTTP 200 and edit-context account information.
  3. Place the marker on the core user-creation request. The published result is another administrator where the issuer has that capability; removing the marker restores rejection.

Its AJAX nonce example additionally shows that the identity mistake is not limited to Tutor REST handlers. The parameter name is incidental; its URI substring activates authentication.

These are descriptions of an inspected public PoC, not requests executed for this revision. Reproduction belongs only on an owned, disposable site with test credentials. The write request changes account privileges: delete the created administrator, revoke the test credential, and restore the disposable database afterward. Compare 4.0.7 and 4.0.8 with otherwise identical requests, and confirm documented read-only Tutor operations still work. Those fixed-release runtime controls were not performed here.

Upgrade to Tutor LMS 4.0.8 or later. In the inspected 4.0.8 is_tutor_api_request(), classification uses the parsed path:

$path        = wp_parse_url( $request_uri, PHP_URL_PATH );

The subsequent namespace check applies to that path, excluding unrelated query values. The executable body does not implement plain-permalink rest_route handling despite a nearby comment mentioning it.

The same release's api_auth() additionally requires explicit full-access permission before returning the owner ID:

$meta = json_decode( $record->meta_value );
if ( ! is_object( $meta ) || ! isset( $meta->permission ) || self::ALL !== $meta->permission ) {
    return $user_id;
}

return (int) $record->user_id;

These are complementary checks: establish the intended destination, then distinguish permission to read API data from permission to establish the issuer's full identity.

Regression coverage should compare Read and full-access credentials, invalid/revoked keys, existing authenticated identities, real Tutor paths, core REST paths, unrelated query markers, and authenticated AJAX dispatch. Site owners should rotate exposed integration credentials and review actions attributed to their issuing administrators.

CVE-2026-85569 joins two mistakes: a query substring activates authentication outside the intended destination, and a valid Read credential becomes its issuing administrator's WordPress identity. The verified release snapshots support the affected range 2.7.1–4.0.7 and correction in 4.0.8. This update adds source analysis and the public PoC walkthrough without claiming a new exploit run.

Public references:

Credit: Charles Vosburgh, original researcher and submitter; WPScan coordinated the public disclosure.