NewsCrawler.org

Fail2Install: system limits turned into pre-auth RCE in Drupal

Fail2Install: system limits turned into pre-auth RCE in Drupal
Image: Reddit

The authors at slcyber describe research into using system limits to get a pre-auth RCE[1] in Drupal. The Drupal bug turned out to be a duplicate of ANT-2026-GMRPK0BU, reported by Anthropic's OSS Scanner, but the authors still consider their method new. The issue affects Drupal 8.9, 9, 10 and 11 in four setups: Apache or PHP-FPM, each with PostgreSQL or MySQL.

The first lever is the per-process limit on open files (RLIMIT_NOFILE). When a process reaches it, creating a new file descriptor[2] fails with EMFILE, and if the application then falls back to a default configuration with authentication disabled, the protection is lost. The second lever is the database connection limit, max_connections. An installer script that treats a failed database connection as a sign the site is not installed can be made to start a new installation by exhausting those connections. This works most easily with Apache and PostgreSQL, while the five default PHP-FPM workers make it much harder.

The authors then looked at TCP TIME_WAIT[3] as a way around the PHP-FPM worker limit. Linux's default ephemeral port range is 32768–60999, which provides 28,232 ports.

Repository Drupal github.com

Drupal is an open source content management system (CMS) for building and running websites, written in PHP.

Stars: 4,304Forks: 1,980Updated:

Read the original slcyber.ioDiscussion

Sources

Published: First seen: Читать по-русски

Open as a page