usd-2019-0049 | Codiad Web IDE
Advisory ID: usd-2019-0049
CVE Number: CVE-2019-19208
Affected Product: Codiad Web IDE
Affected Version: v.2.8.4
Vulnerability Type: PHP Code injection
Security Risk: Critical – Remote Code Execution (RCE)
Vendor URL: http://codiad.com/
Vendor Status: Not fixed
An unauthenticated attacker can inject PHP code that gets executed and therefore he can run arbitrary system commands on the server.
Proof of Concept (PoC)
Install Codiad following the instructions in the Github repository.
Beforethe initial configuration, intercept the POST Request or send the following payload:
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0
Accept-Encoding: gzip, deflate
Now you can inject system commands via the GET parameter „cmd“ like this:
Please note that this is also possible after the initial configuration by specifying a project path that does exists but was not used before.
Properly filter input that is written to PHP file.
- 2019-07-16 Tobias Neitzel discovered the bug
- 2019-08-05 First contact attempt via GitHub issue
- 2019-10-30 Second contact attempt via https://fluidbyte.github.io/
- 2020-02-05 Security advisory released
This security vulnerability was found by Tobias Neitzel of usd AG.