arXiv:2609.02532cs.CRSep 2026

Manuscript Offprint

arXiv:2609.02532

SpiderSapien: Client-Centric Web Crawler and Security Scanner

Eric Olsson, Benjamin Eriksson, Adam Doupé, Andrei Sabelfeld

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Eric Olsson

Chalmers University of Technology and University of Gothenburg

Benjamin Eriksson

Chalmers University of Technology and University of Gothenburg

Adam Doupé

Arizona State University

Andrei Sabelfeld

Chalmers University of Technology and University of Gothenburg

Abstract—Black-box web application crawling and scanning play an important role for security testing of web applications. Yet state-of-the-art scanners fall short of addressing key characteristics of a modern web application: its extreme dynamism and interactivity on the client side. This paper identifies immersive interaction as a key ingredient for scanners to deeply explore modern web applications. We propose SpiderSapien, a client-centric crawler and security scanner. SpiderSapien incorporates a unique combination of high-level, user-facing feedback channels from the web application to achieve immersive interaction in a black-box crawling loop. These feedback channels include both novel methods to detect interactable elements and sensibly order UI interactions, and orthogonally using an LLM to solve forms. In doing so, we demonstrate how to reliably discover and test deep states of modern web applications. Furthermore, our modular approach and useful abstraction layer can serve as a building block for future scanners. The evaluation of our approach shows substantial improvements in both code coverage and vulnerability detection over previous work. Our approach increased average code coverage across applications by at least 46% over any other scanner, or 16% when compared to the union of all other scanners. We find XSS vulnerabilities in 7 web applications, while any other scanner finds XSS in up to 2 applications.

I. INTRODUCTION

Black-box security scanning is a natural fit for detecting vulnerabilities in web applications. These scanners use a black-box web crawler to interact with a web application, iteratively discovering functionality and testing it for vulnerabilities. Because they require only a running web application and a scanner, black-box scanners are largely independent of the frameworks and languages underlying the web application.

Black-box Scanners and the Web. Historically, as web applications have incorporated more functionality along with their associated complexity, security scanning techniques were developed in short order to handle these new features. In the 2000s, “sitemap” style black-box crawlers such as Skipfish [1] and w3af [2] could reliably scan the Web 1.0—websites composed of primarily statically linked content. While supporting basic web application interactions via inputs in request parameters and forms, these scanners mainly focused on following static links by parsing HTML.

However, by the early 2010s Web 2.0 had evolved to include dynamic stateful web applications with multi-step flows that could not be modeled well by the first generation of scanners.

New black-box scanning methods such as the Enemy of the State [3] responded by incorporating a more complex internal state model. The additional client-side functionality of Web 2.0-style applications also motivated the concurrent development of yet more black-box crawlers such as CrawlJax [4] and jÄk [5], which incorporated support for either AJAX or broader JavaScript applications.

New Scale of Complexity. In the decade since this second generation of black-box crawlers, the characterization of Web 2.0 as consisting of stateful web applications with rich client-side functionality has remained the same. However, the scale of this complexity, in terms of the dynamic statefulness and interactive client-side functionality of these applications, has exceeded the ability of these black-box scanners to handle. While “software is eating the world” [6], we are now in an era where web applications eat software. Software services that were once offered as desktop applications can now be accessed through web interfaces. For example, Nextcloud delivers full office productivity suites online through its open-source collaboration platform.

These web interfaces have the same core challenges for crawling, statefulness, and client-side interactivity, but at a new scale due to the inherent complexity of the functionality they now include. We refer to web applications with this scale of dynamism and client-side interactivity as modern web applications. Scanning these modern web applications requires that the scanner either be able to navigate multi-step stateful flows, or compose complex structured inputs to backend services that might result from the composition of multiple user steps in the actual application. Without this, the deep behavior of these web applications stays hidden and untested for vulnerabilities. The key limitation is not merely that current scanners miss individual buttons or fail individual forms. Rather, they often observe and manipulate the application at abstractions different from those exposed to users: URLs, request parameters, HTML tag names, or event listeners instead of the actual rendered interface and the valid actions that it enables.

Insufficient Current Approaches. In practice, black-box scanners only discover a fraction of the functionality and endpoints of these web applications. Some portion of the application is never tested because discovering and executing a correct sequence of client-side actions is unlikely. Scanners that avoid client-side actions and instead work directly with server-side requests are also unlikely to succeed, as the problem then transforms to either handling multiple stateful requests, or generating highly structured network inputs. As a result, current black-box approaches are unlikely to explore these applications deeply.

Interaction strategy and deep states. Constructing an interaction strategy that can navigate the client-side interface of modern web applications to explore their deep states has been the elusive target of prior works [7], [8]. Recent work on EvoCrawl [9] and YuraScanner [10] makes progress on this goal, leveraging evolutionary search and LLM task-driven scanning, respectively. Yet, fundamental challenges of achieving tight interaction with the web application remain open.

Approach. We identify immersive interaction as a key ingredient for scanners to deeply explore modern web applications. Our approach has the aim of generating actions in a fashion similar to a human. Therefore, we focus on interacting with the application's client-side interface. This requires the scanner to be aware of how the web application presents itself in the browser: in other words, the signals from high-level, user-facing feedback channels that normal users consume. Under immersive interaction, high-level feedback should be used to inform which actions the scanner performs. Furthermore, these actions should be performed as they would be in a browser. Rather than mainly interacting through low-level URLs, network requests, or event listeners, we instead develop a scanner focused on valid client-side actions.

This scanner, SpiderSapien, implements a black-box crawling approach that can interact with complex client-side applications by integrating three pillars of interactivity: (1) detecting interactable elements, (2) ordering UI interactions, and (3) complex form solving using LLMs. We develop novel methods for the first two pillars while adopting YuraScanner's approach to form solving. All of these improvements to specific components are enabled by adding high-level, user-facing feedback channels to the black-box crawler, as shown in Figure 1.

Recent black-box crawlers and LLM-assisted scanners address related parts of this problem from different directions. EvoCrawl improves the ordering of UI interactions, and Yura-Scanner demonstrates how LLMs can support task-oriented scanning and form solving. SpiderSapien takes a complementary direction: it redesigns the black-box crawling loop around user-facing browser feedback. The resulting scanner combines framework-agnostic interactable element discovery, interaction ordering, and LLM-based form solving in a recurrent crawler. This combination allows SpiderSapien to discover new application states and reach in-depth functionality, especially in applications where later actions are only exposed after earlier interactions. In contrast, single-pass task-solving approaches such as YuraScanner can be limited when effective exploration requires repeatedly discovering, acting on, and revisiting newly

Figure

Fig. 1. The black-box crawling loop of SpiderSapien. Starting at a seed URL, we discover interactable elements on the page with user-facing signals from the browser. Our crawling strategy selects a valid client-side action to take, using high-level signals about elements. If a form is selected, form solving queries an LLM for appropriate input. Form inputs and other actions are executed on the web application.

exposed states (see Section C). Compared to both YuraScanner and EvoCrawl, our approach alone has general interactable element discovery regardless of client-side framework. We discuss in detail the differences between these systems throughout Sections III to VI. Our method provides a complementary building block to improve the performance of these and future work (see Section V-A).

Evaluation. We evaluate crawling performance on 9 open-source web applications compared to 6 black-box scanners. We select these web applications based on their popularity and inclusion in prior work (see Table VIII). While we characterize these as complex modern applications, arguably “classic” applications such as HotCRP are included. Yet, HotCRP is still far from solved (see Section IV-E).

Our approach increased average code coverage across applications by at least 46% over any other scanner, or 16% when compared to the union of all other scanners. Our approach also finds 32 XSS vulnerabilities across 7 of the 9 applications, while 29 are found by the other scanners in 3 applications. This breadth is important: while other scanners can find many vulnerabilities in one application, any individual scanner finds XSS in at most 2 applications, whereas SpiderSapien finds XSS across 7 applications.

We also perform additional evaluations investigating our scanner and its performance, by analyzing the application states it reaches, its client-side coverage, the non-semantic interactable elements it discovers, and removing components of it in two ablation studies.

Contributions. We offer the following contributions:

  • We develop a novel method that can drive black-box scanners to test deeper program states in modern web applications by using high-level feedback to generate valid client actions and inputs in Section III.
  • We implement our method into SpiderSapien, a fully black-box crawler and XSS scanner, using an LLM for form solving.
  • We evaluate our black-box scanning method as well as 6 others on 9 web applications in Section IV. SpiderSapien

finds 32 XSS vulnerabilities in 7 applications.

  • We analyze our findings and share insights for future works in Section V.

References (34)