Skip to content

ocservice v1.3.0

Latest

Choose a tag to compare

@Ilyntiy Ilyntiy released this 08 Oct 14:09
v1.3.0
6db32bd

ocservice v1.3.0 — security release

Upgrading is recommended for everyone. Earlier versions installed sudo rules that let the admin account obtain a root shell without a password.

Security

  • Removed passwordless journalctl — its pager could spawn a root shell. Logs are now read through systemd-journal group membership.
  • Removed passwordless ocpasswd with arbitrary arguments — it could write any file as root.
  • occtl is limited to the exact subcommands ocservice uses and always runs with -n (no pager).
  • ocserv.conf is edited with sudoedit and asks for your password. sudo nano allowed a root shell.
  • sudo rules run as (root) only, with absolute paths resolved at install time.
  • The installer refuses to grant sudo on binaries in a user-writable path, such as ocserv built into ~/ocserv.
  • The password file must live in a directory of its own. Earlier versions gave the admin ownership of the directory holding ocserv.conf.
  • Client private keys are deleted after the .p12 export; leftover keys can be removed during the upgrade.
  • .p12 passwords no longer appear in the process list; .p12 files are mode 600 in a 700 directory.
  • Server certificates issued by the same easy-rsa are no longer listed in User Management Center and cannot be revoked from it.
  • The installer checks that crl points to easy-rsa's pki/crl.pem — otherwise deleted users could still connect.

New

  • CRL expiry in the status block, with a renewal hint.
  • Deleting a user reloads ocserv, so the new CRL applies immediately, and kicks the user if online.
  • Auth mode, ocserv.conf path and ocserv prefix are detected automatically; distribution packages (/usr) are supported.
  • IPv6 client addresses in User Management Center.
  • sudo-rs support (default since Ubuntu 25.10).

Fixes

  • The installer silently exited when camouflage was disabled.
  • Ctrl+C in the log view closed the whole menu.
  • Scripts are executable in git — no chmod +x needed.
  • The install directory is created by the admin user, not root.
  • The PKCS#12 -legacy flag is used only with OpenSSL 3+.
  • ocservice.conf is regenerated with every parameter documented; the previous file is kept as .bak.
  • user-history.log moved from the ocserv prefix to the install directory.

Upgrading from 1.2.x

git pull
sudo ./install.sh

The installer stops with instructions if your layout is unsafe — see From 1.2.x. Log out and back in once for systemd-journal membership to apply.

Tested on Ubuntu 26.04 LTS (sudo-rs), ocserv 1.5.0, easy-rsa 3.2.7.