The document presents a study on web security vulnerabilities, focusing on SQL injection and XSS, by analyzing source code and security patches of widely used web applications. It highlights the critical need for understanding software faults to reduce vulnerabilities and improve security mechanisms, suggesting that the knowledge gained can be instrumental for training developers and enhancing security practices. The proposed methodology aims to identify common coding mistakes, enabling better prioritization in addressing vulnerabilities based on their relevance to attackers.