CVE-2006-0377 Medium severity

IMAP/SMTP Injection in SquirrelMail

IMAP/SMTP command injection vulnerability in SquirrelMail that allows bypassing application restrictions.

Original release date
February 2006
Discovered by
Vicente Aguilera Díaz
Severity
3 / 5 Scale 1–5
Affected product
SquirrelMail (IMAP up to 1.4.5, SMTP 1.2.7 and earlier)

Antecedentes

SquirrelMail is a PHP-based webmail package that includes native support for the IMAP and SMTP protocols. It is easy to install and offers the standard features of an email client.

Description

SquirrelMail does not properly validate commands and information sent to mail servers during normal use. An authenticated malicious user can inject arbitrary IMAP/SMTP commands through parameters such as mailbox (IMAP) or subject (SMTP), bypassing application restrictions and exploiting vulnerabilities in the mail servers.

Business impact

The injection allows for email relaying, sending spam, exploiting vulnerabilities in IMAP and SMTP servers, and bypassing application-layer restrictions.

Affected systems

IMAP injection: all versions prior to 1.4.6. SMTP injection: SquirrelMail 1.2.7 and earlier versions.

Solución

Remove the \r and \n characters from $mailbox in the sqimap_mailbox_select function. A patch is available in the manufacturer's notice.

Calendario de divulgación

Dec 2005 Vulnerability detected by Vicente Aguilera Díaz (Internet Security Auditors).
12 Jan 2006 Initial notification sent to the manufacturer.
19 Jan 2006 Fix in versions 1.4.6 and 1.5.1 of the repository.
15 Feb 2006 The manufacturer publishes the vulnerability in its security section.
25 Feb 2006 CVE-2006-0377 is updated.

References

Sobre Internet Security Auditors

Company based in Spain and Colombia, specializing in web application auditing, network security, penetration testing, and compliance implementation and assessment. Our clients include some of the largest finance, telecommunications, insurance, and ICT companies. A vendor-independent provider with in-depth experience since 2001. Our R&D efforts include vulnerability research, collaboration on open security projects, whitepapers, and participation in industry events.

Would you like us to review your product?

Contact us
Contact

Do you need a security audit?

Tell us about your situation and our team will get in touch with you to provide guidance or schedule a technical call.

Request information

We will contact you as soon as possible.
Global Presence

Our offices

Barcelona

C. Santander, 101. Building A-2
E-08030 Barcelona (Spain)

+34 93 305 13 18
Madrid

Arequipa St., 1
28043 Madrid (Spain)

+34 91 763 40 47
Bogotá

Transversal 22 # 98-82, Porta 100 Building, Office 1003
110221 Bogotá (Colombia)

+57 601 638 68 88
25
years of experience in cybersecurity
Contact us