Hello All!The next release of ngIRCd – a free, portable and lightweight Internet Relay Chat server for small or private networks – just landed: ngIRCd 29! 🎉
And the homepage at https://ngircd.barton.de got a makeover, too: it is a static site now, generated by Zola from Markdown sources, with restructured and updated content. It still works fine in text-mode browsers like lynx, and it is mirrored at https://ngircd.github.io. Its sources live in their own repository, https://github.com/ngircd/ngircd-web, so enhancements and fixes are welcome as pull requests there!
Almost 90 patches have accumulated since ngIRCd 28, and most of them fix bugs – quite a few of them security relevant: this release fixes a buffer overflow, several use-after-free crashes that clients can trigger, and a couple of issues which allowed bypassing authentication and revealing real hostnames of cloaked users.
Therefore all users of ngIRCd are advised to upgrade to ngIRCd 29!A word about how this release came about: most of the bugs fixed in ngIRCd 29 have been found – and most of the fixes written – while I was playing around with Claude Code, an AI coding assistant, on the ngIRCd code base. Every patch has been reviewed, tested, and understood by me, of course, and the commits say so with a "Co-authored-by" line.
This is also the reason for a new policy on AI tools and LLMs in the contribution guidelines, which moved from doc/Contributing.txt to CONTRIBUTING.md in the top level directory, where GitHub shows them when you open an issue or pull request: you may use AI tools, but you must review, understand, and test the result, and mention their use; bug reports must be verified by a human, and fully automated or unreviewed issues and pull requests may be closed without further notice. In addition, the new AGENTS.md file describes how to build and test ngIRCd and the conventions of the project for AI coding agents:
- https://github.com/ngircd/ngircd/blob/master/CONTRIBUTING.md - https://github.com/ngircd/ngircd/blob/master/AGENTS.mdYou can download ngIRCd 29 from the download section of the homepage at https://ngircd.barton.de. The primary download locations are:
- https://github.com/ngircd/ngircd/releases - https://ngircd.barton.de/pub/ngircd/ - Container images (amd64 and arm64): ghcr.io/ngircd/ngircd:29, see https://github.com/ngircd/ngircd/blob/master/doc/Container.mdPlease report any issues and glitches you find to the GitHub issue tracker (https://github.com/ngircd/ngircd/issues) and use the mailing list ([email protected]) and the #ngircd channel on IRC (irc://irc.barton.de/ngircd) for questions and discussions. Enhancements and additions to the documentation, manual pages and the homepage are welcome as well!
Thanks a lot to all contributors & testers – and especially to Vincent Caron and Alvar Penning for their patches, and to QiuYitai, a7u8, peter-pe, jj475s, and bludot for reporting issues!
And as usual: Happy IRC'ing! Alex What's ChangedThe following noteworthy changes are listed in the NEWS file (https://github.com/ngircd/ngircd/blob/master/NEWS):
- Security: This release fixes several issues that clients could
exploit, so updating is strongly recommended:
- CHARCONV (libiconv support, enabled by some distribution
packages): Fix a buffer overflow introduced in ngIRCd 22,
which every client using a character set like ISO-8859-1 could
trigger, even accidentally, by sending long non-ASCII
messages.
- Fix use-after-free crashes, for example when the login of a
client failed after the RequireAuthPing PONG, when a write
error closed its connection during JOIN, PART, KICK, or MODE
commands, or when sending WALLOPS or server notices to clients
not reading their data. Closes #344.
- Unregistered connections could send notices, bypassing the
server password, PAM, and K-Lines and G-Lines. And with PAM
enabled, clients could log in with another user name than the
authenticated one.
- WHO <mask> and some CloakHost settings revealed the real
hostnames of cloaked clients.
- Every channel member could override bans using INVITE, now
only channel owners, admins, operators, and half-ops can.
Masks with a backslash after a "*" never matched, so bans
could be evaded. And changes of the invite list of a local
("&") channel applied to the channels of the same name on
other servers, too.
- Clients could make the daemon busy-loop and flood the log by
opening many connections, when it ran out of file descriptors
or memory.
- SSL: A connection could stay open after a write error and send
pending data unencrypted.
- Hostnames from reverse DNS lookups with invalid characters,
like spaces, are never used now, even when the resolver
library doesn't reject them: the IP address is used instead.
- Channels with a key file can be restricted to the users listed in
it: a channel key of "?" can't be used to join them then. Closes
#350.
- MODE: Reject channel keys starting with a colon (":") or
containing a comma (","), which could never be used or were stored
differently on other servers, as well as empty ban, invite, and
exception masks, and masks containing spaces or starting with a
colon.
- WHOWAS: Return up to "count" entries for each given nickname, at
most 25 in total, with a penalty of 1 second like WHOIS.
- Delete empty channels when mode "P" is removed, which stayed
around forever before.
- DefaultChannelModes: Only modes without parameters are allowed
now, mode "N" as well. And the default modes are announced to the
other servers, so channels no longer get different modes on
different servers.
- Announce channel modes "N" and "r" in the ISUPPORT (005) numeric.
- contrib/ngircd.service is more restrictive now, among other things
it limits memory (96 MB) and tasks (64): big servers may need
more!
- Container images for amd64 and arm64 are now built for each
release and published on the GitHub Container Registry as
ghcr.io/ngircd/ngircd:<version> and :latest, and rebuilt weekly.
- Warn when the MOTD is longer than 32 KiB: it is sent in one go,
and clients were disconnected when the socket buffer of the
operating system was full, which happens soon on OpenBSD, for
example. See #328.
- Reloading the configuration is more robust: the current
configuration is kept when the file can't be read, pre-defined
channels no longer crash the daemon, and CloakHostSalt no longer
changes. Closes #347.
And the ChangeLog
(https://github.com/ngircd/ngircd/blob/master/ChangeLog) has even more
details and lists all the fixes, minor enhancements and tweaks – for
example updated documentation (like all options of the configure
script in INSTALL.md), more patterns in the Fail2Ban filter, updated
logcheck(8) rules, and many new tests.
All Git commits: https://github.com/ngircd/ngircd/compare/rel-28...rel-29
signature.asc
Description: PGP signature
_______________________________________________ ngIRCd Mailing List: [email protected] To unsubscribe send an email to [email protected]
