Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 172784 - XSS problem in UTF8 decoding in Qt
Summary: XSS problem in UTF8 decoding in Qt
Status: RESOLVED DUPLICATE of bug 172746
Alias: None
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Security
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-30 12:58 UTC by Caleb Tennis (RETIRED)
Modified: 2007-03-30 14:32 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Caleb Tennis (RETIRED) gentoo-dev 2007-03-30 12:58:04 UTC
From the kde-packager mailing list:

--------

Hi, 

this is a notice about a significant bug in the Qt (3.x and 4.x) UTF 8 
decoder, that in certain cases can lead to security vulnerabilies. It causes 
XSS errors at least in Konqueror, though any KDE application that deals with 
urls or paths from untrusted locations can be affected. 

The issue is that the UTF8 decoder incorrectly does not reject overlong 
sequences, which can cause "/../" injection or (in the case of konqueror) 
a "<script>" tag injection. 

The patch was embargoed, but it leaked recently into the qt snapshots and was 
also imported into qt-copy, so you can consider it public now. Originally 
Trolltech planned to disclose this with an Qt 3.3.9 release, but it seems 
they changed their mind. 

I'm also attaching a fix against KJS, which has a similar issue, but we don't 
know of a way to exploit this one. Please add both patches. 

The vulnerability was discovered and properly disclosed to KDE Security team 
by Andreas Nolden from extendedsecurity.de.

Thanks,
Dirk

----

Reproducible: Always

Steps to Reproduce:




This affects all versions of Qt in portage.  The follow revisions have been added with patches that fix the problem:

qt-3.3.8-r2
qt-4.2.3-r1

I am told that Trolltech will make an announcement Tuesday, April 3rd and possibly be releasing qt-3.3.9 that fixes the issue.  This *should* correlate to our qt-3.3.8-r2, so we may not need to bump, but I will find out after it's released.

Also, a patch was released for kdelibs which fixes an additional problem the found, but there is no known exploit for it.  This is fixed in "kde-base/kdelibs-3.5.6-r4"
Comment 1 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2007-03-30 14:32:47 UTC
Lets keep the original one with pathes.

*** This bug has been marked as a duplicate of bug 172746 ***