Skip to content
Conference

Commit-Message-Augmented Static Analysis of Cross-Site Scripting Fixes in Java Web Applications

Jul 2026 · International Conference on Future Internet of Things and Cloud · pp. 236-243 · 0 citations · 31 references

Abstract

Cross-Site Scripting (XSS) remains a common and high-impact web vulnerability. Detecting XSS with high precision is difficult because exploitability depends on end-to-end data flow (sources, sanitizers, and sinks), framework-specific rendering semantics, and the correctness of context-aware output encoding. Although secure development lifecycles increasingly integrate static application security testing (SAST) into CI/CD pipelines, practical adoption is often limited by false positives and incomplete modeling of project-specific sanitization and templating behavior. In parallel, machine learning (ML) approaches show promise for learning vulnerability-relevant patterns from code, but they depend on the availability of realistic labeled data. This paper studies a low-cost repository-native signal that is routinely available but underused in ML-assisted static analysis: commit messages. We propose a mining and weak-labeling pipeline for Java repositories that identifies candidate XSS-fix commits using message heuristics grounded in OWASP guidance and CWE taxonomy, aligns commit messages with pre-/post-change code contexts extracted from diffs, and trains classifiers under two feature settings: (i) code-only and (ii) code+commit-message fusion. Across three model families (Random Forest, TextCNN, and BiLSTM), commit-message fusion consistently improves F1 and AUPRC and reduces false positives, suggesting that developer intent provides a useful auxiliary signal for security triage.

View source

Similar papers

Jul 2026

TraceCoder: Explainable and Auditable Code Generation with Position-Key Snippet Versioning

The proposed mechanism makes the internal narrative of automated code generation auditable and replayable, a property essential for trust and accountability in production deployments, a property essential for trust and accountability in production deployments.

Rwaida Alssadi, Muntaser M Syed, Balaji Kasula et al. · 0 citations
Jul 2026

SemaDiff: Identifying Semantic-Changing Commits with Generated Code and Tests

SemaDiff, a novel approach for identifying semantic-preserving commits through behaviour-based analysis, is proposed, and results show that SemaDiff distinguishes accurately semantic-preserving from -- changing commits in about 76% of the cases, with a 100% precision in semantic-changing commit detection.

Maha Ayub, Michael Konstantinou, Ahmed Khanfir et al. · 0 citations
Open access 2026

BSM: A Browser-Resident Framework for Real-Time Detection of JavaScript API Abuse and Prompt Injection Attacks

Browser Security Monitor (BSM), a browser-resident framework that instruments sensitive window object APIs to intercept and analyze dynamic JavaScript execution in real time, is presented, a precision-first, low-overhead client-side filter that complements rather than replaces server-side and model-internal defenses.

Sunil Kumar Vadlamani, Ajit Balaga, Sridhar Pavithrapu · 0 citations
Jul 2026

TaintRadar: Semantic-Aware Taint-Style Vulnerability Detection via Augmented Code Property Graphs

Despite significant advances, static vulnerability analysis suffers from three critical limitations: coarse sanitization modeling, which treats validation as a binary barrier; database blindness, which breaks taint tracking across persistence layers; and shallow object-oriented analysis, which misses field-level and in...

Elie Rizk, F. Hmida, Birhanu Eshete · 0 citations
Jul 2026

The Patchwork Problem in LLM-Generated Code

This paper formalizes structural coherence as consistency invariants over graph representations of repository artifacts, including import, call, dependency, configuration, schema, resource, control-flow, and routing graphs, and introduces an eight-category failure taxonomy distinguishing defects specific to LLM generat...

Viraaji Mothukuri, R. Parizi · 0 citations
Open access Aug 2026

From Logging Configuration to Code Execution: A Systematization of Log4j 2 File-Write Primitives in HTTP-Exposed JMX

This work distinguishes ActiveMQ paths from documentation-limited Apache James, WildFly, Apache Karaf, and Red Hat AMQ cases, and distinguishes ActiveMQ paths from documentation-limited Apache James, WildFly, Apache Karaf, and Red Hat AMQ cases.

A. Caciulescu, Matei Badanoiu, R. Rughiniș et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.