CVE Detection

Apache Sling Auditor includes automated detection for multiple known CVEs affecting Apache Sling and AEM.

Supported CVEs

Critical Severity

CVE-2021-44228 (Log4Shell)

Type: Remote Code Execution (RCE)
Severity: Critical
Affected Versions: Log4j < 2.15.0

Description:
Remote code execution vulnerability in Apache Log4j2 via JNDI lookup. This is one of the most critical vulnerabilities affecting Java applications.

Detection Method:

Injection Points:

Payloads:

Test Paths:

Remediation:
Update to Log4j 2.15.0 or higher, or apply mitigation by setting

1
log4j2.formatMsgNoLookups=true
.


CVE-2017-12617 (Path Traversal)

Type: Path Traversal
Severity: Critical
Affected Versions: Apache Sling < 9.0

Description:
Path traversal vulnerability allowing unauthorized file system access.

Detection Method:

Payloads:

Exploitation:
Attempts to read sensitive files:

Remediation:
Update to Apache Sling 9.0 or higher.


High Severity

CVE-2020-11987 (SSRF)

Type: Server-Side Request Forgery
Severity: High
Affected Versions: Apache Sling < 11.4

Description:
Server-Side Request Forgery vulnerability in Sling servlets allowing access to internal resources.

Detection Method:

Payloads:

Exploitation:
Tests access to:

Remediation:
Update to Apache Sling 11.4 or higher.


CVE-2017-12618 (SSRF)

Type: Server-Side Request Forgery
Severity: High
Affected Versions: Apache Sling < 9.0

Description:
SSRF vulnerability in Sling servlets.

Remediation:
Update to Apache Sling 9.0 or higher.


Medium Severity

CVE-2018-12809 (XSS)

Type: Cross-Site Scripting
Severity: Medium-High
Affected Versions: Apache Sling < 10.0

Description:
Cross-site scripting vulnerability in Query Builder API.

Detection Method:

Payloads:

Test Parameters:

Exploitation:
Generates HTML PoC files demonstrating XSS.

Remediation:
Update to Apache Sling 10.0 or higher.


CVE-2019-8086 (Information Disclosure)

Type: Information Disclosure
Severity: Medium
Affected Versions: Apache Sling < 11.0

Description:
Information disclosure through error messages and system endpoints.

Detection Method:

Check Patterns:

Test Paths:

Exploitation:
Extracts:

Remediation:
Update to Apache Sling 11.0 or higher.


CVE-2020-11984 (Path Traversal)

Type: Path Traversal
Severity: Medium
Affected Versions: Apache Sling < 11.4

Description:
Path traversal vulnerability in specific endpoints.

Remediation:
Update to Apache Sling 11.4 or higher.


CVE-2020-11985 (Path Traversal)

Type: Path Traversal
Severity: Medium
Affected Versions: Apache Sling < 11.4

Description:
Path traversal vulnerability in specific endpoints.

Remediation:
Update to Apache Sling 11.4 or higher.


CVE-2020-11986 (XSS)

Type: Cross-Site Scripting
Severity: Medium
Affected Versions: Apache Sling < 11.4

Description:
XSS vulnerability in specific components.

Remediation:
Update to Apache Sling 11.4 or higher.


Additional CVEs

CVE-2016-0957 (XSS)

Type: Cross-Site Scripting
Severity: Medium
Affected Versions: Apache Sling < 8.0

Remediation:
Update to Apache Sling 8.0 or higher.


CVE-2018-8013 (Information Disclosure)

Type: Information Disclosure
Severity: Medium
Affected Versions: Apache Sling < 9.0

Remediation:
Update to Apache Sling 9.0 or higher.


Detection Methods

1. Generic Detection

For generic CVEs, the auditor:

2. XSS Detection

Specialized XSS detection:

3. SSRF Detection

Specialized SSRF detection:

4. Path Traversal Detection

Specialized path traversal detection:

5. Information Disclosure Detection

Specialized information disclosure detection:

Detection Accuracy

The auditor uses multiple techniques to reduce false positives:

False Positives

To reduce false positives:

  1. Use Stealth Mode: More accurate but slower
  2. Review Configuration: Adjust detection patterns
  3. Manual Verification: Verify findings manually
  4. Exploitation Mode: Use
    1
    
    --exploit
    
    to validate

Adding Custom CVEs

See the Configuration Guide for instructions on adding custom CVEs.

CVE Summary Table

CVE Type Severity Affected Versions
CVE-2021-44228 RCE Critical Log4j < 2.15.0
CVE-2017-12617 Path Traversal Critical Sling < 9.0
CVE-2020-11987 SSRF High Sling < 11.4
CVE-2017-12618 SSRF High Sling < 9.0
CVE-2018-12809 XSS Medium Sling < 10.0
CVE-2019-8086 Info Disclosure Medium Sling < 11.0
CVE-2020-11984 Path Traversal Medium Sling < 11.4
CVE-2020-11985 Path Traversal Medium Sling < 11.4
CVE-2020-11986 XSS Medium Sling < 11.4
CVE-2016-0957 XSS Medium Sling < 8.0
CVE-2018-8013 Info Disclosure Medium Sling < 9.0

Want to exploit these? Check out the Exploitation Guide!