Wednesday, February 15, 2012

Search form

My Way
HomeCross-site request forgery

Error message

  • Notice: Undefined offset: 1 in quasar_preprocess() (line 106 of /home/sfetcu/public_html/sfetcu.com/sites/all/themes/rt_quasar_d7/template.php).
  • Notice: Undefined offset: 1 in quasar_preprocess() (line 106 of /home/sfetcu/public_html/sfetcu.com/sites/all/themes/rt_quasar_d7/template.php).
  • Notice: Undefined offset: 1 in quasar_preprocess() (line 106 of /home/sfetcu/public_html/sfetcu.com/sites/all/themes/rt_quasar_d7/template.php).
  • Notice: Undefined offset: 1 in quasar_preprocess() (line 106 of /home/sfetcu/public_html/sfetcu.com/sites/all/themes/rt_quasar_d7/template.php).
  • Notice: Undefined offset: 1 in quasar_preprocess() (line 106 of /home/sfetcu/public_html/sfetcu.com/sites/all/themes/rt_quasar_d7/template.php).
  • Notice: Undefined offset: 1 in sub_menu_item_link() (line 821 of /home/sfetcu/public_html/sfetcu.com/sites/all/themes/rt_quasar_d7/template.php).
  • Notice: Undefined offset: 1 in quasar_preprocess() (line 106 of /home/sfetcu/public_html/sfetcu.com/sites/all/themes/rt_quasar_d7/template.php).
  • Notice: Undefined offset: 1 in quasar_preprocess() (line 106 of /home/sfetcu/public_html/sfetcu.com/sites/all/themes/rt_quasar_d7/template.php).
  • Notice: Undefined offset: 1 in quasar_preprocess() (line 106 of /home/sfetcu/public_html/sfetcu.com/sites/all/themes/rt_quasar_d7/template.php).
  • Notice: Undefined offset: 1 in quasar_preprocess() (line 106 of /home/sfetcu/public_html/sfetcu.com/sites/all/themes/rt_quasar_d7/template.php).
  • Notice: Undefined offset: 1 in quasar_preprocess() (line 106 of /home/sfetcu/public_html/sfetcu.com/sites/all/themes/rt_quasar_d7/template.php).
  • Notice: Undefined offset: 1 in quasar_preprocess() (line 106 of /home/sfetcu/public_html/sfetcu.com/sites/all/themes/rt_quasar_d7/template.php).
  • Notice: Undefined offset: 1 in quasar_preprocess() (line 106 of /home/sfetcu/public_html/sfetcu.com/sites/all/themes/rt_quasar_d7/template.php).
  • Notice: Undefined offset: 1 in quasar_preprocess() (line 106 of /home/sfetcu/public_html/sfetcu.com/sites/all/themes/rt_quasar_d7/template.php).
  • Notice: Undefined offset: 1 in quasar_preprocess() (line 106 of /home/sfetcu/public_html/sfetcu.com/sites/all/themes/rt_quasar_d7/template.php).
  • Notice: Undefined offset: 1 in quasar_preprocess() (line 106 of /home/sfetcu/public_html/sfetcu.com/sites/all/themes/rt_quasar_d7/template.php).
  • Notice: Undefined offset: 1 in quasar_preprocess() (line 106 of /home/sfetcu/public_html/sfetcu.com/sites/all/themes/rt_quasar_d7/template.php).
  • Notice: Undefined offset: 1 in quasar_preprocess() (line 106 of /home/sfetcu/public_html/sfetcu.com/sites/all/themes/rt_quasar_d7/template.php).
  • Notice: Undefined offset: 1 in quasar_preprocess() (line 106 of /home/sfetcu/public_html/sfetcu.com/sites/all/themes/rt_quasar_d7/template.php).
  • Notice: Undefined offset: 1 in quasar_preprocess() (line 106 of /home/sfetcu/public_html/sfetcu.com/sites/all/themes/rt_quasar_d7/template.php).
  • Notice: Undefined offset: 1 in quasar_preprocess() (line 106 of /home/sfetcu/public_html/sfetcu.com/sites/all/themes/rt_quasar_d7/template.php).
  • Notice: Undefined offset: 1 in quasar_preprocess() (line 106 of /home/sfetcu/public_html/sfetcu.com/sites/all/themes/rt_quasar_d7/template.php).
  • Notice: Undefined offset: 1 in quasar_preprocess() (line 106 of /home/sfetcu/public_html/sfetcu.com/sites/all/themes/rt_quasar_d7/template.php).
  • Notice: Undefined offset: 1 in quasar_preprocess() (line 106 of /home/sfetcu/public_html/sfetcu.com/sites/all/themes/rt_quasar_d7/template.php).
  • Notice: Undefined offset: 1 in quasar_preprocess() (line 106 of /home/sfetcu/public_html/sfetcu.com/sites/all/themes/rt_quasar_d7/template.php).
  • Notice: Undefined offset: 1 in quasar_preprocess() (line 106 of /home/sfetcu/public_html/sfetcu.com/sites/all/themes/rt_quasar_d7/template.php).
  • Notice: Undefined offset: 1 in quasar_preprocess() (line 106 of /home/sfetcu/public_html/sfetcu.com/sites/all/themes/rt_quasar_d7/template.php).
  • Notice: Undefined offset: 1 in quasar_preprocess() (line 106 of /home/sfetcu/public_html/sfetcu.com/sites/all/themes/rt_quasar_d7/template.php).

Cross-site request forgery

English

Cross-site request forgery, also known as one click attack or session riding and abbreviated as CSRF (Sea-Surf) or XSRF, is a kind of malicious exploit of websites. Although this type of attack has similarities to cross-site scripting (XSS), cross-site scripting requires the attacker to inject unauthorized code into a website, while cross-site request forgery merely transmits unauthorized commands from a user the website trusts.

Example and characteristics

The attack works by including a link or script in a page that accesses a site to which the user is known to have authenticated. For example, one user, Bob, might be browsing a chat forum where another user, Alice, has posted a message with an image that links to Bob's bank. Suppose that, as the URL for the image tag, Alice has crafted a URL that submits a withdrawal form on Bob's bank's website. If Bob's bank keeps his authentication information in a cookie, and if the cookie hasn't expired, then Bob's browser's attempt to load the image will submit the withdrawal form with his cookie, thus authorizing a transaction without Bob's approval.

A cross-site request forgery is a confused deputy attack against a Web browser. The deputy in the bank example is Bob's Web browser which is confused into misusing Bob's authority at Alice's direction.

The following characteristics are common to CSRF:

  • Involve sites that rely on a user's identity
  • Exploit the site's trust in that identity
  • Trick the user's browser into sending HTTP requests to a target site
  • Involve HTTP requests that have side effects

At risk are web applications that perform actions based on input from trusted and authenticated users without requiring the user to authorize the specific action. A user that is authenticated by a cookie saved in his web browser could unknowingly send an HTTP request to a site that trusts him and thereby cause an unwanted action.

CSRF attacks using images are often made from Internet forums, where users are allowed to post images but not JavaScript.

Here is an example of an attack on Digg. Here is another example of an attack on Amazon.com, and one on Google's Adsense.

Effects

This attack relies on a few assumptions:

  • The attacker has knowledge of sites the victim has current authentication on (more common on web forums, where this attack is most common)
  • The attacker's "target site" has persistent authentication cookies, or the victim has a current session cookie
  • The "target site" doesn't have secondary authentication for actions

While having potential for harm, the effect is mitigated by the attackers need to "know his audience" such that he attacks a small familiar community of victims, or a more common "target site" has poorly implemented authentication systems (for instance, if a common book reseller offers 'instant' purchases without re-authentication).

References

  1. ^ RFC 2616 9.1.1
  2. ^ Dark Reading, CSRF Vulnerability: A Sleeping Giant, accessed 2006-10-18

This article is licensed under the GNU Free Documentation License. It uses material from the Wikipedia.

Computers: 
Internet: 
Bookmark and Share

Who's online

There are currently 0 users online.