Finding Server-Side Endpoints with Static Analysis of Client-Side JavaScript

0Citations
Citations of this article
1Readers
Mendeley users who have this article in their library.
Get full text

Abstract

Determining server HTTP endpoints — essentially, revealing server’s attack surface — is a crucial step of every black-box web security scanner. An indispensable method of doing that is inferring server endpoints from client side, discovering what HTTP requests can be sent from client to server. This is easy for requests triggered by HTML markup elements, such as links and forms, but is difficult for requests sent by JavaScript. Existing approaches to determining requests sent from JavaScript are based on a technique known as dynamic crawling - automated interaction with web page elements using a headless browser. Dynamic crawling fails when the code that sends a request is impossible or very hard to trigger with interface interaction. We propose a different approach for finding HTTP requests sent by JS code, which uses static code analysis. While analyzing JavaScript statically is known to be hard and applying existing analyzers to real-world web pages usually does not work, we propose a new lightweight analysis algorithm that can work on pages of real websites, and can discover server endpoints that dynamic crawlers cannot. Evaluation results show that augmenting a black-box scanner with the proposed static analysis may significantly improve server-side endpoint coverage.

Cite

CITATION STYLE

APA

Sigalov, D., & Gamayunov, D. (2024). Finding Server-Side Endpoints with Static Analysis of Client-Side JavaScript. In Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics) (Vol. 14399 LNCS, pp. 442–458). Springer Science and Business Media Deutschland GmbH. https://doi.org/10.1007/978-3-031-54129-2_26

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free