github Loophole-LLC/Bastillion v6.0.5
6.0.5

one hour ago

Security

  • High: an open terminal kept working after its login was revoked, expired or logged out. The terminal WebSocket checked authentication only when it connected. After that it forwarded every keystroke to the SSH session and streamed its output back, even after a manager deleted the user, the session timed out, or the user logged out, and none of those closed the socket. A keystroke on an expired session also renewed the session timeout, so the browser's other pages started working again. Every message, the browser's heartbeat included, now repeats the connection-time check, and the output stream rechecks every 10 seconds. A terminal whose login is no longer valid is closed and its SSH sessions disconnected. Found by Liam Giannini (@Liam-G) (GHSA-29q2-xwmm-rg2c).

Changed

  • An idle terminal now closes when the session times out. Typing in a terminal still keeps the session alive, but a terminal left untouched for longer than sessionTimeout (15 minutes by default) is disconnected, the same as the rest of the web UI. Previously it stayed open indefinitely.

Documentation

  • Rotating the application key. The README now has step-by-step instructions for replacing the application key once systems are registered, on a schedule or after a suspected compromise, for both KEY_MANAGEMENT=manage and KEY_MANAGEMENT=append. The new key goes on every system before Bastillion switches to it, so Bastillion never loses access part-way through.

Dependencies

  • org.eclipse.jetty:jetty-server, jetty-security, org.eclipse.jetty.ee10:jetty-ee10-webapp and org.eclipse.jetty.ee10.websocket:jetty-ee10-websocket-jakarta-server 12.1.14 → 12.1.15
  • org.thymeleaf:thymeleaf 3.1.6 → 3.1.7
  • org.bouncycastle:bcprov-jdk18on 1.86 → 1.87
  • org.apache.commons:commons-lang3 3.21.0 → 3.22.0
  • bootstrap 5.3.8 → 5.3.9, jquery 4.0.0 → 4.1.0
  • Build only: exec-maven-plugin 3.6.4 → 3.7.0, github/codeql-action 4.39.3 → 4.39.4

Upgrade notes:

Upgrading from v4? v4 kept its H2 database inside the Jetty webapp, encrypted with that install's keystore, so 6.x cannot read it in place. Use the migration tool — you do not need to install 5.x first, you can import straight into 6.0.5:

# 1. export from the old v4 install (its WEB-INF/classes is the config dir)
./migrate.sh export /opt/Bastillion-jetty/jetty/bastillion/WEB-INF/classes/ ~/export.json

# 2. start 6.0.5 once against the new config dir, then stop it - creates schema + keystore
java -DCONFIG_DIR=/data/bastillion/ -jar bastillion-6.0.5.jar

# 3. import
./migrate.sh import /data/bastillion/ ~/export.json --yes-replace-all-data

# 4. the export holds plaintext secrets - delete it
rm ~/export.json

Users keep their existing passwords. Every column a v4 export carries still exists in the 6.0.0 schema, and the two columns 6.0.0 adds to those tables take their default or null. Full details in tools/migrate/README.md. bastillion-migrate-1.0.0.jar is attached to this release, and migrate.sh fetches it automatically, verifying its checksum.

Don't miss a new Bastillion release

NewReleases is sending notifications on new releases.