---------------------------------------------------------------------- Bist Du interessiert an einem neuen Job in IT-Sicherheit? Secunia hat zwei freie Stellen als Junior und Senior Spezialist in IT- Sicherheit: http://secunia.com/secunia_vacancies/ ---------------------------------------------------------------------- TITLE: SqWebMail Attached File Script Insertion Vulnerability SECUNIA ADVISORY ID: SA16539 VERIFY ADVISORY: http://secunia.com/advisories/16539/ CRITICAL: Moderately critical IMPACT: Cross Site Scripting WHERE: >From remote SOFTWARE: SqWebMail 5.x http://secunia.com/product/4989/ SqWebMail 4.x http://secunia.com/product/3601/ SqWebMail 3.x http://secunia.com/product/2553/ DESCRIPTION: Secunia Research has discovered a vulnerability in SqWebMail, which can be exploited by malicious people to conduct script insertion attacks. The vulnerability is caused due to SqWebMail allowing attached files to be viewed in context of the SqWebMail server. This can be exploited to execute arbitrary script code in a user's browser session in context of the SqWebMail server when a user clicks "Display" on an attached file. Example Attack Scenario: 1) The user receives an email with an attachment called e.g. "image.jpg". 2) The user uses the SqWebMail "Display" feature to view the attached file. 3) This causes SqWebMail to output the contents of the attachment in context of the SqWebMail server. However, when SqWebMail outputs the file, the user-controlled "Content-Type" from the email is used, which causes the browser to e.g. treat the content as "text/html" thereby executing any included script code in context of the SqWebMail server. Successful exploitation allows a malicious person to perform the same actions as the user of the web mail account (e.g. sending or viewing emails). The vulnerability has been confirmed in version 5.0.4. Other versions may also be affected. SOLUTION: Don't "Display" or "Download" attached files. NOTE: The vendor does not acknowledge this as a vulnerability. However, the vendor has changed some functionality for all upcoming versions based on this report. SqWebMail version 5.0.4, snapshot builds from 23/08/2005 and later will include the user-controlled "Content-Type" field when showing attached files in emails. However, this does not prevent exploitation of the vulnerability. PROVIDED AND/OR DISCOVERED BY: Jakob Balle, Secunia Research. ORIGINAL ADVISORY: Secunia Research: http://secunia.com/secunia_research/2005-35/advisory/ OTHER REFERENCES: Vendor Response: http://marc.theaimsgroup.com/?l=courier-users&m=112488135424849&w=2 ---------------------------------------------------------------------- About: This Advisory was delivered by Secunia as a free service to help everybody keeping their systems up to date against the latest vulnerabilities. Subscribe: http://secunia.com/secunia_security_advisories/ Definitions: (Criticality, Where etc.) http://secunia.com/about_secunia_advisories/ Please Note: Secunia recommends that you verify all advisories you receive by clicking the link. Secunia NEVER sends attached files with advisories. Secunia does not advise people to install third party patches, only use those supplied by the vendor. ---------------------------------------------------------------------- Unsubscribe: Secunia Security Advisories http://secunia.com/sec_adv_unsubscribe/?email=packet%40packetstormsecurity.org ----------------------------------------------------------------------