Dark Reading is part of the Informa Tech Division of Informa PLC

This site is operated by a business or businesses owned by Informa PLC and all copyright resides with them.Informa PLC's registered office is 5 Howick Place, London SW1P 1WG. Registered in England and Wales. Number 8860726.

Risk

7/20/2007
07:19 AM
Connect Directly
Twitter
RSS
E-Mail
50%
50%

New Tool Eases CSRF Bug Discovery

Tool will show how widespread CSRF bugs are in Websites, researchers say

If you think Cross-Site Request Forgery (CSRF) vulnerabilities aren't easy to find or exploit on your Website, think again. A researcher has released a tool that makes it easier to test sites for CSRF vulnerabilities -- and find out how prevalent the emerging bugs really are.

The online tool lets you use the HTTP "post" request to check for CSRF bugs. Chris Shiflet, principal with OmniTI and creator of the newly released CSRF Redirector tool, says there's a misconception among Web developers that testing for CSRF bugs with a "post" request is more difficult or inconvenient, so CSRF attacks using "post" aren't as common as those using an HTTP "get" request.

"I think this can help highlight how easily CSRF vulnerabilities can be exploited, even when the forged request must be a 'post' request," Shiflet says. "Often, inconvenience is considered a safeguard" for a site, but that's not really the case.

It's easier to test for CSRF bugs with a "get" request because visiting a URL initiates such a request, while a "post" requires the tester to build an HTML form, Shiflet says. "So any bug that can be exploited with 'get' is easy to test for," he says. "It's marginally less convenient with 'post,' so this [tool] is trying to remove that slight barrier of inconvenience."

CSRF worries Web researchers because it can potentially cause serious damage to Websites and enterprises. (See CSRF Bug Runs Rampant, Eight Vulnerabilities You May Have Missed, and CSRF Vulnerability: A 'Sleeping Giant'.)

"For some reason, CSRF seems to be hovering just below the radar of most Web developers," Shiflet says. "And in my experience [so far], it seems to be exploited far less [than XSS] as well."

To see how much interest hackers have in CSRF, Shiflet even purposely placed a CSRF bug on his personal Website and then mentioned it in his blog. Yet, only once has someone tried to exploit it, he says. "I get cross-site scripting-related attack [attempts] in the hundreds a day... I find that very interesting. There are far fewer attempts on CSRF."

He thinks it's more of an awareness issue, rather than a complexity issue, since XSS is more widely known and understood than CSRF. "Exploiting CSRF is equally as easy as cross-site scripting."

"This doesn't change the exploitability of the attack vector much -- certainly, people were able to do this before, and will continue to be able to do this without the tool," says RSnake, a.k.a. Robert Hansen, CEO at SecTheory LLC. "However, what it does provide is the ability for researchers to quickly prototype examples to demonstrate the problem."

— Kelly Jackson Higgins, Senior Editor, Dark Reading

  • SecTheory LLC
  • OmniTI Inc. Kelly Jackson Higgins is the Executive Editor of Dark Reading. She is an award-winning veteran technology and business journalist with more than two decades of experience in reporting and editing for various publications, including Network Computing, Secure Enterprise ... View Full Bio

    Comment  | 
    Print  | 
    More Insights
  • Comments
    Newest First  |  Oldest First  |  Threaded View
    NSA Appoints Rob Joyce as Cyber Director
    Dark Reading Staff 1/15/2021
    Vulnerability Management Has a Data Problem
    Tal Morgenstern, Co-Founder & Chief Product Officer, Vulcan Cyber,  1/14/2021
    Register for Dark Reading Newsletters
    White Papers
    Video
    Cartoon Contest
    Write a Caption, Win an Amazon Gift Card! Click Here
    Latest Comment: This is not what I meant by "I would like to share some desk space"
    Current Issue
    2020: The Year in Security
    Download this Tech Digest for a look at the biggest security stories that - so far - have shaped a very strange and stressful year.
    Flash Poll
    Assessing Cybersecurity Risk in Today's Enterprises
    Assessing Cybersecurity Risk in Today's Enterprises
    COVID-19 has created a new IT paradigm in the enterprise -- and a new level of cybersecurity risk. This report offers a look at how enterprises are assessing and managing cyber-risk under the new normal.
    Twitter Feed
    Dark Reading - Bug Report
    Bug Report
    Enterprise Vulnerabilities
    From DHS/US-CERT's National Vulnerability Database
    CVE-2020-28452
    PUBLISHED: 2021-01-20
    This affects the package com.softwaremill.akka-http-session:core_2.12 from 0 and before 0.6.1; all versions of package com.softwaremill.akka-http-session:core_2.11; the package com.softwaremill.akka-http-session:core_2.13 from 0 and before 0.6.1. CSRF protection can be bypassed by forging a request ...
    CVE-2020-28483
    PUBLISHED: 2021-01-20
    This affects all versions of package github.com/gin-gonic/gin. When gin is exposed directly to the internet, a client's IP can be spoofed by setting the X-Forwarded-For header.
    CVE-2021-21269
    PUBLISHED: 2021-01-20
    Keymaker is a Mastodon Community Finder based Matrix Community serverlist page Server. In Keymaker before version 0.2.0, the assets endpoint did not check for the extension. The rust `join` method without checking user input might have made it abe to do a Path Traversal attack causing to read more f...
    CVE-2020-25686
    PUBLISHED: 2021-01-20
    A flaw was found in dnsmasq before version 2.83. When receiving a query, dnsmasq does not check for an existing pending request for the same name and forwards a new request. By default, a maximum of 150 pending queries can be sent to upstream servers, so there can be at most 150 queries for the same...
    CVE-2020-25687
    PUBLISHED: 2021-01-20
    A flaw was found in dnsmasq before version 2.83. A heap-based buffer overflow was discovered in dnsmasq when DNSSEC is enabled and before it validates the received DNS entries. This flaw allows a remote attacker, who can create valid DNS replies, to cause an overflow in a heap-allocated memory. This...