IDEAS home Printed from https://ideas.repec.org/a/bjb/journl/v14y2025i5p203-208.html
   My bibliography  Save this article

Securing Web Applications Against SQL Injection and XSS Attacks

Author

Listed:
  • Chandrashekhar Moharir

    (Deputy General Manager HCL America Dallas, Texas, United States)

  • Shiva Kiran Lingishetty

    (Senior Solutions Architect Amdocs Alpharetta, Georgia, United States)

  • Arvind Kamboj

    (Department of Computer Science & Engineering, Shivalik College of Engineering, Dehradun)

Abstract

This paper presents a comprehensive approach to enhancing web application security by mitigating two of the most prevalent and dangerous threats: SQL Injection (SQLi) and Cross-Site Scripting (XSS) attacks. Traditional defense mechanisms such as Web Application Firewalls (WAFs) and rule-based filtering often fall short due to their static nature and limited adaptability to novel or obfuscated attack vectors. To address these shortcomings, the proposed methodology integrates machine learning-based models trained on diverse datasets to accurately detect and classify malicious inputs. Extensive experiments were conducted in both controlled and real-time environments, evaluating the system’s performance using key metrics including accuracy, precision, recall, and F1 score. The results demonstrate that the machine learning model significantly outperforms traditional methods, achieving a detection accuracy of 96.4%, with high precision and recall values, thus offering both effectiveness and efficiency. The system also exhibits scalability and adaptability, making it suitable for deployment in live web applications. This research highlights the critical role of intelligent, data-driven systems in modern cybersecurity frameworks and establishes a strong foundation for future work focused on developing proactive and resilient web application defenses.

Suggested Citation

  • Chandrashekhar Moharir & Shiva Kiran Lingishetty & Arvind Kamboj, 2025. "Securing Web Applications Against SQL Injection and XSS Attacks," International Journal of Latest Technology in Engineering, Management & Applied Science, International Journal of Latest Technology in Engineering, Management & Applied Science (IJLTEMAS), vol. 14(5), pages 203-208, May.
  • Handle: RePEc:bjb:journl:v:14:y:2025:i:5:p:203-208
    as

    Download full text from publisher

    File URL: https://www.ijltemas.in/DigitalLibrary/Vol.14Issue5/203-208.pdf
    Download Restriction: no

    File URL: https://www.ijltemas.in/papers/volume-14-issue-5/203-208.html
    Download Restriction: no
    ---><---

    More about this item

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:bjb:journl:v:14:y:2025:i:5:p:203-208. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Dr. Pawan Verma (email available below). General contact details of provider: https://www.ijltemas.in/ .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.