The Quiz project takes security seriously. If you discover a security vulnerability in our codebase, please do not open a public GitHub issue. Instead, please report it responsibly to our security team.
-
Email: Send details to the project maintainers with subject line: "SECURITY: Quiz Vulnerability Report"
-
Include:
- Description of the vulnerability
- Steps to reproduce (if applicable)
- Affected version(s)
- Potential impact
- Suggested remediation (if available)
-
Timeline:
- We acknowledge receipt of your report within 48 hours
- We will investigate and provide updates every 7 days
- We will release patches as quickly as possible after confirming the vulnerability
Once we've patched the vulnerability:
- We'll contact you for permission before public disclosure
- We'll credit you in the release notes (unless you prefer anonymity)
- We'll follow a 90-day window from patch release for public disclosure
-
Keep Dependencies Updated: Regularly update Java and Maven
java -version # Ensure Java 11 or higher -
Secure File Storage: Quiz saves game state locally
- Ensure proper file permissions on quiz data files
- Do not share game state files containing sensitive information
-
Source Code: Always download from official GitHub repository
git clone https://github.com/club-mate/Quiz.git
-
Dependency Management
- Review
pom.xmlfor security vulnerabilities - Keep dependencies up to date
- Run
mvn dependency:checkregularly
- Review
-
Code Review
- All code changes require review before merging
- Security concerns should be addressed in PRs
-
Testing
- Write unit tests for security-sensitive code
- Use
mvn clean verifybefore submitting PRs
-
Input Validation
- Validate all user input
- Sanitize file paths to prevent directory traversal
- Validate JSON data when loading questions
-
Logging
- Do not log sensitive information
- Use proper logging levels (Log4j2)
- Keep logs accessible only to authorized personnel
-
Serialization
- Be cautious with Java object serialization
- Validate serialized data before deserialization
- Consider using JSON with Gson for safer serialization
The application currently stores quiz data in text/JSON files:
- Consideration: File permissions determine access control
- Mitigation: Set proper file permissions on game state and question files
- Future: Consider database encryption for sensitive data
Player scores and game state are saved locally:
- Consideration: Local file system access could expose game data
- Mitigation: Warn users about file permissions and local storage security
- Future: Add optional encryption for saved game data
The Swing application runs on the local machine:
- Consideration: Local clipboard and system access
- Mitigation: No sensitive data should be passed via clipboard
- Future: Consider adding data sanitization for clipboard operations
Questions are loaded from JSON files:
- Consideration: Malformed or malicious JSON could cause issues
- Mitigation: Proper error handling and JSON validation
- Future: Schema validation for question files
We provide security updates for the following versions:
| Version | Supported | Support Ends |
|---|---|---|
| 1.x | ✅ | Current |
| < 1.0 | ❌ | No support |
- Identification: Vulnerability is identified and confirmed
- Patching: Fix is developed and tested
- Release: New version is released with security patch
- Notification: Users are notified via GitHub releases
- Documentation: Security advisory is published
- Run only on trusted machines
- Use appropriate file permissions for game data
- Keep Java runtime updated
- Review question files before importing (if accepting external files)
- Follow the CONTRIBUTING.md guidelines
- Use secure coding practices
- Report security concerns responsibly
- Test your changes thoroughly
For security-related inquiries, contact the project maintainers through GitHub.
Thank you for helping keep the Quiz project secure!