CVE-2015-6279 - Improper Input Validation

Severity

78%

Complexity

99%

Confidentiality

115%

The IPv6 snooping functionality in the first-hop security subsystem in Cisco IOS 12.2, 15.0, 15.1, 15.2, 15.3, 15.4, and 15.5 and IOS XE 3.2SE, 3.3SE, 3.3XO, 3.4SG, 3.5E, and 3.6E before 3.6.3E; 3.7E before 3.7.2E; 3.9S and 3.10S before 3.10.6S; 3.11S before 3.11.4S; 3.12S and 3.13S before 3.13.3S; and 3.14S before 3.14.2S allows remote attackers to cause a denial of service (device reload) via a malformed ND packet with the Cryptographically Generated Address (CGA) option, aka Bug ID CSCuo04400.

The IPv6 snooping functionality in the first-hop security subsystem in Cisco IOS 12.2, 15.0, 15.1, 15.2, 15.3, 15.4, and 15.5 and IOS XE 3.2SE, 3.3SE, 3.3XO, 3.4SG, 3.5E, and 3.6E before 3.6.3E; 3.7E before 3.7.2E; 3.9S and 3.10S before 3.10.6S; 3.11S before 3.11.4S; 3.12S and 3.13S before 3.13.3S; and 3.14S before 3.14.2S allows remote attackers to cause a denial of service (device reload) via a malformed ND packet with the Cryptographically Generated Address (CGA) option, aka Bug ID CSCuo04400.

CVSS 2.0 Base Score 7.8. CVSS Attack Vector: network. CVSS Attack Complexity: low. CVSS Vector: (AV:N/AC:L/Au:N/C:N/I:N/A:C).

Demo Examples

Improper Input Validation

CWE-20

This example demonstrates a shopping interaction in which the user is free to specify the quantity of items to be purchased and a total is calculated.


               
...

The user has no control over the price variable, however the code does not prevent a negative value from being specified for quantity. If an attacker were to provide a negative value, then the user would have their account credited instead of debited.

Improper Input Validation

CWE-20

This example asks the user for a height and width of an m X n game board with a maximum dimension of 100 squares.


               
.../* board dimensions */
die("No integer passed: Die evil hacker!\n");
die("No integer passed: Die evil hacker!\n");
die("Value too large: Die evil hacker!\n");

While this code checks to make sure the user cannot specify large, positive integers and consume too much memory, it does not check for negative values supplied by the user. As a result, an attacker can perform a resource consumption (CWE-400) attack against this program by specifying two, large negative values that will not overflow, resulting in a very large memory allocation (CWE-789) and possibly a system crash. Alternatively, an attacker can provide very large negative values which will cause an integer overflow (CWE-190) and unexpected behavior will follow depending on how the values are treated in the remainder of the program.

Improper Input Validation

CWE-20

The following example shows a PHP application in which the programmer attempts to display a user's birthday and homepage.


               
echo "Birthday: $birthday<br>Homepage: <a href=$homepage>click here</a>"

The programmer intended for $birthday to be in a date format and $homepage to be a valid URL. However, since the values are derived from an HTTP request, if an attacker can trick a victim into clicking a crafted URL with <script> tags providing the values for birthday and / or homepage, then the script will run on the client's browser when the web server echoes the content. Notice that even if the programmer were to defend the $birthday variable by restricting input to integers and dashes, it would still be possible for an attacker to provide a string of the form:


               
2009-01-09--

If this data were used in a SQL statement, it would treat the remainder of the statement as a comment. The comment could disable other security-related logic in the statement. In this case, encoding combined with input validation would be a more useful protection mechanism.

Furthermore, an XSS (CWE-79) attack or SQL injection (CWE-89) are just a few of the potential consequences when input validation is not used. Depending on the context of the code, CRLF Injection (CWE-93), Argument Injection (CWE-88), or Command Injection (CWE-77) may also be possible.

Improper Input Validation

CWE-20

This function attempts to extract a pair of numbers from a user-supplied string.


               
}
die("Did not specify integer value. Die evil hacker!\n");
/* proceed assuming n and m are initialized correctly */

This code attempts to extract two integer values out of a formatted, user-supplied input. However, if an attacker were to provide an input of the form:


               
123:

then only the m variable will be initialized. Subsequent use of n may result in the use of an uninitialized variable (CWE-457).

Improper Input Validation

CWE-20

The following example takes a user-supplied value to allocate an array of objects and then operates on the array.


               
}
list[0] = new Widget();
die("Negative value supplied for list size, die evil hacker!");

This example attempts to build a list from a user-specified value, and even checks to ensure a non-negative value is supplied. If, however, a 0 value is provided, the code will build an array of size 0 and then try to store a new Widget in the first location, causing an exception to be thrown.

Improper Input Validation

CWE-20

This application has registered to handle a URL when sent an intent:


               
}......
}
}
int length = URL.length();
...

The application assumes the URL will always be included in the intent. When the URL is not present, the call to getStringExtra() will return null, thus causing a null pointer exception when length() is called.

Overview

Type

Cisco IOS

First reported 9 years ago

2015-09-28 02:59:00

Last updated 8 years ago

2016-12-12 19:04:00

Affected Software

Cisco IOS 12.2(50)SY

12.2\(50\)sy

Cisco IOS 12.2(50)SY1

12.2\(50\)sy1

Cisco IOS 12.2(50)SY2

12.2\(50\)sy2

Cisco IOS 12.2(50)SY3

12.2\(50\)sy3

Cisco IOS 12.2(50)SY4

12.2\(50\)sy4

Cisco IOS 15.0(1)EX

15.0\(1\)ex

Cisco IOS 15.0(1)SY

15.0\(1\)sy

Cisco IOS 15.0(1)SY1

15.0\(1\)sy1

Cisco IOS 15.0(1)SY2

15.0\(1\)sy2

Cisco IOS 15.0(1)SY3

15.0\(1\)sy3

Cisco IOS 15.0(1)SY4

15.0\(1\)sy4

Cisco IOS 15.0(1)SY5

15.0\(1\)sy5

Cisco IOS 15.0(1)SY6

15.0\(1\)sy6

Cisco IOS 15.0(1)SY7

15.0\(1\)sy7

Cisco IOS 15.0(1)SY7A

15.0\(1\)sy7a

Cisco IOS 15.0(1)SY8

15.0\(1\)sy8

Cisco IOS 15.0(2)EJ

15.0\(2\)ej

Cisco IOS 15.0(2)EJ1

15.0\(2\)ej1

Cisco IOS 15.0(2)EZ

15.0\(2\)ez

Cisco IOS 15.0(2)SE

15.0\(2\)se

Cisco IOS 15.0(2)SE1

15.0\(2\)se1

Cisco IOS 15.0(2)SE2

15.0\(2\)se2

Cisco IOS 15.0(2)SE3

15.0\(2\)se3

Cisco IOS 15.0(2)SE4

15.0\(2\)se4

Cisco IOS 15.0(2)SE5

15.0\(2\)se5

Cisco IOS 15.0(2)SE6

15.0\(2\)se6

Cisco IOS 15.0(2)SE7

15.0\(2\)se7

Cisco IOS 15.0(2a)EX5

15.0\(2a\)ex5

Cisco IOS 15.1(1)SY

15.1\(1\)sy

Cisco IOS 15.1(1)SY1

15.1\(1\)sy1

Cisco IOS 15.1(1)SY2

15.1\(1\)sy2

Cisco IOS 15.1(1)SY3

15.1\(1\)sy3

Cisco IOS 15.1(1)SY4

15.1\(1\)sy4

Cisco IOS 15.1(1)SY5

15.1\(1\)sy5

Cisco IOS 15.1(2)SG

15.1\(2\)sg

Cisco IOS 15.1(2)SG1

15.1\(2\)sg1

Cisco IOS 15.1(2)SG2

15.1\(2\)sg2

Cisco IOS 15.1(2)SG3

15.1\(2\)sg3

Cisco IOS 15.1(2)SG4

15.1\(2\)sg4

Cisco IOS 15.1(2)SG5

15.1\(2\)sg5

Cisco IOS 15.1(2)SY

15.1\(2\)sy

Cisco IOS 15.1(2)SY1

15.1\(2\)sy1

Cisco IOS 15.1(2)SY2

15.1\(2\)sy2

Cisco IOS 151.1(2)SY3

15.1\(2\)sy3

Cisco IOS 15.1(2)SY4

15.1\(2\)sy4

Cisco IOS 15.1(2)SY4A

15.1\(2\)sy4a

Cisco IOS 15.2(1)E

15.2\(1\)e

Cisco IOS 15.2(1)E1

15.2\(1\)e1

Cisco IOS 15.2(1)E2

15.2\(1\)e2

Cisco IOS 15.2(1)E3

15.2\(1\)e3

Cisco IOS 15.2(1)SY

15.2\(1\)sy

Cisco IOS 15.2(1)SY0A

15.2\(1\)sy0a

Cisco IOS 15.2(2)E

15.2\(2\)e

Cisco IOS 15.2(2)E1

15.2\(2\)e1

Cisco IOS 15.2(2)E2

15.2\(2\)e2

Cisco IOS 15.2(2a)E1

15.2\(2a\)e1

Cisco IOS 15.2(3)E

15.2\(3\)e

Cisco IOS 15.2(3a)E

15.2\(3a\)e

Cisco IOS 15.2(4)S

15.2\(4\)s

Cisco IOS 15.2(4)S1

15.2\(4\)s1

Cisco IOS 15.2(4)S2

15.2\(4\)s2

Cisco IOS 15.2(4)S3

15.2\(4\)s3

Cisco IOS 15.2(4)S3A

15.2\(4\)s3a

Cisco IOS 15.2(4)S4

15.2\(4\)s4

Cisco IOS 15.2(4)S4A

15.2\(4\)s4a

Cisco IOS 15.2(4)S5

15.2\(4\)s5

Cisco IOS 15.2(4)S6

15.2\(4\)s6

Cisco IOS 15.2(4)S7

15.2\(4\)s7

Cisco IOS 15.3(1)S

15.3\(1\)s

Cisco IOS 15.3(1)S2

15.3\(1\)s2

Cisco IOS 15.3(2)s

15.3\(2\)s

Cisco IOS 15.3(2)S0A

15.3\(2\)s0a

Cisco IOS 15.3(2)S1

15.3\(2\)s1

Cisco IOS 15.3(2)S2

15.3\(2\)s2

Cisco IOS 15.3(3)s

15.3\(3\)s

Cisco IOS 15.3(3)S1

15.3\(3\)s1

Cisco IOS 15.3(3)S2

15.3\(3\)s2

Cisco IOS 15.3(3)S3

15.3\(3\)s3

Cisco IOS 15.3(3)S4

15.3\(3\)s4

Cisco IOS 15.4(1)S

15.4\(1\)s

Cisco IOS 15.4(1)S1

15.4\(1\)s1

Cisco IOS 15.4(1)S2

15.4\(1\)s2

Cisco IOS 15.4(1)S3

15.4\(1\)s3

Cisco IOS 15.4(2)S

15.4\(2\)s

Cisco IOS 15.4(2)S1

15.4\(2\)s1

Cisco IOS 15.4(2)S2

15.4\(2\)s2

Cisco IOS 15.4(2)S3

15.4\(2\)s3

Cisco IOS 15.4(3)S

15.4\(3\)s

Cisco IOS 15.4(3)S1

15.4\(3\)s1

Cisco IOS 15.4(3)S2

15.4\(3\)s2

Cisco IOS XE 3.2SE.0

3.2se.0

Cisco IOS XE 3.2SE.1

3.2se.1

Cisco IOS XE 3.2SE.2

3.2se.2

Cisco IOS XE 3.2SE.3

3.2se.3

Cisco IOS XE Software 3.3XO.0

3.3xo.0

Cisco IOS XE Software 3.3XO.1

3.3xo.1

Cisco IOS XE Software 3.3XO.2

3.3xo.2

Cisco IOS XE Software 3.4SG.0

3.4sg.0

Cisco IOS XE Software 3.4SG.1

3.4sg.1

Cisco IOS XE Software 3.4SG.2

3.4sg.2

Cisco IOS XE Software 3.4SG.3

3.4sg.3

Cisco IOS XE Software 3.4SG.4

3.4sg.4

Cisco IOS XE Software 3.4SG.5

3.4sg.5

Cisco IOS XE Software 3.5E.0

3.5e.0

Cisco IOS XE Software 3.5E.1

3.5e.1

Cisco IOS XE Software 3.5E.2

3.5e.2

Cisco IOS XE Software 3.5E.3

3.5e.3

Cisco IOS XE Software 3.6E.0

3.6e.0

Cisco IOS XE Software 3.6E.1

3.6e.1

Cisco IOS XE Software 3.7E.0

3.7e.0

Cisco IOS XE 3.10S.0

3.10s.0

Cisco IOS XE Software 3.10S.0A

3.10s.0a

Cisco IOS XE 3.10S.01

3.10s.01

Cisco IOS XE 3.10S.1

3.10s.1

Cisco IOS XE 3.10S.2

3.10s.2

Cisco IOS XE 3.10S.3

3.10s.3

Cisco IOS XE 3.10S.4

3.10s.4

Cisco IOS XE 3.11S.0

3.11s.0

Cisco IOS XE 3.11S.1

3.11s.1

Cisco IOS XE 3.11S.2

3.11s.2

Cisco IOS XE 3.11S.3

3.11s.3

Cisco IOS XE 3.12S.0

3.12s.0

Cisco IOS XE 3.12S.1

3.12s.1

Cisco IOS XE 3.12S.2

3.12s.2

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.