PHP file inclusion in phpmyadmin (Alpine package)



Published: 2018-07-16
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
Subscribe
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

CVSSv3.1: 7.5 [CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:F/RL:O/RC:C]

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

External links

http://git.alpinelinux.org/aports/commit/?id=28ad740944ec93975aaaaf3b70bc1b573cc50d11
http://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###