Friday, July 14, 2006

MoBB #14: Konqueror replaceChild()

The following bug was tested on KDE 3.5.1 on a current Gentoo Linux system. Calling the replaceChild() method on almost any DOM element can result in a NULL dereference.

document.replaceChild(0);

Demonstration

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1231504512 (LWP 11418)]
0xb6552ca0 in DOM::Node::replaceChild () from /usr/kde/3.5/lib/libkhtml.so.4
(gdb) display /i $pc
1: x/i $pc 0xb6552ca0 <_ZN3DOM4Node12replaceChildERKS0_S2_+110>: testb $0x8,0x22(%edx)
(gdb) i r $edx
edx 0x0 0

This bug will be added to the OSVDB:
KDE Konqueror replaceChild() NULL Dereference

16 Comments:

At 12:36 AM, Blogger Martijn said...

Did you mention it to them?
In their bug filing database?
http://bugs.kde.org/

 
At 2:04 AM, Anonymous Anonymous said...

It's already fixed.
http://websvn.kde.org/?rev=562182&view=rev.

 
At 2:30 PM, Anonymous Anonymous said...

hdm can you tell us how many bugs that you have of each of the top 4 browsers ie/firefox/safari/opera/ on a fully patched os

 
At 2:34 PM, Blogger hdm said...

Not yet. Still finishing up a few tools, I don't know the final bug count yet :-)

 
At 4:22 PM, Anonymous Anonymous said...

is this site only about crashes?
of cause crash are important (kind of)
but "stupid" browser bug would be funnier

like var a = 2+2 and it would say a is 3
I dont know any bug like that
but it would be funny =)

 
At 4:24 PM, Blogger hdm said...

Crashes, code execution, file access, generally security related browser issues :-)

 
At 4:47 PM, Anonymous Anonymous said...

do you have any ie7 exploits?

 
At 5:13 PM, Anonymous Anonymous said...

It doesn't crash Safari, which is based on Konqueror.

 
At 5:43 PM, Anonymous Anonymous said...

"It doesn't crash Safari, which is based on Konqueror."

Safari & Konqueror both utilise KHTML afaik, apart from that it's understandable that they'd use different elements in their construction, hence you cannot expect Konqueror bugs to affect Safari, and vice-versa (Check out the Safari bug from earlier on in the month, doesn't do diddly squat on Konqueror :) )

And most importantly, i'm not biting your head off, just correcting. I don't like it that the correction's this long, but... well, meh!

Anyway, keep up the good work hdm! This is not only amusing but valuable information :)

 
At 7:40 PM, Anonymous Anonymous said...

hdm ever thought of a YoBB? LOL, You really should keep this going

 
At 2:59 AM, Blogger MakoMK said...

Still works in KDE 3.5.3 (last released version - and there probably won't be another release for quite a while).

Mind you, it's not as though Konqueror suffers from a shortage of crash bugs - it's the more serious security holes
that it's short on...

Actually, this isn't as bad as the last Konqueror crash bug I heard of (which I saw on their Bugzilla) - it looks easy to fix, and it's unlikely that some website will accidentally trigger it.

 
At 3:34 AM, Blogger Thomas Zander said...

I think you should strive to post only bugs affecting the latest release.
I can not reproduce the crash with KDE3.5.3

 
At 2:35 PM, Anonymous kobalt said...

i use KDE 3.5.3 and the bug crashes my Konqueror 3.5.3.

does the KDEteam know this bug?

 
At 7:05 AM, Anonymous Anonymous said...

https://bugs.kde.org/show_bug.cgi?id=130819

 
At 8:55 AM, Anonymous Daniel Mewes said...

Also doesn't work with Konqueror/KDE 3.3.2

 
At 7:14 AM, Anonymous joachim said...

Mandriva Linux updated their packages.

 

Post a Comment

Links to this post:

Create a Link

<< Home