paper-with-me

Papers

LLMs in Web Development: Evaluating LLM-Generated PHP Code Unveiling Vulnerabilities and Limitations

2024-04-21 · Rebeka Tóth, Tamas Bisztray, László Erdodi

This study evaluates the security of web application code generated by Large Language Models, analyzing 2,500 GPT-4 generated PHP websites. These were deployed in Docker containers and tested for vulnerabilities using a hybrid approach of Burp Suite active scanning, static analysis, and manual review. Our investigation focuses on identifying Insecure File Upload, SQL Injection, Stored XSS, and Reflected XSS in GPT-4 generated PHP code. This analysis highlights potential security risks and the implications of deploying such code in real-world scenarios. Overall, our analysis found 2,440 vulnerable parameters. According to Burp's Scan, 11.56% of the sites can be straight out compromised. Adding static scan results, 26% had at least one vulnerability that can be exploited through web interaction. Certain coding scenarios, like file upload functionality, are insecure 78% of the time, underscoring significant risks to software safety and security. To support further research, we have made the source codes and a detailed vulnerability record for each sample publicly available. This study emphasizes the crucial need for thorough testing and evaluation if generative AI technologies are used in software development.

📄 PDF Abstract BibTeX arXiv:2404.14459

Code (1)

beckyntosh/chatphp 공식 구현

Methods 이 논문이 사용한 방법론

Attention 설명 없음
Position-Wise Feed-Forward Layer 설명 없음
BPE Byte Pair Encoding, or BPE, is a subword segmentation algorithm that encodes rare and unknown words as sequences of subword units. The intuition is that various word…
Absolute Position Encodings Absolute Position Encodings are a type of position embeddings for [Transformer-based models] where positional encodings are…
Dropout Dropout is a regularization technique for neural networks that drops a unit (along with connections) at training time with a specified probability $p$ (a common value is…
Dense Connections Dense Connections, or Fully Connected Connections, are a type of layer in a deep neural network that use a linear operation where every input is connected to every output…
Label Smoothing Label Smoothing is a regularization technique that introduces noise for the labels. This accounts for the fact that datasets may have mistakes in them, so maximizing the…
Residual Connection 설명 없음

Similar Papers 제목 키워드 기반

Unseen Horizons: Unveiling the Real Capability of LLM Code Generation Beyond the Familiar

2024-12-11 · Yuanliang Zhang, Yifan Xie, Shanshan Li, Ke Liu 외

Recently, large language models (LLMs) have shown strong potential in code generation tasks. However, there are still gaps before they can be fully applied in actual software development processes. Accurately assessing t…

Code Generation

MiCEval: Unveiling Multimodal Chain of Thought's Quality via Image Description and Reasoning Steps

2024-10-18 · Xiongtao Zhou, Jie He, Lanyu Chen, Jingyu Li 외

Multimodal Chain of Thought (MCoT) is a popular prompting strategy for improving the performance of multimodal large language models (MLLMs) across a range of complex reasoning tasks. Despite its popularity, there is a n…

Image DescriptionInformativeness

COAST: Enhancing the Code Debugging Ability of LLMs through Communicative Agent Based Data Synthesis

2024-08-09 · Weiqing Yang, Hanbin Wang, Zhenghao Liu, Xinze Li 외

Code debugging is a vital stage of software development, essential for ensuring the reliability and performance of Large Language Models (LLMs) in the code generation task. Human debugging typically follows a multi-stage…

Code GenerationCode Repair

A System for Automated Unit Test Generation Using Large Language Models and Assessment of Generated Test Suites

2024-08-14 · Andrea Lops, Fedelucio Narducci, Azzurra Ragone, Michelantonio Trizio 외

Unit tests represent the most basic level of testing within the software testing lifecycle and are crucial to ensuring software correctness. Designing and creating unit tests is a costly and labor-intensive process that …

Code Generationsoftware testing

SafeGenBench: A Benchmark Framework for Security Vulnerability Detection in LLM-Generated Code

2025-06-06 · Xinghang Li, Jingzhe Ding, Chao Peng, Bing Zhao 외

The code generation capabilities of large language models(LLMs) have emerged as a critical dimension in evaluating their overall performance. However, prior research has largely overlooked the security risks inherent in …

Code GenerationVulnerability Detection