Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 185603 - kde-base/konqueror < 3.5.7-r2 URI address bar spoofing (CVE-2007-4224,CVE-2007-4225)
Summary: kde-base/konqueror < 3.5.7-r2 URI address bar spoofing (CVE-2007-4224,CVE-200...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo Security
URL: http://secunia.com/advisories/26091/
Whiteboard: A4 [noglsa] p-y
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-16 21:52 UTC by Pierre-Yves Rofes (RETIRED)
Modified: 2007-10-02 21:23 UTC (History)
2 users (show)

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


Attachments
konqueror-3.5.7-location.patch (konqueror-3.5.7-location.patch,467 bytes, patch)
2007-07-17 21:32 UTC, Marcus D. Hanwell (RETIRED)
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Pierre-Yves Rofes (RETIRED) gentoo-dev 2007-07-16 21:52:52 UTC
Robert Swiecki has reported a vulnerability in Konqueror, which can be exploited by malicious people to conduct spoofing attacks.

For more information:
SA26074 (http://secunia.com/advisories/26074) this is the same than the opera vuln.

The vulnerability is reported in version 3.5.7. Other versions may also be affected.

Solution:
Fixed in the SVN repository.
Comment 1 Pierre-Yves Rofes (RETIRED) gentoo-dev 2007-07-16 21:54:16 UTC
pulling in herd. Kde, please advise.
Comment 2 Marcus D. Hanwell (RETIRED) gentoo-dev 2007-07-17 21:32:52 UTC
Created attachment 125218 [details, diff]
konqueror-3.5.7-location.patch

Here is the patch - I think it will apply to all versions of konqueror. We are working to stabilise KDE 3.5.7 but it shouldn't be much trouble to patch 3.5.5 too in order to stabilise sooner.
Comment 3 Pierre-Yves Rofes (RETIRED) gentoo-dev 2007-07-19 08:27:12 UTC
ok, so how do you want to proceed? do you want to stabilize 3.5.7 or patch 3.5.5? from a security pov, this is not a critical vuln so if you're too busy to patch 3.5.5, I think we can wait for 3.5.7 to go stable.
Comment 4 Marcus D. Hanwell (RETIRED) gentoo-dev 2007-07-20 19:30:15 UTC
KDE 3.5.7 is very close to being ready to mark stable. I will apply the patch there and we will stabilise. Should be good to go over the weekend or early next week unless something crops up.
Comment 5 Marcus D. Hanwell (RETIRED) gentoo-dev 2007-07-20 19:56:02 UTC
kde-base/konqueror-3.5.7-r1 and kde-base/kdebase-3.5.7-r2 have the patch applied and should fix this issue. Please test and confirm - these will be stabilised with KDE 3.5.7.
Comment 6 Pierre-Yves Rofes (RETIRED) gentoo-dev 2007-07-21 10:01:10 UTC
Thanks Marcus.
Arches, please test and mark stable konqueror-3.5.7-r1.
Target keywords are: "alpha amd64 ia64 ppc ppc64 sparc x86 ~x86-fbsd"
Comment 7 Carsten Lohrke (RETIRED) gentoo-dev 2007-07-21 12:50:47 UTC
Um, no Pierre-Yves. This version definitely does not go stable now.
Comment 8 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2007-07-22 07:38:12 UTC
Waiting for 3.5.7 stable marking and CC'ing kde herd again.
Comment 9 Jonathan Smith (RETIRED) gentoo-dev 2007-08-07 17:21:16 UTC
There are actually two issues. This bug only seems (at the moment) to address the first. See http://seclists.org/fulldisclosure/2007/Aug/0085.html as a references.

The second issue (http://alt.swiecki.net/konq3.html) should be investigated. the author claims he can reproduce on 3.5.x, but i don't have anything after 3.4 with which to test and it doesn't seem to cause a problem on 3.4

By the way, I've requested CVEs for these issues. They should be assigned... soon?
Comment 10 Jonathan Smith (RETIRED) gentoo-dev 2007-08-08 18:03:21 UTC
Er, I got those backwards. The above patch tries to address the second, but not the first.
Comment 11 Jonathan Smith (RETIRED) gentoo-dev 2007-08-08 20:53:01 UTC
Status: Candidate
URL: http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-4224
Reference: FULLDISC:20070806 Konqueror: URL address bar spoofing vulnerabilities
Reference: URL:http://lists.grok.org.uk/pipermail/full-disclosure/2007-August/065101.html

KDE Konqueror 3.5.7 allows remote attackers to spoof the URL address
bar by calling setInterval with a small interval and changing the
window.location property.


======================================================
Name: CVE-2007-4225
Status: Candidate
URL: http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-4225
Reference: FULLDISC:20070806 Konqueror: URL address bar spoofing vulnerabilities
Reference: URL:http://lists.grok.org.uk/pipermail/full-disclosure/2007-August/065101.html

Visual truncation vulnerability in KDE Konqueror 3.5.7 allows remote
attackers to spoof the URL address bar via an http URI with a large
amount of whitespace in the user/password portion.
Comment 12 Aidan Thornton 2007-08-12 15:12:20 UTC
There are actually three distinct bugs:

1) Address bar URI spoofing using URLs containing spaces; the fake URI is after the spaces. Now fixed (by displaying the start of the URI and not the end).
2) URI spoofing using setInterval (http://alt.swiecki.net/konq2.html). Not fixed in Gentoo as far as I know. I assume http://websvn.kde.org/?view=rev&revision=698562 is intended to fix this.
3) URI spoofing via http URIs with a username containing lots of trailing spaces (http://alt.swiecki.net/konq3.html). Only works properly on versions of Konqueror that have the fix for (1). Not fixed as far as I know.
Comment 13 Pierre-Yves Rofes (RETIRED) gentoo-dev 2007-08-20 14:50:09 UTC
stabilization has been done with the others kde apps.
Time for glsa decision here. I tend to vote Yes.
Comment 14 Matt Fleming (RETIRED) gentoo-dev 2007-08-20 15:08:01 UTC
I vote YES too.
Comment 15 Wulf Krueger (RETIRED) gentoo-dev 2007-08-20 15:08:21 UTC
(In reply to comment #13)
> stabilization has been done with the others kde apps.
> Time for glsa decision here. I tend to vote Yes.

Sorry, Pierre-Yves, but comment #12 is basically correct. This issue is not yet completely resolved and upstream is still working on it. The attached patch is incomplete.

Please stand by.
Comment 16 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2007-08-20 18:56:18 UTC
Resetting status to upstream to get the remaining issues fixed.
Comment 17 Wulf Krueger (RETIRED) gentoo-dev 2007-09-12 23:41:03 UTC
Upstream has fixed this issue which is in turn fixed in the following package revisions:

kde-base/kdelibs-3.5.7-r3
kde-base/kdebase-3.5.7-r4
kde-base/konqueror-3.5.7-r3

These should be stabilised ASAP. cc'ing arch teams.
Comment 18 Markus Rothe (RETIRED) gentoo-dev 2007-09-13 11:40:13 UTC
ppc64 stable
Comment 19 Raúl Porcel (RETIRED) gentoo-dev 2007-09-13 14:47:40 UTC
alpha/ia64/x86 stable
Comment 20 Jeroen Roovers (RETIRED) gentoo-dev 2007-09-14 04:10:02 UTC
Stable for HPPA.
Comment 21 Wulf Krueger (RETIRED) gentoo-dev 2007-09-14 21:36:16 UTC
Marked stable on amd64.
Comment 22 Tobias Scherbaum (RETIRED) gentoo-dev 2007-09-17 17:18:35 UTC
ppc stable
Comment 23 Tiago Cunha (RETIRED) gentoo-dev 2007-09-26 03:51:16 UTC
kde-base/kdelibs-3.5.7-r3  USE="acl branding fam tiff -alsa -arts -avahi -cups -debug -doc -jpeg2k -kdeenablefinal (-kdehiddenvisibility) -kerberos -legacyssl -lua -openexr -spell -utempter -xinerama"

1. Emerges on SPARC.
2. No collisions.
3. Test phase disabled by the ebuild.

kde-base/kdebase-3.5.7-r4  USE="branding hal opengl pam -arts -cups -debug -ieee1394 (-java) -kdeenablefinal (-kdehiddenvisibility) -ldap (-lm_sensors) -logitech-mouse -openexr -samba -xcomposite -xinerama -xscreensaver"

1. Emerges on SPARC.
2. No collisions.
3. Test phase ok.

kde-base/konqueror-3.5.7-r3  USE="branding -arts -debug (-java) -kdeenablefinal (-kdehiddenvisibility) -xinerama"

1. Emerges on SPARC.
2. No collisions.
3. Test phase ok.
4. Works - also tested with the rdep: kde-base/konq-plugins.

Portage 2.1.3.9 (default-linux/sparc/sparc64/2007.0, gcc-4.1.2, glibc-2.5-r4, 2.6.22-gentoo-r5 sparc64)
=================================================================
System uname: 2.6.22-gentoo-r5 sparc64 sun4u
Timestamp of tree: Sat, 22 Sep 2007 08:20:01 +0000
app-shells/bash:     3.2_p17
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.7.9-r1, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="sparc"
CBUILD="sparc-unknown-linux-gnu"
CFLAGS="-O2 -mcpu=ultrasparc -pipe"
CHOST="sparc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/init.d /etc/pam.d /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -mcpu=ultrasparc -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="-k"
FEATURES="ccache collision-protect distlocks metadata-transfer parallel-fetch sandbox sfperms strict test unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="ftp://mirrors1.netvisao.pt/gentoo http://darkstar.ist.utl.pt/pub/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X acl bash-completion bitmap-fonts branding bzip2 cli cracklib crypt dbus dri fortran gdbm gif gnome gtk hal iconv ipv6 isdnlog jpeg midi mudflap ncurses nptl nptlonly offensive opengl openmp pam pcre perl png postgres ppds pppd python readline reflection session sparc spl ssl svg tcpd test tiff truetype truetype-fonts type1-fonts xml xorg xv zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="sunffb"
Unset:  CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 24 Raúl Porcel (RETIRED) gentoo-dev 2007-09-26 10:37:45 UTC
sparc stable, thanks Tiago
Comment 25 Pierre-Yves Rofes (RETIRED) gentoo-dev 2007-09-27 08:10:19 UTC
time to vote first. I tend to vote no.
Comment 26 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2007-09-27 21:13:54 UTC
I tend to vote NO.
Comment 27 Joshua Pettett 2007-09-28 21:14:53 UTC
Username shortening patch breaks kwallet compatibility for legitimate authentication URLs with long usernames (e.g. ftp://thisisalongusername@domain.dom).

Work around seems to be to remap username and password for abbreviated URL.  Still wouldn't work in some unusual cases, e.g.:

ftp://longusernameoneforsomeone@domain.dom
ftp://longusernametwoforsomeone@domain.dom
Comment 28 Raphael Marichez (Falco) (RETIRED) gentoo-dev 2007-10-02 21:23:50 UTC
I vote no too, very minor security impact. Closing with noglsa, feel free to reopen if you disagree.


Joshua: please file a new bug about a non-security regression bug.