Advertisement

Ghostrail: Ad Hoc Control-Flow Integrity for Web Applications

  • Bastian Braun
  • Caspar Gries
  • Benedikt Petschkuhn
  • Joachim Posegga
Part of the IFIP Advances in Information and Communication Technology book series (IFIPAICT, volume 428)

Abstract

Modern web applications frequently implement complex control flows, which require the users to perform actions in a given order. Users interact with a web application by sending HTTP requests with parameters and in response receive web pages with hyperlinks that indicate the expected next actions. If a web application takes for granted that the user sends only those expected requests and parameters, malicious users can exploit this assumption by crafting harming requests. We analyze recent attacks on web applications with respect to user-defined requests and identify their root cause in the missing enforcement of allowed next user requests. Based on this result, we provide our approach, named Ghostrail, a control-flow monitor that is applicable to legacy as well as newly developed web applications. It observes incoming requests and lets only those pass that were provided as next steps in the last web page. Ghostrail protects the web application against race condition exploits, the manipulation of HTTP parameters, unsolicited request sequences, and forceful browsing. We evaluate the approach and show that it neither needs a training phase nor a manual policy definition while it is suitable for a broad range of web technologies.

Keywords

Race Condition Event Handler Incoming Request Reference Extraction Browser Cache 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

References

  1. 1.
    Braun, B., Pollak, C.v., Posegga, J.: A Survey on Control-Flow Integrity Means in Web Application Frameworks. In: Riis Nielson, H., Gollmann, D. (eds.) NordSec 2013. LNCS, vol. 8208, pp. 231–246. Springer, Heidelberg (2013)CrossRefGoogle Scholar
  2. 2.
    Paleari, R., Marrone, D., Bruschi, D., Monga, M.: On Race Vulnerabilities in Web Applications. In: Zamboni, D. (ed.) DIMVA 2008. LNCS, vol. 5137, pp. 126–142. Springer, Heidelberg (2008)CrossRefGoogle Scholar
  3. 3.
    Grossman, J.: Seven Business Logic Flaws That Put Your Website At Risk (White Paper), https://www.whitehatsec.com/assets/WP_bizlogic092407.pdf (last accessed January 23, 2014)
  4. 4.
    The New York Times: Thieves Found Citigroup Site an Easy Entry, http://www.nytimes.com/2011/06/14/technology/14security.html (last accessed January 23, 2014)
  5. 5.
    Tate, R.: Apple’s Worst Security Breach: 114,000 iPad Owners Exposed, http://gawker.com/5559346/ (last accessed January 19, 2014)
  6. 6.
    Wang, R., Chen, S., Wang, X., Qadeer, S.: How to Shop for Free Online – Security Analysis of Cashier-as-a-Service Based Web Stores. In: IEEE S&P (2011)Google Scholar
  7. 7.
    OWASP: Race Conditions, https://www.owasp.org/index.php/Race_Conditions (last accessed January 23, 2014)
  8. 8.
    Guha, A., Krishnamurthi, S., Jim, T.: Using Static Analysis for Ajax Intrusion Detection. In: WWW (2009)Google Scholar
  9. 9.
    Joyent, Inc: Node.js, http://nodejs.org (last accessed January 22, 2014)
  10. 10.
    Hidayat, A.: PhantomJS, http://phantomjs.org (last accessed January 22, 2014)
  11. 11.
    Ilya Kantor: JavaScript Tutorial - Bubbling and capturing, http://javascript.info/tutorial/bubbling-and-capturing (last accessed January 22, 2014)
  12. 12.
    Fielding, R., Gettys, J., Mogul, J., Frystyk, H., Masinter, L., Leach, P., Berners-Lee, T.: HTTP/1.1. (RFC 2616)Google Scholar
  13. 13.
    Google: Gruyere, http://google-gruyere.appspot.com, (last accessed January 23, 2014)
  14. 14.
    SeleniumHQ: Browser Automation, http://docs.seleniumhq.org (last accessed January 23, 14)
  15. 15.
    OWASP: Failure to Restrict URL Access, https://www.owasp.org/index.php/Top_10_2010-A8-Failure_to_Restrict_URL_Access (last accessed January 23, 2014)
  16. 16.
    Abadi, M., Cardelli, L., Talaga, P.G., Chapin, S.J.: Enforcing Request Integrity in Web Applications. In: Foresti, S., Jajodia, S. (eds.) Data and Applications Security XXIV. LNCS, vol. 6166, pp. 225–240. Springer, Heidelberg (2010)CrossRefGoogle Scholar
  17. 17.
    Braun, B., Gemein, P., Reiser, H.P., Posegga, J.: Control-Flow Integrity in Web Applications. In: Jürjens, J., Livshits, B., Scandariato, R. (eds.) ESSoS 2013. LNCS, vol. 7781, pp. 1–16. Springer, Heidelberg (2013)CrossRefGoogle Scholar
  18. 18.
    Balzarotti, D., Cova, M., Felmetsger, V., Vigna, G.: Multi-Module Vulnerability Analysis of Web-based Applications. In: CCS (2007)Google Scholar
  19. 19.
    Cova, M., Balzarotti, D., Felmetsger, V., Vigna, G.: Swaddler: An Approach for the Anomaly-Based Detection of State Violations in Web Applications. In: Kruegel, C., Lippmann, R., Clark, A. (eds.) RAID 2007. LNCS, vol. 4637, pp. 63–86. Springer, Heidelberg (2007)CrossRefGoogle Scholar
  20. 20.
    Felmetsger, V., Cavedon, L., Kruegel, C., Vigna, G.: Toward Automated Detection of Logic Vulnerabilities in Web Applications. In: USENIX Security (2010)Google Scholar
  21. 21.
    Li, X., Xue, Y.: BLOCK: A Black-box Approach for Detection of State Violation Attacks Towards Web Applications. In: ACSAC (2011)Google Scholar
  22. 22.
    Balduzzi, M., Gimenez, C.T., Balzarotti, D., Kirda, E.: Automated Discovery of Parameter Pollution Vulnerabilities in Web Applications. In: NDSS (2011)Google Scholar
  23. 23.
    Bisht, P., Hinrichs, T., Skrupsky, N., Bobrowicz, R., Venkatakrishnan, V.N.: NoTamper: Automatic Blackbox Detection of Parameter Tampering Opportunities in Web Applications. In: CCS (2010)Google Scholar
  24. 24.
    Vikram, K., Prateek, A., Livshits, B.: Ripley: Automatically Securing Web 2.0 Applications Through Replicated Execution. In: CCS (2009)Google Scholar

Copyright information

© IFIP International Federation for Information Processing 2014

Authors and Affiliations

  • Bastian Braun
    • 1
  • Caspar Gries
    • 1
  • Benedikt Petschkuhn
    • 1
  • Joachim Posegga
    • 1
  1. 1.Institute of IT Security and Security Law (ISL)University of PassauGermany

Personalised recommendations