Lucene search

K
htbridgeHigh-Tech BridgeHTB23255
HistoryApr 15, 2015 - 12:00 a.m.

Arbitrary Variable Overwrite in eShop WordPress Plugin

2015-04-1500:00:00
High-Tech Bridge
www.htbridge.com
491

6.1 Medium

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

REQUIRED

Scope

CHANGED

Confidentiality Impact

LOW

Integrity Impact

LOW

Availability Impact

NONE

CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

4.3 Medium

CVSS2

Access Vector

NETWORK

Access Complexity

MEDIUM

Authentication

NONE

Confidentiality Impact

NONE

Integrity Impact

PARTIAL

Availability Impact

NONE

AV:N/AC:M/Au:N/C:N/I:P/A:N

0.001 Low

EPSS

Percentile

29.8%

High-Tech Bridge Security Research Lab discovered security vulnerability in eShop WordPress Plugin, which can be exploited by remote attacker to overwrite arbitrary PHP variables within the context of the vulnerable application.

The vulnerability exists due to insufficient validation of user-supplied input in “eshopcart” HTTP cookie. Successful exploitation of this vulnerability type may result in arbitrary PHP code execution (RCE), however in this case we can only overwrite string variables within the scope of ‘eshop_checkout()’ function in ‘/wp-content/plugins/eshop/checkout.php’ file. This reduces our current vectors of exploitation to Full Path Disclosure and Cross-Site Scripting.

Below is a simple PoC that overwrites contents of the “wpdb” PHP variable, which causes an error in code and discloses full installation path:

GET /shopping-cart-2/checkout/ HTTP/1.1
Cookie: eshopcart=wpdb%3d1%7C;

Another PoC triggers the XSS vector and executes JS pop-up box displaying “ImmuniWeb”:

GET /shopping-cart-2/checkout/ HTTP/1.1
Cookie: eshopcart=phone%3dsdfg’"><script>alert(/ImmuniWeb/)</script>

CPENameOperatorVersion
eshop wordpress pluginle6.3.11

6.1 Medium

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

REQUIRED

Scope

CHANGED

Confidentiality Impact

LOW

Integrity Impact

LOW

Availability Impact

NONE

CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

4.3 Medium

CVSS2

Access Vector

NETWORK

Access Complexity

MEDIUM

Authentication

NONE

Confidentiality Impact

NONE

Integrity Impact

PARTIAL

Availability Impact

NONE

AV:N/AC:M/Au:N/C:N/I:P/A:N

0.001 Low

EPSS

Percentile

29.8%