Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reflected Cross Site Scripting in Version Compare and Page compare tools #3356

Open
3 tasks
csaoud opened this issue Jun 6, 2024 · 0 comments
Open
3 tasks

Comments

@csaoud
Copy link

csaoud commented Jun 6, 2024

Required Information

  • AEM Version, including Service Packs, Cumulative Fix Packs, etc: 6.5.20
  • ACS AEM Commons Version: 6.6.0
  • Reproducible on Latest? yes

Expected Behavior

When using the compare page or version tool, query parameters should be sanitised and not allow XSS attacks

Actual Behavior

Compare page or version tool allows script tags to be entered inside of query parameters

Steps to Reproduce

An XSS vulnerability was identified in ACS commons tools by Christopher Whipp

This vulnerability can be exploited by an unauthenticated attacker to privilege escalate and remotely execute arbitrary
system commands. User interaction is required for the exploit to be successful.

The following two webpages were discovered to be vulnerable to Reflected Cross Site Scripting (XSS).

  1. https:///apps/acs-commons/content/version-compare.html

  2. https:///apps/acs-commons/content/page-compare.html

The link below shows a simple Proof of Concept (POC) which demonstrates the vulnerability by injecting a script element into the affected page that opens an alert box.

https:///apps/acs-commons/content/page-compare.html?path=/apps/ams/healthcheck/components/structure/regent&a=latest&b=%22%3E%3Cscript%3ealert(1)%3c/script%3E&pathB=/META-INF

Note: if the AEM user is not currently logged into AEM when clicking the link, then upon login the payload will run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant