Deeps-2005/java-ssl-scanner
0
๐ SSL/HTTPS Vulnerability Scanner & Auto-Patcher
๐ Project Overview
This application is a comprehensive tool designed to enhance the security of Java applications by identifying and automatically patching common SSL/HTTPS vulnerabilities. It provides a user-friendly web interface for developers to analyze their code and apply security fixes effortlessly.
Key Features
- Multiple Input Methods: Analyze code by uploading single
.javafiles, pasting code directly into a text area, or uploading a.ziparchive containing multiple Java files. - Vulnerability Detection: Scans for a wide range of insecure practices, including:
- Improperly configured
X509TrustManagerandHostnameVerifier. - Use of weak or outdated TLS/SSL protocols (e.g., SSLv3, TLSv1.0).
- Inclusion of weak cipher suites.
- Hardcoded passwords and sensitive credentials.
- Insecure
SecureRandominstantiation. - Automated Patching: Offers an "Auto-Patch" feature that modifies the source code to apply security best practices, replacing insecure implementations with robust alternatives.
- Detailed Reporting: Provides clear, actionable reports for each detected vulnerability, including severity levels, detailed suggestions, and secure code examples.
๐ ๏ธ Tech Stack
- Frontend: A responsive web interface built with Streamlit.
- Backend: A robust API powered by FastAPI.
- Core Analyzer: A static analysis engine written in Java, utilizing the JavaParser library to inspect the Abstract Syntax Tree (AST) of the source code.
- Deployment: Containerized with Docker and designed for easy deployment on platforms like Hugging Face Spaces.
This project is intended for educational and illustrative purposes to demonstrate best practices in secure coding and automated code analysis.
