Hardening Java']Java's Access Control by Abolishing Implicit Privilege Elevation

被引:8
作者
Holzinger, Philipp [1 ]
Hermann, Ben [2 ]
Lerch, Johannes [2 ]
Bodden, Eric [3 ,4 ]
Mezini, Mira [2 ]
机构
[1] Fraunhofer SIT, Darmstadt, Germany
[2] Tech Univ Darmstadt, Darmstadt, Germany
[3] Fraunhofer IEM, Paderborn, Germany
[4] Paderborn Univ, Paderborn, Germany
来源
2017 IEEE SYMPOSIUM ON SECURITY AND PRIVACY (SP) | 2017年
关键词
STACK INSPECTION;
D O I
10.1109/SP.2017.16
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
While the Java runtime is installed on billions of devices and servers worldwide, it remains a primary attack vector for online criminals. As recent studies show, the majority of all exploited Java vulnerabilities comprise incorrect or insufficient implementations of access-control checks. This paper for the first time studies the problem in depth. As we find, attacks are enabled by shortcuts that short-circuit Java's general principle of stack-based access control. These shortcuts, originally introduced for ease of use and to improve performance, cause Java to elevate the privileges of code implicitly. As we show, this creates many pitfalls for software maintenance, making it all too easy for maintainers of the runtime to introduce blatant confused-deputy vulnerabilities even by just applying normally semantics-preserving refactorings. How can this problem be solved? Can one implement Java's access control without shortcuts, and if so, does this implementation remain usable and efficient? To answer those questions, we conducted a tool-assisted adaptation of the Java Class Library (JCL), avoiding (most) shortcuts and therefore moving to a fully explicit model of privilege elevation. As we show, the proposed changes significantly harden the JCL against attacks: they effectively hinder the introduction of new confused-deputy vulnerabilities in future library versions, and successfully restrict the capabilities of attackers when exploiting certain existing vulnerabilities. We discuss usability considerations, and through a set of large-scale experiments show that with current JVM technology such a faithful implementation of stack-based access control induces no observable performance loss.
引用
收藏
页码:1027 / 1040
页数:14
相关论文
共 28 条
  • [1] Abadi Martin, 2003, P NETW DISTR SYST SE
  • [2] [Anonymous], 2014, 2014 CISCO ANN SECUR
  • [3] [Anonymous], 2007, LECT NOTES COMPUTER
  • [4] [Anonymous], 2013, 2013 CISCO ANN SECUR
  • [5] Stack-based access control and secure information flow
    Banerjee, A
    Naumann, DA
    [J]. JOURNAL OF FUNCTIONAL PROGRAMMING, 2005, 15 : 131 - 177
  • [6] Bartoletti M., 2001, ELECT NOTES THEORETI, V54, P69
  • [7] The DaCapo benchmarks: Java']Java benchmarking development and analysis
    Blackburn, Stephen M.
    Garner, Robin
    Hoffmann, Chris
    Khan, Asjad M.
    McKinley, Kathryn S.
    Bentzur, Rotem
    Diwan, Amer
    Feinberg, Daniel
    Frampton, Daniel
    Guyer, Samuel Z.
    Hirzel, Martin
    Hosking, Antony
    Jump, Maria
    Lee, Han
    Moss, J. Eliot B.
    Phansalkar, Aashish
    Stefanovic, Darko
    VanDrunen, Thomas
    von Dincklage, Daniel
    Wiedermann, Ben
    [J]. ACM SIGPLAN NOTICES, 2006, 41 (10) : 169 - 190
  • [8] Static check analysis for Java']Java stack inspection
    Chang, Byeong-Mo
    [J]. ACM SIGPLAN NOTICES, 2006, 41 (03) : 40 - 48
  • [9] Chiba S., 1998, Proceedings of OOPSLA98 Workshop on Reflective Programming in C++ and Java, P174
  • [10] Cifuentes Cristina., 2015, P 4 ACM SIGPLAN INT, P7, DOI DOI 10.1145/2771284.2771286