• DocumentCode
    3059084
  • Title

    Server Side Detection of Content Sniffing Attacks

  • Author

    Barua, Anton ; Shahriar, Hossain ; Zulkernine, Mohammad

  • Author_Institution
    Sch. of Comput., Queen´´s Univ., Kingston, ON, Canada
  • fYear
    2011
  • fDate
    Nov. 29 2011-Dec. 2 2011
  • Firstpage
    20
  • Lastpage
    29
  • Abstract
    Content sniffing attacks occur if browsers render non-HTML files embedded with malicious HTML contents or JavaScript code as HTML files. The rendering of these embedded contents might cause unwanted effects such as the stealing of sensitive information through the execution of malicious JavaScript code. The primary source of these attacks can be stopped if the uploading of malicious files can be prevented from the server side. However, existing server side content sniffing attack detection approaches suffer from a number of limitations. First, file contents are checked only to a fixed amount of initial bytes whereas attack payloads might reside anywhere in the file. Second, these approaches do not provide any mechanism to assess the malicious impact of the embedded contents on browsers. This paper addresses these issues by developing a server side content sniffing attack detection mechanism based on content analysis using HTML and JavaScript parsers and simulation of browser behavior via mock download testing. We have implemented our approach in a tool that can be integrated in web applications written in various languages. In addition, we have developed a benchmark suite for the evaluation purpose that contains both benign and malicious files. We have evaluated our approach on three real world PHP programs suffering from content sniffing vulnerabilities. The evaluation results indicate that our approach can secure programs against content sniffing attacks by successfully preventing the uploading of malicious files.
  • Keywords
    Java; authoring languages; digital simulation; hypermedia markup languages; online front-ends; security of data; JavaScript parsers; PHP programs; attack payloads; browser behavior simulation; content analysis; malicious HTML contents; malicious JavaScript code; mock download testing; nonHTML files; server side content sniffing attack detection mechanism; Browsers; Encoding; HTML; Internet; Payloads; Portable document format; Servers; Content sniffing; Mock download testing; Parser-based analysis;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Software Reliability Engineering (ISSRE), 2011 IEEE 22nd International Symposium on
  • Conference_Location
    Hiroshima
  • ISSN
    1071-9458
  • Print_ISBN
    978-1-4577-2060-4
  • Type

    conf

  • DOI
    10.1109/ISSRE.2011.27
  • Filename
    6132950