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

1/28/2008
08:00 AM
Connect Directly
Twitter
RSS
E-Mail
50%
50%

Exploit Could Taint Forensics

Cross-site request forgery (CSRF) attack could falsely implicate an innocent user

What if a hacker could taint your forensics investigation with an exploit? That's one of the scarier risks associated with cross-site request forgery (CSRF), a common and stealthy vulnerability found in many Web applications. (See CSRF Vulnerability: A 'Sleeping Giant' and New Tool Eases CSRF Bug Discovery.)

CSRF can be used by an attacker to force a user's browser to conduct searches on behalf of the attacker, grab files or pages, post messages to online forums, and even make changes to the user's Website accounts. So when an organization is conducting either its regular Internet monitoring of inappropriate use by its users, or a full-blown forensics investigation, a CSRF exploit could falsely implicate an innocent user, says Chuck Willis, principal consultant with Mandiant, who will give a presentation on this topic at Black Hat D.C. next month.

These investigations often rely on a user's Web browser cache and history to reconstruct a user's suspicious activity, so if the user's machine is infected with CSRF, that data isn't reliable and an innocent user could be mistakenly accused of wrongdoing when it was actually an attacker behind it.

"Without them knowing it, the [exploit] could be transparently making Web pages and loading pages in the background they don't know are there," Willis says. "And there's also typically a lot of traffic going out from the browser as well."

A CSRF attack on the user's browser eventually could be raised as a defense in a case, Willis notes, so an investigator needs to take that possibility that into account during an investigation. "Was the bad activity in the cache or history not actually done by that person? You need to proactively look at that."

Merely analyzing browser history can help by looking for patterns, such as checking the sites where the user last visited before the suspicious activity started. Building a timeline of activity is the best bet -- checking the content of the sites visited before the bad activity, caches, deletions, and other online activity, he says. "If he saved porn on his own computer, that's a big indication" of inappropriate behavior by the user rather than an attack, he says. "[But] if it's all just in the Web browser cache, be aware" that it may not be the user's doing, he says.

Willis says CSRF flaws are even more widespread in Web applications than the better-known cross-site scripting bug, but so far have not been widely exploited. "It's [CSRF] really a feature of the HTTP protocol in some ways," Willis says. "So unless you're actively doing things to prevent it, you're going to end up with it" in your applications, he says.

"Automated tools for scanning for cross-site scripting have been around for quite awhile," he says. "CSRF is harder to test for."

Willis says his Black Hat talk is more about making sure organizations doing forensics and Internet monitoring are aware of this problem. "We want to make sure they are aware of this issue so that they can be prepared for it," he says. "You have to actually figure out what happened and not jump to conclusions."

Have a comment on this story? Please click "Discuss" below. If you'd like to contact Dark Reading's editors directly, send us a message.

  • Mandiant

    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
    Threaded  |  Newest First  |  Oldest First
    Commentary
    How SolarWinds Busted Up Our Assumptions About Code Signing
    Dr. Jethro Beekman, Technical Director,  3/3/2021
    News
    'ObliqueRAT' Now Hides Behind Images on Compromised Websites
    Jai Vijayan, Contributing Writer,  3/2/2021
    News
    Attackers Turn Struggling Software Projects Into Trojan Horses
    Robert Lemos, Contributing Writer,  2/26/2021
    Register for Dark Reading Newsletters
    White Papers
    Video
    Cartoon Contest
    Current Issue
    2021 Top Enterprise IT Trends
    We've identified the key trends that are poised to impact the IT landscape in 2021. Find out why they're important and how they will affect you today!
    Flash Poll
    How Enterprises are Developing Secure Applications
    How Enterprises are Developing Secure Applications
    Recent breaches of third-party apps are driving many organizations to think harder about the security of their off-the-shelf software as they continue to move left in secure software development practices.
    Twitter Feed
    Dark Reading - Bug Report
    Bug Report
    Enterprise Vulnerabilities
    From DHS/US-CERT's National Vulnerability Database
    CVE-2021-27581
    PUBLISHED: 2021-03-05
    The Blog module in Kentico CMS 5.5 R2 build 5.5.3996 allows SQL injection via the tagname parameter.
    CVE-2021-28042
    PUBLISHED: 2021-03-05
    Deutsche Post Mailoptimizer 4.3 before 2020-11-09 allows Directory Traversal via a crafted ZIP archive to the Upload feature or the MO Connect component. This can lead to remote code execution.
    CVE-2021-28041
    PUBLISHED: 2021-03-05
    ssh-agent in OpenSSH before 8.5 has a double free that may be relevant in a few less-common scenarios, such as unconstrained agent-socket access on a legacy operating system, or the forwarding of an agent to an attacker-controlled host.
    CVE-2021-3377
    PUBLISHED: 2021-03-05
    The npm package ansi_up converts ANSI escape codes into HTML. In ansi_up v4, ANSI escape codes can be used to create HTML hyperlinks. Due to insufficient URL sanitization, this feature is affected by a cross-site scripting (XSS) vulnerability. This issue is fixed in v5.0.0.
    CVE-2021-3420
    PUBLISHED: 2021-03-05
    A flaw was found in newlib in versions prior to 4.0.0. Improper overflow validation in the memory allocation functions mEMALIGn, pvALLOc, nano_memalign, nano_valloc, nano_pvalloc could case an integer overflow, leading to an allocation of a small buffer and then to a heap-based buffer overflow.