Jann Horn reported a MySQL injection vulnerability in lighttpd (a
lightweight webserver) version 1.4.34 (and earlier) through a
combination of two bugs:
- request_check_hostname is too lax: it allows any host names starting with [ipv6-address] followed by anything but a colon, for example:
GET /etc/passwd HTTP/1.1 Host: [::1]' UNION SELECT '/
- mod_mysql_vhost doesn't perform any quoting; it just replaces ? in the query string with the hostname.
mod_evhost and mod_simple_vhost are vulnerable in a limited way too; a pattern: evhost.path-pattern = "/var/www/%0/" with a host "/../../../" leads to document root of "/var/www//../../../", but as "/var/www/" usually doesn't exists this fails (this might depend on the operating system in use). If there exist directories like "/var/www/[...]" for IPv6 addresses as host names (or a user can create them) mod_evhost and mod_simple_vhost are vulnerable too.
- Upgrade to the latest version of lighttpd or disable mod_mysql_vhost.
- WordPress Plugin Allow PHP in Posts and Pages 'id' Parameter SQL Injection (2.0.0.RC1)
- WordPress Plugin WPML (WordPress Multilingual) Multiple Vulnerabilities (22.214.171.124)
- WordPress Plugin Welcart e-Commerce Multiple Vulnerabilities (1.3.12)
- WordPress Plugin Ninja Forms-The Easy and Powerful Forms Builder SQL Injection (2.9.29)
- WordPress Plugin Rockhoist Ratings SQL Injection (1.2.1)