Lucene search

K
htbridgeHigh-Tech BridgeHTB23147
HistoryMar 06, 2013 - 12:00 a.m.

Path Traversal in AWS XMS

2013-03-0600:00:00
High-Tech Bridge
www.htbridge.com
20

7.5 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

NONE

Availability Impact

NONE

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

5 Medium

CVSS2

Access Vector

NETWORK

Access Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

NONE

Availability Impact

NONE

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

0.181 Low

EPSS

Percentile

95.7%

High-Tech Bridge Security Research Lab discovered path traversal vulnerability in AWS XMS, which can be exploited to read contents of arbitrary files.

  1. Path Traversal in AWS XMS: CVE-2013-2474
    The vulnerability exists due to insufficient filtration of “what” HTTP GET parameter passed to “/importer.php” script before using it in PHP “file()” function. A remote attacker can read contents of arbitrary files on the target system.
    The vulnerable script sets “text/javascript” Content-Type for the output data, which makes exploitation of the vulnerability via a web browser inconvenient. Exploitation via telnet or wget utilities is easier.
    The following PoC (Proof of Concept) code uses wget utility to download source code of “/default.php” file, which contains application configuration data and administrator’s credentials:
    wget http://[host]/importer.php?what=defaults.php%00.js
    To bypass protections against NULL-byte injection (implemented in PHP 5.3.4 and later versions) or enabled “magic_quotes_gpc”, alternative techniques based on path normalization and length restrictions can be used.
    The second PoC code uses a large amount of ‘/’ symbols (4096 is sufficient for the majority of platforms) to bypass the restrictions and get source code of the “/default.php” file:
    wget http://[host]/importer.php?what=defaults.php///////…//////.js
CPENameOperatorVersion
aws xmsle2.5

7.5 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

NONE

Availability Impact

NONE

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

5 Medium

CVSS2

Access Vector

NETWORK

Access Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

NONE

Availability Impact

NONE

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

0.181 Low

EPSS

Percentile

95.7%