Implementation Layered Mitigation Techniques for Unrestricted File Upload and Server-Side JavaScript Injection

  • Hasbullah S
  • Fauzan M
  • Andarsyah R
N/ACitations
Citations of this article
10Readers
Mendeley users who have this article in their library.

Abstract

The popularity of Node.js as a server-side application development platform has introduced new security challenges stemming from the dynamic features of JavaScript. Vulnerabilities such as Unrestricted File Upload (UFU) and Server-Side JavaScript Injection (SSJI) often arise from insecure input handling and over-reliance on third-party libraries. This research aims to design, implement, and evaluate a multi-layered security mitigation model for Node.js-based web applications built using the Express.js framework. A constructive research approach was employed, wherein hybrid security middleware was developed to enforce comprehensive validation. This middleware integrates content-based file type validation (magic numbers), file name sanitization to prevent path traversal, and malicious input pattern blocking to mitigate SSJI and prototype pollution. The effectiveness of the model was empirically evaluated within a controlled local testing environment using the Jest testing framework by comparing a vulnerable application against its secured counterpart. Test results demonstrate that the proposed mitigation model successfully blocked 100% of the tested attack scenarios, achieving 100% test code coverage on the core security logic. This research yields a practical solution capable of enhancing the resilience of Node.js applications against common attacks exploiting language-specific features

Cite

CITATION STYLE

APA

Hasbullah, S. A., Fauzan, M. N., & Andarsyah, R. (2026). Implementation Layered Mitigation Techniques for Unrestricted File Upload and Server-Side JavaScript Injection. Jurnal Sains, Nalar, Dan Aplikasi Teknologi Informasi, 5(1), 62–71. https://doi.org/10.20885/snati.v5.i1.42248

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