[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-489379-105":3,"detail-sidebar-cat-0-en-105":73,"doc-detail-489379-en":122},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":66,"head_meta":68,"extra_data":70,"updated_unix":72},105,"en","athens-journal-of-sciences-volume-5-issue-3-an-approach-for-the-automated-detection-of-xss-vulnerabilities-in-web-templates","Athens Journal of Sciences - Volume 5 - Issue 3 - An Approach for the Automated Detection of XSS Vulnerabilities in Web Templates","","Focuses on securing web applications by automatically detecting cross-site scripting (XSS) vulnerabilities in web templates. The approach converts templates into an internal representation inspired by LLVM, decoupling template structure from engine syntax. Potentially exploitable snippets are identified, converted back into template format, and verified via unit tests using actual attack vectors. Emphasizes universality across web template engines and provides reports to guide developers in hardening front- and back-end components.",{"@graph":14,"@context":65},[15,34,56],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/research-report/","Research & Report",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/athens-journal-of-sciences-volume-5-issue-3-an-approach-for-the-automated-detection-of-xss-vulnerabilities-in-web-templates/489379/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/athens-journal-of-sciences-volume-5-issue-3-an-approach-for-the-automated-detection-of-xss-vulnerabilities-in-web-templates/489379.png","ImageObject",300,407,{"name":42,"@type":43},"WPS_1786070896","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-23","2026-10-01",true,{"@type":52,"interactionType":53,"userInteractionCount":55},"InteractionCounter",{"@type":54},"ViewAction",5,{"@type":57,"mainEntity":58},"FAQPage",[59],{"name":60,"@type":61,"acceptedAnswer":62},"Why is the approach considered universal across template engines?","Question",{"text":63,"@type":64},"Because it decouples the structure of the web template from the syntax of the template engine by using an internal representation, allowing the same analysis and testing logic to apply to different engines.","Answer","https://schema.org",{"og:url":32,"og:type":67,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":69,"canonical":32},"index,follow",{"doc_id":71,"site_id":7},489379,1792835083,{"code":4,"msg":74,"data":75},"success",[76,80,84,88,92,97,102,106,111,114,118],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":77,"show_sort_weight":78,"slug":79},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":81,"show_sort_weight":82,"slug":83},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":85,"show_sort_weight":86,"slug":87},"Exam",70,"exam",{"id":55,"doc_module":4,"doc_module_name":25,"category_name":89,"show_sort_weight":90,"slug":91},"Comic",60,"comic",{"id":93,"doc_module":4,"doc_module_name":25,"category_name":94,"show_sort_weight":95,"slug":96},6,"Technology",50,"technology",{"id":98,"doc_module":4,"doc_module_name":25,"category_name":99,"show_sort_weight":100,"slug":101},7,"Healthcare",40,"healthcare",{"id":103,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":104,"slug":105},8,30,"research-report",{"id":107,"doc_module":4,"doc_module_name":25,"category_name":108,"show_sort_weight":109,"slug":110},9,"Religion & Spirituality",20,"religion-spirituality",{"id":109,"doc_module":4,"doc_module_name":25,"category_name":112,"show_sort_weight":109,"slug":113},"World Cup","world-cup",{"id":115,"doc_module":4,"doc_module_name":25,"category_name":116,"show_sort_weight":115,"slug":117},10,"Lifestyle","lifestyle",{"id":119,"doc_module":4,"doc_module_name":25,"category_name":120,"show_sort_weight":55,"slug":121},19,"General","general",{"code":4,"msg":74,"data":123},{"doc_id":71,"user_id":124,"nickname":42,"user_avatar":125,"doc_module":4,"category_id":103,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":126,"file_id":127,"file_url":128,"file_type":129,"file_size":130,"view_count":55,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":109,"language":131,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":132,"faqs":133,"seo_title":134,"seo_description":12,"update_tm":135,"read_time":95,"preview_page_count":33,"preview_urls":136},549768072016,"https://ap-avatar.wpscdn.com/davatar_155a257f0dc6eb9ab79c44ca47cae57d","Athens Journal of Sciences-Volume 5, Issue 3 – Pages 261-280  \nAn Approach for the Automated Detection of XSS Vulnerabilities in Web Templates  \nBy Sebastian Stigler􀀍 Gulshat Karzhaubekova† Christoph Karg‡  \nWeb sites are exposed to various threats such as injections or denial of service attacks. Hence, the protection of the web site and the underlying system components is of major importance in order to deploy a reliable and secure web application. The task of securing a web application is quite complex. It requires the hardening of the system components and installation of security patches on a regular basis. Furthermore, the web application should be checked against vulnerabilities by using penetration testing methods. From a developer’s point of view, security aspects should be considered in the early stage of web application’s development life cycle already. Of special interest is the web template which is used to generate the user interface of the webpage. This component connects the web application to the outside world. Hence, it is the main entrance point to inject malicious things into the web application. In this paper, we present an approach to check web templates against cross site scripting (XSS) attacks in an automatic manner. The basic idea is inspired by the LLVM compiler which uses an internal representation to optimize the machine code independently from the used programming language. Instead of searching for vulnerabilities selectively in the template code itself, the web template is converted into an internal representation. This representation decouples the structure of the web template from the syntax of the template engine. The internal representation is analysed with respect to exploitable parts. The results of the analysis are potentially vulnerable code snippets. These snippets are coded back into the template format and are used within unit tests to check whether they can be exploited with actual attack vectors. The advantage of our approach is its universality; it works with any kind of web template engine.  \nKeywords: Cross Site Scripting Attack, Web Security, Web Template Engines, Unit Testing.  \nIntroduction  \nWeb development is nowadays usually not done by employees of the company for which the website is used but by external contractors. These contractors have to obey the requirements that their costumer set for the project which may include the actual web framework. Therefore a developer can be confronted with different frameworks for different costumers. One component of such a web framework is the Web Template Engine which may differ, too.  \n􀀍Academic Staff, Aalen University of Applied Sciences, Germany.  \n†Academic Staff, Aalen University of Applied Sciences, Germany.  \n‡Professor, Aalen University of Applied Sciences, Germany.  \n[https://doi.org/10.30958/ajs.5-3-4](https://doi.org/10.30958/ajs.5-3-4) doi=10.30958/ajs.5-3-4  \nVol. 5, No. 3 Stigler et al.: An Approach for the Automated Detection of XSS…  \nUnfortunately (from the perspective of a possible attack vector) the templates, generated for these Web Template Engines, look often very much alike but behave not always equal. Due to the fact that software engineers learn in their technical training that they should use techniques such as design pattern, as often as possible. Hence most of them develop some own pattern to solve problems concerning the development of templates for web frameworks, too.  \nCombined, this two facts, lead to the problem that the developer uses a pattern for Web Template Engine A in a template for Web Template Engine B. This problem is even bigger if the developer is not a full stack web developer who works on the frontend and the backend of the website but just a frontend developer who does not know exactly which Web Template Engine is used in the project.  \nFrom the developers perspective it seems everything is fine, but from the security perspective it can lead to different gaps, which, at the development pha","cbCaipMQCBbKtAyu","https://ap.wps.com/l/cbCaipMQCBbKtAyu","pdf",903338,"English","# Introduction\n## Literature Review\n## Approach for Automated XSS Detection","[{\"question\":\"Why is the approach considered universal across template engines?\",\"answer\":\"Because it decouples the structure of the web template from the syntax of the template engine by using an internal representation, allowing the same analysis and testing logic to apply to different engines.\"}]","Athens Journal of Sciences - Volume 5 - Issue 3 - An Approach for the Automated Detection of XSS Vulnerabilities in Web Templates | PDF",1790822582,[137,141,145,149],{"page_no":22,"url":138,"width":139,"height":140},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/90886316144fdcd3283fc3b6573b0971.webp",983,1390,{"page_no":26,"url":142,"width":143,"height":144},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/da94087d7f4831743396d510f7cbb5af.webp",982,1388,{"page_no":30,"url":146,"width":147,"height":148},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/16f7eee171adbf74646e0fe02fac5e12.webp",981,1387,{"page_no":33,"url":150,"width":151,"height":152},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/a87f516e7d158e9ffe98a2ff111bd0f6.webp",980,1385]