Detect Zimbra Collaboration Suite SSRF Exploitation (CVE-2020-7796) in Google Chronicle
Detects exploitation attempts targeting CVE-2020-7796, a Server-Side Request Forgery (SSRF) vulnerability in Synacor Zimbra Collaboration Suite (ZCS). This vulnerability allows unauthenticated remote attackers to make the Zimbra server issue arbitrary HTTP requests to internal or external resources, potentially enabling internal network scanning, credential theft, or pivoting to internal services.
MITRE ATT&CK
YARA-L Detection Query
rule zimbra_ssrf_cve_2020_7796 {
meta:
author = "df00tech"
description = "Detects SSRF exploitation attempts targeting Zimbra Collaboration Suite CVE-2020-7796"
severity = "HIGH"
priority = "HIGH"
reference = "https://nvd.nist.gov/vuln/detail/CVE-2020-7796"
yara_version = "YL2.0"
rule_version = "1.0"
events:
$request.metadata.event_type = "NETWORK_HTTP"
$request.target.url != ""
(
re.regex($request.target.url, `(?i)/service/proxy`) or
re.regex($request.target.url, `(?i)/zimlet/`) or
re.regex($request.target.url, `(?i)/service/extension/`)
)
re.regex($request.target.url, `(?i)[?&](target|host|url|backend|redirect)=https?://`)
(
re.regex($request.target.url, `169\.254\.`) or
re.regex($request.target.url, `127\.0\.0\.1`) or
re.regex($request.target.url, `(?i)localhost`) or
re.regex($request.target.url, `(?i)metadata\.google`) or
re.regex($request.target.url, `(?i)\.internal`)
)
$request.principal.ip = $source_ip
match:
$source_ip over 10m
outcome:
$request_count = count_distinct($request.target.url)
$target_hosts = array_distinct($request.target.hostname)
condition:
#request > 0
} Chronicle YARA-L rule to detect Zimbra SSRF exploitation by monitoring HTTP requests to vulnerable Zimbra endpoints that embed internal network addresses or cloud metadata service URLs.
Data Sources
Required Tables
False Positives & Tuning
- Zimbra proxy functionality used legitimately for cross-server mail routing
- Authorized security assessments generating SSRF test payloads
- Zimbra integrations with internal cloud services using proxy endpoints
Other platforms for CVE-2020-7796
Testing Methodology
Validate this detection against 4 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are available with Pro.
- Test 1Zimbra SSRF via /service/proxy to Internal Metadata Service
Expected signal: HTTP GET request to /service/proxy with target parameter set to 169.254.169.254 visible in Zimbra access logs; outbound network connection from Zimbra server to 169.254.169.254:80 visible in network flow data
- Test 2Zimbra SSRF Internal Port Scan via /service/proxy
Expected signal: Multiple sequential requests to /service/proxy with varying port numbers in the target parameter; outbound connections from Zimbra host to internal IP across multiple ports within a short time window
- Test 3Zimbra SSRF to Internal Admin Interface via /zimlet/ Endpoint
Expected signal: HTTP GET to /zimlet/ endpoint with backend parameter containing 127.0.0.1 and internal admin port 7071; loopback connection attempt from Zimbra process visible in netstat/ss output or network telemetry
- Test 4Zimbra SSRF Credential Harvest via AWS EC2 Metadata
Expected signal: Two sequential requests to /service/proxy with IMDSv1 paths in target parameter; successful 200 response containing JSON with AccessKeyId, SecretAccessKey, and Token fields if running on AWS EC2 without IMDSv2 enforcement
Unlock Pro Content
Get the full detection package for CVE-2020-7796 including response playbook, investigation guide, and atomic red team tests.