CVE-2006-2842

NUCLEI

SquirrelMail < 1.4.6 - Remote File Inclusion via Plugin Array Parameter

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 2 public exploits for CVE-2006-2842. PoCs published by brokejunker, karthi-the-hacker. A Nuclei detection template is also available.

AI-analyzed exploit summary This exploit leverages a local file inclusion vulnerability in SquirrelMail due to improper input sanitization. By manipulating the 'plugins[]' parameter in the redirect.php script, an attacker can include arbitrary local files, such as '/etc/passwd'.

Description

PHP remote file inclusion vulnerability in functions/plugin.php in SquirrelMail 1.4.6 and earlier, if register_globals is enabled and magic_quotes_gpc is disabled, allows remote attackers to execute arbitrary PHP code via a URL in the plugins array parameter. NOTE: this issue has been disputed by third parties, who state that Squirrelmail provides prominent warnings to the administrator when register_globals is enabled. Since the varieties of administrator negligence are uncountable, perhaps this type of issue should not be included in CVE. However, the original developer has posted a security advisory, so there might be relevant real-world environments under which this vulnerability is applicable

Exploits (2)

exploitdb WORKING POC VERIFIED
by brokejunker · textwebappsphp
https://www.exploit-db.com/exploits/27948

This exploit leverages a local file inclusion vulnerability in SquirrelMail due to improper input sanitization. By manipulating the 'plugins[]' parameter in the redirect.php script, an attacker can include arbitrary local files, such as '/etc/passwd'.

Classification
Working Poc 90%
Attack Type
Info Leak
Complexity
Trivial
Reliability
Reliable
Target: SquirrelMail (version not specified)
No auth needed
Prerequisites: Access to the target SquirrelMail installation
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec SCANNER 3 stars
by karthi-the-hacker · poc
https://github.com/karthi-the-hacker/CVE-2006-2842

This repository contains a Node.js-based scanner for CVE-2006-2842, a Local File Inclusion (LFI) vulnerability. The tool sends crafted HTTP requests to detect the vulnerability by attempting to read '/etc/passwd' via a null-byte termination attack.

Classification
Scanner 90%
Attack Type
Info Leak
Complexity
Trivial
Reliability
Reliable
Target: PHP applications using vulnerable path handling (e.g., certain versions of PHP with unsafe file inclusion)
No auth needed
Prerequisites: Target application must be vulnerable to LFI with null-byte termination
devstral-2 · analyzed Feb 18, 2026 Full analysis →

Nuclei Templates (1)

Squirrelmail <=1.4.6 - Local File Inclusion
HIGHby dhiyaneshDk
Shodan: http.title:"squirrelmail" || cpe:"cpe:2.3:a:squirrelmail:squirrelmail"
FOFA: title="squirrelmail"

References (20)

Core 20
Core References
Vendor Advisory vendor-advisory x_refsource_suse
http://www.novell.com/linux/security/advisories/2006_17_sr.html
Third Party Advisory vdb-entry x_refsource_vupen
http://www.vupen.com/english/advisories/2007/2732
Exploit vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/18231
Mailing List vendor-advisory x_refsource_apple
http://lists.apple.com/archives/security-announce//2007/Jul/msg00004.html
Third Party Advisory, VDB Entry mailing-list x_refsource_bugtraq
http://www.securityfocus.com/archive/1/435605/100/0/threaded
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/21262
Vendor Advisory vendor-advisory x_refsource_redhat
http://www.redhat.com/support/errata/RHSA-2006-0547.html
Patch, Vendor Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/20406
Third Party Advisory, VDB Entry vdb-entry x_refsource_sectrack
http://securitytracker.com/id?1016209
Third Party Advisory vdb-entry x_refsource_vupen
http://www.vupen.com/english/advisories/2006/2101
Vendor Advisory x_refsource_confirm
http://docs.info.apple.com/article.html?artnum=306172
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/21159
Third Party Advisory, VDB Entry vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/25159
Vendor Advisory vendor-advisory x_refsource_mandriva
http://www.mandriva.com/security/advisories?name=MDKSA-2006:101
Vendor Advisory vendor-advisory x_refsource_sgi
ftp://patches.sgi.com/support/free/security/advisories/20060703-01-U.asc
Third Party Advisory, VDB Entry vdb-entry signature x_refsource_oval
https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A11670
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/26235
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/20931

Scores

EPSS 0.0164
EPSS Percentile 82.4%

Details

Status published
Products (27)
squirrelmail/squirrelmail 1.0.4
squirrelmail/squirrelmail 1.0.5
squirrelmail/squirrelmail 1.2.0
squirrelmail/squirrelmail 1.2.1
squirrelmail/squirrelmail 1.2.2
squirrelmail/squirrelmail 1.2.3
squirrelmail/squirrelmail 1.2.4
squirrelmail/squirrelmail 1.2.5
squirrelmail/squirrelmail 1.2.6
squirrelmail/squirrelmail 1.2.7
... and 17 more
Published Jun 06, 2006
Tracked Since Feb 18, 2026