Journal of Software, Vol 2, No 6 (2007), 53-63, Dec 2007
doi:10.4304/jsw.2.6.53-63

Using Aspect Programming to Secure Web Applications

Gabriel Hermosillo, Roberto Gomez, Lionel Seinturier, Laurence Duchien

Abstract


As the Internet users increase, the need to protect web servers from malicious users has become a priority in many organizations and companies. Writing crosscutting functions in complex software should take advantage of the modularity offered by new software development approaches. With AspectOriented Programming (AOP), separating concerns when designing an application fosters reuse, parameterization and maintenance. In this paper, we design a security aspect called AProSec for detecting SQL injection and Cross Scripting Site (XSS), that are common attacks in web servers. We experimented this aspect with AspectJ language and JBoss AOP. By this experimentation, we show the advantage of runtime platforms such as JBoss AOP for changing security policies at runtime. Finally, we describe related work on security and AOP.



Keywords


Aspectoriented programming, security, SQL injection, cross site scripting, design of web applications, reuse of aspect, dynamic weaving

References



Full Text: PDF


Journal of Software (JSW, ISSN 1796-217X)

Copyright @ 2006-2011 by ACADEMY PUBLISHER – All rights reserved.