QuestionQ14

VerifiedAdobe Experience Manager Sites Architect Master

An AEM Architect receives a bug-bounty report identifying a content-grabbing vulnerability in an AEM 6.5 production environment.

The exploit permits content grabbing through a service used to return FAQs in JSON format (for example, https://www.aemcms.com/services/faq?term=help).

The following URL performs the content grabbing:

https://www.aemcms.com/services/faq/jcr:content.form.json/bin/querybuilder.json.servlet? path=/apps&p.hits=full&p.nodedepth=1&p.limit=-1

The impacted farm has the following Dispatcher configuration in its /filter section:

/0014 \{ /type "deny" /url '.*/[.][.];/.*' \}  
/0015 \{ /type "deny" /url "/content*" /suffix "*" \}  
/0016 \{ /type "deny" /url "/content*" /selectors "*" \}  
/0021 \{ /type "allow" /method "GET" /url "/services/faq*" \}  

What should the architect do to remediate the vulnerability?

Explanation

A broad Dispatcher allow rule for /services/faq* also permits crafted URLs beneath that endpoint. Dispatcher can filter decomposed request elements such as selectors and extensions, so constraining the FAQ allow rule to empty selectors and extensions prevents a request with .form.json from reaching the QueryBuilder servlet while retaining the intended FAQ endpoint access. When multiple Dispatcher filters match, the last matching rule takes effect.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!