Acronis · Report #1164853
Stored Cross Site Scripting at http://www.grouplogic.com/ADMIN/store/index.cfm?fa=disprocode
How it was found
Summary
The application exposes store ADMIN page at below URL and is accessible without authentication.
http://www.grouplogic.com/ADMIN/store/index.cfm
The ADMIN page provides several functionalities. Among them the below functionality is found to be vulnerable to stored XSS.
- View and Edit Promo Code (http://www.grouplogic.com/ADMIN/store/index.cfm?fa=disprocode)
Steps To Reproduce
- Navigate to below URL to access the store admin page without authentication.
http://www.grouplogic.com/ADMIN/store/index.cfm
- Navigate to promo codes section. (http://www.grouplogic.com/ADMIN/store/index.cfm?fa=disprocode)
- Edit any promo code.
- Add any of below payload in the Promo Code field.
Payload 1:
----------
<h1 onmouseover=alert(document.domain)>XSS</h1>
Payload 2:
----------
<img src=x onerror=alert(1)>
- Click the Edit Promo Code Button to save modified the promo code.
- Navigating again to the promo code page, in case of payload 1, XSS string is rendered, hovering mouse over it triggers xss. In case of payload 2, as soon as the promo code page is opened, xss triggers.
Recommendations
It is highly recommended to implement output encoding.
Encode the following characters with HTML entity encoding to prevent switching into any execution context, such as script, style, or event handlers. Using hex entities is recommended in the spec. The 5 characters significant in XML (&, <, >, ", '):
& --> &
< --> <
> --> >
" --> "
' --> '
Reference: https://cheatsheetseries.owasp.org/cheatsheets/Cross_Site_Scripting_Prevention_Cheat_Sheet.html
Impact
XSS can be used to :
- Steal cookies, password
- Website Defacement
- Redirect Victim to Malicious site
- Log keystrokes etc.