PHP file inclusion in phpmyadmin (Alpine package)



Risk High
Patch available YES
Number of vulnerabilities 1
CVE-ID CVE-2018-12613
CWE-ID CWE-98
Exploitation vector Network
Public exploit Public exploit code for vulnerability #1 is available.
Vulnerable software
phpmyadmin (Alpine package)
Operating systems & Components / Operating system package or component

Vendor Alpine Linux Development Team

Security Bulletin

This security bulletin contains one high risk vulnerability.

1) PHP file inclusion

EUVDB-ID: #VU13418

Risk: High

CVSSv4.0: 9.2 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:A/U:Amber]

CVE-ID: CVE-2018-12613

CWE-ID: CWE-98 - Improper Control of Filename for Include/Require Statement in PHP Program

Exploit availability: Yes

Description

The vulnerability allows a remote attacker to compromise vulnerable system.

The vulnerability exists due to insecure handling of file path before including a php files. A remote authenticated attacker can include and execute arbitrary PHP file from a remote location. This vulnerability can be also exploited by a remote non-authenticated attacker if phpMyAdmin is configured with one of the following options:

  • $cfg['AllowArbitraryServer'] = true
  • $cfg['ServerDefault'] = 0

Successful exploitation of the vulnerability may allow an attacker to compromise vulnerable system.


Mitigation

Install update from vendor's website.

Vulnerable software versions

phpmyadmin (Alpine package): 4.8.0-r0 - 4.8.1-r0

CPE2.3 External links

https://git.alpinelinux.org/aports/commit/?id=28ad740944ec93975aaaaf3b70bc1b573cc50d11
https://git.alpinelinux.org/aports/commit/?id=7b247d9a30036bc793da142933227d7148840609


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability. However, a fully functional exploit for this vulnerability is available.



###SIDEBAR###