CVE-2013-2950 - Improper Control of Generation of Code ('Code Injection')

Severity

35%

Complexity

68%

Confidentiality

48%

CRLF injection vulnerability in IBM WebSphere Portal 6.1.0.x before 6.1.0.3 CF26, 6.1.5.x before 6.1.5 CF26, 7.0.0.x before 7.0.0.2 CF21, and 8.0.0.x through 8.0.0.1 CF5, when home substitution (aka uri.home.substitution) is enabled, allows remote authenticated users to inject arbitrary HTTP headers and conduct HTTP response splitting attacks via unspecified vectors.

CRLF injection vulnerability in IBM WebSphere Portal 6.1.0.x before 6.1.0.3 CF26, 6.1.5.x before 6.1.5 CF26, 7.0.0.x before 7.0.0.2 CF21, and 8.0.0.x through 8.0.0.1 CF5, when home substitution (aka uri.home.substitution) is enabled, allows remote authenticated users to inject arbitrary HTTP headers and conduct HTTP response splitting attacks via unspecified vectors.

CVSS 2.0 Base Score 3.5. CVSS Attack Vector: network. CVSS Attack Complexity: medium. CVSS Vector: (AV:N/AC:M/Au:S/C:N/I:P/A:N).

Demo Examples

Improper Control of Generation of Code ('Code Injection')

CWE-94

This example attempts to write user messages to a message file and allow users to view them.


               
}
echo "Message Saved!<p>\n";
include($MessageFile);

While the programmer intends for the MessageFile to only include data, an attacker can provide a message such as:


               
message=%3C?php%20system(%22/bin/ls%20-l%22);?%3E

which will decode to the following:


               
<?php system("/bin/ls -l");?>

The programmer thought they were just including the contents of a regular data file, but PHP parsed it and executed the code. Now, this code is executed any time people view messages.

Notice that XSS (CWE-79) is also possible in this situation.

Improper Control of Generation of Code ('Code Injection')

CWE-94

edit-config.pl: This CGI script is used to modify settings in a configuration file.


               
}
# code to add a field/key to a file goes here
# code to set key to a particular file goes here
# code to delete key from a particular file goes here
eval($code);# this is super-efficient code, especially if you have to invoke# any one of dozens of different functions!
handleConfigAction($configfile, param('action'));
print "No action specified!\n";

The script intends to take the 'action' parameter and invoke one of a variety of functions based on the value of that parameter - config_file_add_key(), config_file_set_key(), or config_file_delete_key(). It could set up a conditional to invoke each function separately, but eval() is a powerful way of doing the same thing in fewer lines of code, especially when a large number of functions or variables are involved. Unfortunately, in this case, the attacker can provide other values in the action parameter, such as: add_key(",","); system("/bin/ls"); This would produce the following string in handleConfigAction(): config_file_add_key(",","); system("/bin/ls"); Any arbitrary Perl code could be added after the attacker has "closed off" the construction of the original function call, in order to prevent parsing errors from causing the malicious eval() to fail before the attacker's payload is activated. This particular manipulation would fail after the system() call, because the "_key(\$fname, \$key, \$val)" portion of the string would cause an error, but this is irrelevant to the attack because the payload has already been activated.

Overview

Type

IBM

First reported 11 years ago

2013-06-03 21:55:00

Last updated 7 years ago

2017-08-29 01:33:00

Affected Software

IBM Websphere Portal 8.0

8.0

IBM Websphere Portal 8.0.0.0

8.0.0.0

IBM Websphere Portal 8.0.0.0 Cumulative Fix 01

8.0.0.0

IBM Websphere Portal 8.0.0.0 Cumulative Fix 02

8.0.0.0

IBM Websphere Portal 8.0.0.0 Cumulative Fix 03

8.0.0.0

IBM Websphere Portal 8.0.0.0 Cumulative Fix 04

8.0.0.0

IBM Websphere Portal 8.0.0.0 Cumulative Fix 05

8.0.0.0

IBM Websphere Portal 8.0.0.1

8.0.0.1

IBM Websphere Portal 8.0.0.1 Cumulative Fix 04

8.0.0.1

IBM WebSphere Portal 8.0.0.1 Cumulative Fix 05

8.0.0.1

IBM Websphere Portal 7.0.0.0

7.0.0.0

IBM Websphere Portal 7.0.0.0 Cumulative Fix 1

7.0.0.0

IBM Websphere Portal 7.0.0.1

7.0.0.1

IBM Websphere Portal 7.0.0.1 Cumulative Fix 002 (PM34759)

7.0.0.1

IBM Websphere Portal 7.0.0.1 Cumulative Fix 003 (PM35462)

7.0.0.1

IBM Websphere Portal 7.0.0.1 Cumulative Fix 004 (PM37009)

7.0.0.1

IBM Websphere Portal 7.0.0.1 Cumulative Fix 5

7.0.0.1

IBM Websphere Portal 7.0.0.1 Cumulative Fix 6

7.0.0.1

IBM Websphere Portal 7.0.0.1 Cumulative Fix 7

7.0.0.1

IBM Websphere Portal 7.0.0.1 Cumulative Fix 8

7.0.0.1

IBM Websphere Portal 7.0.0.1 Cumulative Fix 9

7.0.0.1

IBM Websphere Portal 7.0.0.1 Cumulative Fix 10

7.0.0.1

IBM Websphere Portal 7.0.0.1 Cumulative Fix 019 (PM76354)

7.0.0.1

IBM Websphere Portal 7.0.0.2

7.0.0.2

IBM Websphere Portal 7.0.0.2 Cumulative Fix 11

7.0.0.2

IBM WebSphere Portal 7.0.0.2 Cumulative Fix 12

7.0.0.2

IBM WebSphere Portal 7.0.0.2 CF013

7.0.0.2

IBM WebSphere Portal 7.0.0.2 Cumulative Fix 14

7.0.0.2

IBM WebSphere Portal 7.0.0.2 CF015

7.0.0.2

IBM WebSphere Portal 7.0.0.2 Cumulative Fix 16

7.0.0.2

IBM WebSphere Portal 7.0.0.2 Cumulative Fix 17

7.0.0.2

IBM Websphere Portal 7.0.0.2 Cumulative Fix 18

7.0.0.2

IBM WebSphere Portal 7.0.0.2 Cumulative Fix 19

7.0.0.2

IBM Websphere Portal 7.0.0.2 Cumulative Fix 20

7.0.0.2

IBM Websphere Portal 6.1.0.0

6.1.0.0

IBM Websphere Portal 6.1.0.1

6.1.0.1

IBM Websphere Portal 6.1.0.2

6.1.0.2

IBM Websphere Portal 6.1.0.3

6.1.0.3

IBM Websphere Portal 6.1.5.0

6.1.5.0

Stay updated

ExploitPedia is constantly evolving. Sign up to receive a notification when we release additional functionality.

Get in touch

If you'd like to report a bug or have any suggestions for improvements then please do get in touch with us using this form. We will get back to you as soon as we can.