CVE-2016-1261 - Cross-Site Request Forgery (CSRF)

Severity

68%

Complexity

86%

Confidentiality

106%

J-Web does not validate certain input that may lead to cross-site request forgery (CSRF) issues or cause a denial of J-Web service (DoS).

J-Web does not validate certain input that may lead to cross-site request forgery (CSRF) issues or cause a denial of J-Web service (DoS).

CVSS 3.0 Base Score 8.8. CVSS Attack Vector: network. CVSS Attack Complexity: low. CVSS Vector: (CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H).

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

Demo Examples

Cross-Site Request Forgery (CSRF)

CWE-352

This example PHP code attempts to secure the form submission process by validating that the user submitting the form has a valid session. A CSRF attack would not be prevented by this countermeasure because the attacker forges a request through the user's web browser in which a valid session already exists.

The following HTML is intended to allow a user to update a profile.


               
</form>

profile.php contains the following code.


               
}//if the session is registered to a valid user then allow update
exit;// Redirect user to login page
// The user session is valid, so process the request// and update the information
echo "Your profile has been successfully updated.";// read in the data from $POST and send an update// to the database

This code may look protected since it checks for a valid session. However, CSRF attacks can be staged from virtually any tag or HTML construct, including image tags, links, embed or object tags, or other attributes that load background images.

The attacker can then host code that will silently change the username and email address of any user that visits the page while remaining logged in to the target web application. The code might be an innocent-looking web page such as:


               
</form>
form.submit();// send to profile.php

Notice how the form contains hidden fields, so when it is loaded into the browser, the user will not notice it. Because SendAttack() is defined in the body's onload attribute, it will be automatically called when the victim loads the web page.

Assuming that the user is already logged in to victim.example.com, profile.php will see that a valid user session has been established, then update the email address to the attacker's own address. At this stage, the user's identity has been compromised, and messages sent through this profile could be sent to the attacker's address.

Overview

Type

Juniper

First reported 7 years ago

2017-10-13 17:29:00

Last updated 5 years ago

2019-10-09 23:17:00

Affected Software

Juniper JUNOS 12.1X44

12.1x44

Juniper Junos 12.1x44 D10

12.1x44

Juniper Junos 12.1x44 D15

12.1x44

Juniper Junos 12.1x44 D20

12.1x44

Juniper Junos 12.1x44 D25

12.1x44

Juniper Junos 12.1x44 D30

12.1x44

Juniper JUNOS 12.1X44-D35

12.1x44

Juniper Junos 12.1x44 D40

12.1x44

Juniper JunOS 12.1x44 D45

12.1x44

Juniper JunOS 12.1x44 D50

12.1x44

Juniper JUNOS 12.1X46

12.1x46

Juniper Junos 12.1x46 D10

12.1x46

Juniper Junos 12.1x46 D15

12.1x46

Juniper JUNOS 12.1X46-D20

12.1x46

Juniper Junos 12.1x46 D25

12.1x46

Juniper JunOS 12.1x46 D30

12.1x46

Juniper JunOS 12.1x46 D35

12.1x46

Juniper JunOS 12.1x46 D40

12.1x46

Juniper JUNOS 12.1X47

12.1x47

Juniper JUNOS 12.1X47-D10

12.1x47

Juniper JunOS 12.1x47 D15

12.1x47

Juniper JunOS 12.1x47 D20

12.1x47

Juniper JunOS 12.1x47 D25

12.1x47

Juniper JUNOS 12.3

12.3

Juniper Junos 12.3 R1

12.3

Juniper Junos 12.3 R2

12.3

Juniper Junos 12.3 R3

12.3

Juniper Junos 12.3 R4

12.3

Juniper Junos 12.3 R5

12.3

Juniper Junos 12.3 R6

12.3

Juniper JUNOS 12.3R7

12.3

Juniper Junos 12.3 R8

12.3

Juniper JunOS 12.3 R9

12.3

Juniper JunOS 12.3x48 D10

12.3x48

Juniper JunOS 12.3x48 D15

12.3x48

Juniper Junos 12.3X48 D25

12.3x48

Juniper Junos 13.2X51

13.2x51

Juniper JunOS 13.2x51 D15

13.2x51

Juniper Junos 13.2X51 D20

13.2x51

Juniper JunOS 13.2x51 D21

13.2x51

Juniper Junos 13.2X51 D25

13.2x51

Juniper JunOS 13.2x51 D26

13.2x51

Juniper JunOS 13.2x51 D30

13.2x51

Juniper Junos 13.2X51 D35

13.2x51

Juniper JUNOS 13.3

13.3

Juniper Junos 13.3 R1

13.3

Juniper Junos 13.3 R2

13.3

Juniper JUNOS 13.3R2-S2

13.3

Juniper Junos 13.3 R3

13.3

Juniper Junos 13.3 R4

13.3

Juniper Junos 13.3 R5

13.3

Juniper JUNOS 13.3 R6

13.3

Juniper Junos 13.3 R7

13.3

Juniper JUNOS 14.1

14.1

Juniper JUNOS 14.1R1

14.1

Juniper Junos 14.1 R2

14.1

Juniper Junos 14.1 R3

14.1

Juniper JunOS 14.1 R4

14.1

Juniper Junos 14.1 R5

14.1

Juniper JUNOS 14.1X53

14.1x53

Juniper JunOS 14.1x53 D10

14.1x53

Juniper JunOS 14.1x53 D15

14.1x53

Juniper JunOS 14.1x53 D16

14.1x53

Juniper JunOS 14.1x53 D25

14.1x53

Juniper JunOS 14.1x53 D26

14.1x53

Juniper Junos 14.1X53 D27

14.1x53

Juniper Junos 14.2

14.2

Juniper Junos 14.2 R1

14.2

Juniper Junos 14.2 R2

14.2

Juniper Junos 14.2 R3

14.2

Juniper Junos 14.2 R4

14.2

Juniper Junos 15.1 R1

15.1

Juniper JunOS 15.1 R2

15.1

Juniper JunOS 15.1x49 D10

15.1x49

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.