Automated Threat Modeling

Overview of ProFTPD CVE-2026-143862: An Improper Authentication Flaw in mod_auth with Public PoC

A summary of CVE-2026-143862, an improper authentication flaw in ProFTPD's mod_auth that lets a denied passwordless TLS session stay authenticated, with patch and detection notes.

CVE Analysis

11 min read

Gaurav Sarraf
Gaurav Sarraf

2026-12-03

Overview of ProFTPD CVE-2026-143862: An Improper Authentication Flaw in mod_auth with Public PoC

Introduction

A denied login that keeps working is an awkward kind of security bug, and that is what CVE-2026-143862 produces in ProFTPD. When passwordless TLS certificate authentication is combined with a module such as mod_ban or mod_wrap that rejects a login with a 530 reply but leaves the session open, the server can keep treating that session as authenticated, skipping the privilege drop and chroot setup that normally confine it.

ProFTPD is a configurable FTP daemon for Unix and similar operating systems, released under GPLv2, that supports modular authentication, virtual users, access controls, and chroot based sessions. Service providers use it to give customers access to website files without shell accounts, and Belgium's Centre for Cybersecurity describes it as widely used. That shared hosting and tenant isolation role is why this authentication flaw matters.

Technical Information

The vulnerable code lives in auth_user() in modules/mod_auth.c, the handler for the FTP USER command. ProFTPD calls pr_auth_requires_pass() to decide whether a password is required. A typical case where it returns FALSE is passwordless certificate authentication via mod_tls, enabled through AllowDotLogin or TLSUserName. When no password is required, mod_auth does not wait for the client to send PASS. Instead it builds a fake PASS command and runs it through the normal command pipeline with pr_cmd_dispatch(), which lets other modules hook that pipeline and reject the login through access control or ban checks.

Root cause

Before the fix, auth_user() did three things before it even called pr_cmd_dispatch():

  1. It wrote an authenticated config parameter set to TRUE into the server's configuration.
  2. It set authenticated_without_pass = TRUE.
  3. It logged Authenticated without password.

It then dispatched the fake PASS and ignored the return value. If another module rejected the login, the authenticated marker stayed in place, and the session could still be treated as logged in. That is the CWE-287 improper authentication condition.

The practical consequence is that when a PRE_CMD(PASS) handler aborts the synthetic PASS with a 530 but does not disconnect, which is exactly what mod_ban does for a banned user and mod_wrap does for a hosts.deny host, the CMD phase never runs. That means the setuid/setgid privilege drop and the DefaultRoot/chroot setup in setup_env() never execute, yet the authenticated record is never reset. The session then runs as the daemon's root identity, outside any jail, with the per command gate open and session.user still NULL.

Attack flow

In the configuration the reporter demonstrated, the attack proceeds as follows:

  1. The attacker completes AUTH TLS presenting a client certificate trusted by the server's client CA. With TLSUserName, any CA signed certificate carrying the mapped CN is accepted, with no per user .tlslogin registration required; with AllowDotLogin, the certificate must be registered in the target account's .tlslogin file. A certificate from an untrusted CA fails during the TLS handshake.
  2. The attacker sends USER <name> with no PASS. On a normal passwordless login this returns 232 User ... logged in, confirming the passwordless path.
  3. When the session is subject to a ban or host denial, the synthetic PASS is aborted by the denier (for example ban_pre_pass), and USER <name> returns 530 Login incorrect. The command gate is now open, though, because the authenticated marker was recorded before dispatch and never reset.
  4. Because setup_env() never ran, PWD returns 257 "" with an empty working directory, and CWD /, CWD /etc, and CWD /root return 250, demonstrating that the chroot was never applied.
  5. Running as root, STAT /root, STAT /etc/shadow, and SIZE /etc/shadow succeed; RETR /etc/shadow over a PROT P data channel returns 226 (arbitrary read as root); and MKD /root/.ssh plus STOR /root/.ssh/authorized_keys return 226 with files written as root:root (arbitrary write as root).

The demonstrated impact includes disclosure of credentials and other tenants' data, modification of host files, and root code execution. The reporter also found that AllowOverwrite off did not prevent compromise, because creating new files and other file operations remained possible.

Proof of Concept

A working, end to end public PoC exists and is corroborated across multiple sources. NVD and VulDB both state the exploit has been made public and classify exploit maturity as Proof of Concept, with the downloadable archive hosted at https://poc.singto.io/proftpd-pf2-poc.tar.gz. The original researcher advisory (Jelle Janssens / EverydaySparkling) provides a live verified reproduction and links the same archive, and the upstream fix commit independently confirms the defect.

The lab was built with mod_sftp mod_tls mod_ban, DefaultRoot ~ftptest, User root, TLSVerifyClient on, passwordless auth via AllowDotLogin/TLSUserName, and BanOnEvent LoginRate 2/00:30:00 00:30:00 to self induce a ban. The verified reproduction ran as follows:

  1. AUTH TLS presenting the client certificate, then USER ftptest with no PASS, returning 232 User ftptest logged in (confirms the passwordless path).
  2. Repeated logins trip the LoginRate ban; in a banned session USER ftptest returns 530 Login incorrect (synthetic PASS aborted by ban_pre_pass), but the command gate is open: PWD returns 257 "" (empty cwd, because setup_env never ran), and CWD /, CWD /etc, and CWD /root return 250 (chroot never applied, jail escaped).
  3. STAT /root, STAT /etc/shadow, and SIZE /etc/shadow succeed; over a PROT P data channel RETR /etc/shadow returns 226 (arbitrary read as root); MKD /root/.ssh plus STOR /root/.ssh/authorized_keys return 226, written root:root (arbitrary write as root).
  4. Capstone RCE: STOR /etc/cron.d/<name> with a cron line results in cron executing as root and a uid=0(root) reverse shell caught on a localhost listener. With AllowOverwrite off, the advisory notes that new file writes to /etc/cron.d/*, /etc/sudoers.d/*, systemd units, or /etc/profile.d/*.sh need no overwrite.

The downloadable archive reportedly contains scripts for the session transition, the CWD chroot escape probe, RETR/STOR as root, and the cron to reverse shell capstone, all against localhost. The archive itself is a binary payload and was not unpacked or executed for this assessment, which rests on the published, live verified reproduction and the corroborating patch, NVD, and VulDB references. The advisory predates CVE assignment and frames severity up to Critical with an RCE chain, while NVD and VulDB catalog it with lower CVSS scores (CVSS 3.x 8.3; CVSS 4.0 approximately 6.9); both identify the identical patch commit.

Patch Information

ProFTPD maintainer TJ Saunders fixed this in commit 04f1ac85bef8ee0cae4cdbe915c7278b451f11c8, committed on 2026-11-08. The commit is GPG verified. NVD and VulDB list it as the patch and name ProFTPD 1.3.10rc6 as the fixed version. The v1.3.10rc6 pre release was published on GitHub on 2026-11-19, built from master. The commit changes a single file, modules/mod_auth.c, with 19 additions and 7 deletions. The 1.3.10rc6 RELEASE_NOTES do not mention this fix, so verify by version or by the commit rather than relying on the changelog. The commit message states the fix closes a case where password less logins could be rejected by other modules and mod_auth was not properly watching for such rejections. Jelle Janssens reported it.

The patch reorders the logic so success is recorded only after a confirmed dispatch:

- c = add_config_param_set(&cmd->server->conf, "authenticated", 1, NULL); - c->argv[0] = pcalloc(c->pool, sizeof(unsigned char)); - *((unsigned char *) c->argv[0]) = TRUE; - + /* We have to set this here, before dispatching our fake PASS cmd, as + * it is examined/used during setup_env(). Just make sure to clear it + * afterward. + */ authenticated_without_pass = TRUE; - pr_log_auth(PR_LOG_NOTICE, "USER %s: Authenticated without password", user); - pr_cmd_dispatch(fakecmd); + if (pr_cmd_dispatch(fakecmd) == 1 && + session.user != NULL) { + c = add_config_param_set(&cmd->server->conf, "authenticated", 1, NULL); + c->argv[0] = pcalloc(c->pool, sizeof(unsigned char)); + *((unsigned char *) c->argv[0]) = TRUE; + + pr_log_auth(PR_LOG_NOTICE, "USER %s: Authenticated without password", + user); + + } else { + reset_authenticated_without_pass(cmd); + }

Three points about the new logic:

  • The authenticated marker is now written only if pr_cmd_dispatch(fakecmd) returns 1 (the whole PASS handler chain succeeded) and session.user is non NULL (a user session was actually set up). If another module vetoes the fake PASS, the first check fails; if the chain returns without building a session, the second check catches it.
  • authenticated_without_pass is still set before the dispatch because setup_env() reads it while the login is processed, as the new code comment explains. If the login fails, reset_authenticated_without_pass(cmd) clears that state, so a rejected login leaves no authentication markers behind.
  • The Authenticated without password auth log notice is now written only after a successful login, where before it was logged even when the login was then rejected.

The reporter also identifies commit 684bb161c8f5e9159e8ca51eaf2ae49f8dea4c21 as the backport for the 1.3.9 stable branch. Any release built with commit 04f1ac85 (1.3.10rc6 and later on the 1.3.10 line) contains the fix.

Detection Methods

There are no public YARA, Sigma, Snort, or Suricata signatures for CVE-2026-143862. NVD links a VulDB CTI page, but its indicator data is restricted. Detection depends on knowing whether a server can be exploited, spotting the unusual sequence of FTP replies the bug produces, and catching root owned files the exploit leaves on the host.

Exposure triage

The flaw only appears when two features run together, so start with configuration. First, mod_tls must allow login without a password through AllowDotLogin or TLSUserName; without one of these the vulnerable code path is never taken. Second, a module that rejects PASS without disconnecting must be present, namely mod_ban (banned user or host) or mod_wrap (host listed in hosts.deny); both send 530 and keep the session open. Any host with both is worth hunting on. The vulnerable code is present in every release from 1.3.5a through 1.3.10rc5, so check the source directly. In auth_user(), a build is exposed if the following check is missing before the authenticated flag is set:

if (pr_cmd_dispatch(fakecmd) == 1 && session.user != NULL) {

Protocol indicator

The clearest sign is a contradiction inside one session: the server rejects the login, then runs commands anyway. After an AUTH TLS plus USER <name> with no PASS, a normal passwordless login replies 232, but the exploit yields 530 Login incorrect. After that 530, commands still succeed: PWD returns 257 "" with an empty directory (a real login returns 257 "/", so an empty PWD reply is a strong indicator), and CWD /, CWD /etc, and CWD /root return 250 despite a DefaultRoot jail. STAT /root, STAT /etc/shadow, and SIZE /etc/shadow succeed, and data transfers such as RETR /etc/shadow, MKD /root/.ssh, and STOR /root/.ssh/authorized_keys all succeed. The practical rule: any command other than USER, PASS, AUTH, or QUIT that succeeds after a 530 Login incorrect in the same session is suspicious. Because these commands travel over FTPS, network sensors usually cannot read them, so build this check on ProFTPD's own per command logging with each session's commands and reply codes kept in order.

Log correlation

In vulnerable builds, pr_log_auth(PR_LOG_NOTICE, "USER %s: Authenticated without password", user) is written before the internal PASS is sent, so it is logged even when mod_ban or mod_wrap then rejects the login. Patched builds only write the message after a successful login. On an unpatched server, look for the same session or source showing Authenticated without password together with a ban or wrap denial or a 530. The researcher also noted that mod_tls logs .tlslogin check successful on the AllowDotLogin path, which helps confirm a certificate login was attempted. A banned or denied client that keeps sending commands after its ban should be investigated.

Host signs

The exploit runs as root outside any chroot, so watch for files created or changed by the ProFTPD process in sensitive locations: /root/.ssh/authorized_keys (the lab file was owned by root:root), new files in /etc/cron.d/ (the lab's route to a root reverse shell), and /etc/sudoers.d/*, systemd unit files, and /etc/profile.d/*.sh. The default AllowOverwrite off setting does not stop this; the researcher showed workarounds using DELE then STOR, RNFR/RNTO then STOR, or writing a brand new file. File integrity monitoring should alert on file creation and renames in these directories, not only on changes to existing files. Reads of /etc/shadow or other users' data by the FTP service, and new root processes started by cron soon after an FTPS session, should also be correlated.

Controlled probe

An authorized tester can check a server safely with the same steps: use a trusted client certificate, trigger a ban on a test account (the lab used BanOnEvent LoginRate), then send USER followed by PWD. A vulnerable server returns 530 for the login and then 257 "" for PWD. The researcher reported that a patched server returns 530 for USER, PWD, and STAT alike.

Affected Systems and Versions

The vulnerable mechanism is source confirmed in every release from ProFTPD 1.3.5a through 1.3.10rc5, with the vulnerable code present in the repository's 2013 import. NVD describes affected versions as ProFTPD through 1.3.10rc5. The reporter notes that 1.3.8 and earlier are at end of life and remain affected. There is a naming discrepancy worth care: the report labels its vulnerable development build 1.3.10rc6 at revision a04f7d6c, while NVD identifies the released 1.3.10rc6 as fixed, so the development version label should not be treated as proof that the final 1.3.10rc6 release is vulnerable. The explicit patch revision 04f1ac85bef8ee0cae4cdbe915c7278b451f11c8 is the clearest common remediation identifier. Older releases were source checked rather than tested at runtime, and the exact original introducing revision is not established.

Exploitation requires a specific configuration: passwordless authentication through mod_tls using AllowDotLogin or TLSUserName, a PRE_CMD(PASS) handler such as mod_ban or mod_wrap that denies the login with a 530 without disconnecting, and a client presenting a certificate trusted by the server's client CA. In the demonstrated impact chain the daemon ran with User root. This is a configuration dependent issue, not a demonstrated universal bypass of every ProFTPD deployment.

Vendor Security History

ProFTPD has prior privilege and access control issues on record. CVE-2024-48651, documented by Belgium's Centre for Cybersecurity, involved incorrect supplemental group handling that could grant unintended access associated with GID 0. Separately, CISA lists CVE-2015-3306, an improper access control issue allowing arbitrary file reads and writes through copy commands, in its Known Exploited Vulnerabilities catalog. These show prior privilege and access control problems but are not evidence that CVE-2026-143862 has been exploited. For this vulnerability, the upstream commit credits Jelle Janssens and acknowledges the authentication rejection handling defect, supporting a prompt response to this report.

References

Detect & fix
what others miss

Works with
  • GitHub
  • GitLab
  • Bitbucket
  • Azure DevOps Services
  • Gerrit
  • CVS
  • Jira
  • Linear
  • Slack
  • Security Compass
Explore integrations
Security magnifying glass visualization