Mitigating semicolon path manipulation in Adobe Experience Manager as a Cloud Service

This article explains how to address the risk of semicolon-based path manipulation requests bypassing the CDN and reaching the Dispatcher layer in Adobe Experience Manager as a Cloud Service (AEMaaCS) environments, and provides steps for effective mitigation.

Description description

Environment

Adobe Experience Manager as a Cloud Service (AEMaaCS), all versions

Symptoms

  • Crafted HTTP requests containing a semicolon in the path (For example: /content/dam.children.json;foo=bar.css) reach the Apache/Dispatcher layer.
  • These requests are interpreted differently by the CDN, Dispatcher, and Sling/AEM, potentially bypassing extension-based or path-based filtering.
  • By default, the Adobe Managed CDN doesn’t block semicolon characters in URLs unless custom traffic filter rules are configured.
  • Without additional mitigation, such requests result in errors at Dispatcher or pose a risk of path manipulation.

Cause

The Adobe Managed CDN allows semicolon characters in URLs by default, as they are valid per URI specifications. Without custom CDN rules, these requests are passed through to Dispatcher, which must be configured to mitigate any potential path manipulation risks.

Resolution resolution

Follow the steps below to resolve the issue:

  1. Ensure that your Dispatcher configuration includes an Apache rewrite rule to block client-supplied requests containing semicolons in the path. This can be done using a rule based on %{THE_REQUEST} to detect and deny such requests.
  2. Regularly test and verify that the Dispatcher-level mitigation is active and effective by sending crafted requests with semicolons and confirming that they are blocked.
  3. If your application doesn’t use semicolon-based paths, and you require additional control at the CDN layer, consider configuring custom CDN traffic filter rules to block or reject requests containing semicolons in the path. This can be managed through the Cloud Manager configuration pipeline.
  4. Refer to the official documentation for configuring CDN traffic filters in your AEM as a Cloud Service environment.
  5. After implementing or updating rules, verify that requests with semicolons in the path are blocked at the desired layer (CDN or Dispatcher) and don’t reach AEM.
recommendation-more-help
experience-cloud-kcs-help-kbarticles