HexBrain

Browse / CVEs / CVE-2022-26159

CVE-2022-26159· ametys / ametys· CWE-425

Ametys CMS Information Disclosure

mediumseverity
5.3CVSS score
13.4%likelihood of exploitation, next 30 days
96%of all CVEs are less likely
Readycheck to confirm it

Ametys CMS before 4.5.0 allows a remote unauthenticated attacker to read documents such as plugins/web/service/search/auto-completion/domain/en.xml (and similar pathnames for other languages) via the auto-completion plugin, which contain all characters typed by all users, including the content of private pages. For example, a private page may contain usernames, e-mail addresses, and possibly passwords.

Impact

The vulnerability can lead to the exposure of sensitive data, such as user credentials or system configuration.

Fix

Apply the latest security patches or updates provided by the vendor to fix the information disclosure vulnerability in Ametys CMS.

How to confirm it

Send: GET {{BaseURL}}/plugins/web/service/search/auto-completion/domain/en.xml?q=adm
Positive when: contains "<auto-completion>" and "<item>" AND contains in header "text/xml" AND status 200

Run it with nuclei: nuclei -id CVE-2022-26159 -u <target>. This check is not marked as verified by its authors.

The full check
id: CVE-2022-26159

info:
  name: Ametys CMS Information Disclosure
  author: Remi Gascou (podalirius)
  severity: medium
  description: Ametys CMS before 4.5.0 allows a remote unauthenticated attacker to read documents such as plugins/web/service/search/auto-completion/domain/en.xml (and similar pathnames for other languages) via the auto-completion plugin, which contain all characters typed by all users, including the content of private pages. For example, a private page may contain usernames, e-mail addresses, and possibly passwords.
  impact: |
    The vulnerability can lead to the exposure of sensitive data, such as user credentials or system configuration.
  remediation: |
    Apply the latest security patches or updates provided by the vendor to fix the information disclosure vulnerability in Ametys CMS.
  reference:
    - https://nvd.nist.gov/vuln/detail/CVE-2022-26159
    - https://podalirius.net/en/cves/2022-26159/
    - https://issues.ametys.org/browse/CMS-10973
    - https://github.com/p0dalirius/CVE-2022-26159-Ametys-Autocompletion-XML/
    - https://github.com/ARPSyndicate/cvemon
  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-2022-26159
    cwe-id: CWE-425
    epss-score: 0.13372
    epss-percentile: 0.96449
    cpe: cpe:2.3:a:ametys:ametys:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: ametys
    product: ametys
  tags: cve,cve2022,plugin,ametys,cms,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/plugins/web/service/search/auto-completion/domain/en.xml?q=adm'

    matchers-condition: and
    matchers:
      - type: word
        words:
          - '<auto-completion>'
          - '<item>'
        condition: and

      - type: word
        part: header
        words:
          - 'text/xml'

      - type: status
        status:
          - 200

References

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