phpGACL template multiple cross-site scripting vulnerabilities
Multiple cross-site scripting vulnerabilities exist in phpGACL's template functionality because user-supplied GET parameters are rendered without escaping. An attacker can craft a URL that executes arbitrary JavaScript in a victim's browser.
Originally disclosed on Cisco Talos
Multiple cross-site scripting vulnerabilities exist in the template functionality of phpGACL 3.3.7. A specially crafted HTTP request can lead to arbitrary JavaScript execution.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
The application passes user-controlled GET parameters to Smarty templates without escaping them before rendering.
Impact
An attacker could execute arbitrary JavaScript in a victim's browser, potentially leading to session hijacking or other client-side attacks.
What the attacker needed
Victim clicks a crafted link; target runs phpGACL or OpenEMR
The fix
The vendor patched the vulnerabilities, likely by escaping the parameters before rendering.
How it was found
- Send a request to acl_admin.php with a crafted action parameter.
- The action value is assigned to the template and rendered verbatim, executing script.
- Send a request to assign_group.php with a crafted group_id parameter.
- The group_id value is rendered in a hidden input and in a pager link, executing script.
- Send a request to acl_admin.php with a crafted acl_id parameter.
- The acl_id value is rendered in three places in the template, executing script.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
Cross-site scripting (XSS) is when a website takes input from a user and puts it into a page without cleaning it, so an attacker can make the page run their own JavaScript. Here, several URL parameters are placed directly into HTML templates, so a malicious link can run script in the victim's browser.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.