Skip to content

v1.5.1 - Security and Bug Fixes

Choose a tag to compare

@mdw19873 mdw19873 released this 08 Nov 18:58
· 91 commits to master since this release

What's New in v1.5.1

This is a security and bug fix release that hardens the plugin against potential vulnerabilities and fixes several resource management issues.

Security Improvements

  • Added HTTP response size limit (1MB) to prevent memory exhaustion from malicious GitHub API responses
  • Implemented runtime validation during response reading with abort on oversized responses
  • Fixed log injection vulnerability by removing user-controlled data from log output in version parsing
  • Added input validation helper validateDatabaseOperation(UUID) to prevent null pointer exceptions

Bug Fixes

  • Fixed resource leak in UpdateChecker.fetchLatestVersion() by using try-with-resources for BufferedReader (#10)
  • Fixed inverted assertions in concurrent access tests (#10)
  • Added explicit unknown subcommand handling with user feedback (#10)

Technical Changes

  • Database now uses FILE_LOCK=SOCKET to prevent data corruption from concurrent access
  • Improved error logging consistency for null UUIDs and uninitialized database connections
  • Refactored DatabaseManager to eliminate duplicated null checks
  • Added security-focused test cases for null input handling, large input handling, and malicious content parsing
  • Added test for parseVersionPart overflow handling

Breaking Changes

  • None in this release

Installation

Download StormtrooperX-1.5.1.jar and place it in your server's plugins folder.

First Time Installation

  1. Download the JAR file
  2. Place it in your server's plugins folder
  3. Restart your server
  4. Configure in plugins/StormtrooperX/config.yml

Upgrading from Previous Version

  1. Stop your server
  2. Replace the old JAR with the new one
  3. Start your server
  4. No configuration changes required

Compatibility

  • Minecraft: 1.13 - 1.21.x
  • Server Software: Spigot, Paper, Purpur, or any Spigot-based server
  • Java Version: 11+ (tested on Java 11, 17, and 21)

Known Issues

  • None at this time

Full Changelog

Full Changelog: v1.5.0...v1.5.1

Support

If you encounter any issues:

Links


Thanks for using StormtrooperX!