Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 100519
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Security <security@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Wernfried Haas <amne@gentoo.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:
Flags: Requestee:
 
 
  ()

Filename Description Type Creator Created Size Actions
w00t.c centericq PoC "exploit" text/plain Stefan Cornelius (RETIRED) 2005-07-28 11:55 0000 809 bytes Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 100519 depends on: 114038 Show dependency tree
Bug 100519 blocks:

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2005-07-27 14:42 0000
Centericq segfaults under certain circumstances. I've tracked them down to
some,
but i'm not sure how easy it is to reproduce the crash.

1. centericq must be running and connected to some icq server (Server :
login.icq.com:5190 here)
2. There should be direct connection to the internet (not behind a
router/masquerading). Not sure exactly when it (doesn't) work, but centericq
opens a port for icq messages.
3. Find port with netstat -tlp |grep centericq - let's say it's 38096 in this
example.
4. Start nessus on same box or somewhere on the lan (haven't tried it from a
completely different host on the internet)
5. Use a port range that is the port -1 until the port +1 (in this case 38095
to
38097). Check nmap scan in Scan options. The port range may also be bigger than
that, but selecting only the port doesn't seem to work. This may be more a
problem with the way nessus works though.
6. Check Plugins -> Service detection -> Services. No other plugins necessary.
7. Nessus does some probes, centericq segfaults.

I hope someone can reproduce the problem, if you're not able to you can also
ping me on irc.

------- Comment #1 From Wernfried Haas 2005-07-27 15:24:07 0000 -------
DerCorny just found out the option "Enable peer-to-peer communications" needs
to
be set to yes for the listening port to appear. It seems to be set to no by
default. We've been able to verify the Segfault on his box.

------- Comment #2 From Stefan Cornelius (RETIRED) 2005-07-28 11:55:25 0000 -------
Created an attachment (id=64566) [details]
centericq PoC "exploit"

------- Comment #3 From Stefan Cornelius (RETIRED) 2005-07-28 11:58:26 0000 -------
well yeah, check my dirty attachment. sends nothing but 0x01 to centericq and
crashes it. i had not enough time to find out where exactly it crashes, but i
guess during Client::ParseCh2 in Client.cpp of the icq2000-lib, but i'm not sure.

------- Comment #4 From Wernfried Haas 2005-08-26 15:39:41 0000 -------
This has been around for a month now, any activity on this? If not, what about
just reporting it upstream so they can fix it?

------- Comment #5 From Sune Kloppenborg Jeppesen 2005-09-08 23:24:08 0000 -------
Auditors you want to check on this or should we CC upstream?  

------- Comment #6 From Tavis Ormandy (RETIRED) 2005-09-19 05:45:15 0000 -------
Rob confirms this, moving into vulnerabilities.

------- Comment #7 From Thierry Carrez (RETIRED) 2005-09-20 00:54:17 0000 -------
Someone volunteers to push it upstream ?

------- Comment #8 From Thierry Carrez (RETIRED) 2005-09-27 07:28:52 0000 -------
Mail sent to upstream.

------- Comment #9 From Thierry Carrez (RETIRED) 2005-10-04 05:50:25 0000 -------
No news, Wolfram, could you check with your upstream friends what they are up
to ?

------- Comment #10 From Wolfram Schlich 2005-10-06 03:11:34 0000 -------
the only reaction from thekonst so far:

"I am on business trip in California now"
"actually, I don't even know what crash it is about"

I know it's not our job, but can someone here produce
a patch that we can send him? I fear otherwise nothing
will happen soon... :-(

------- Comment #11 From Sune Kloppenborg Jeppesen 2005-10-06 03:19:39 0000 -------
Tigger/Taviso/Vapier/Solar will you patch or recommend a mask? 

------- Comment #12 From Thierry Carrez (RETIRED) 2005-10-07 01:08:04 0000 -------
centericq probably misses several sanity checks on that connection, so it's
more
a rewrite than a patch. If upstream fails to see the need, we should probably
mask it (but that implies going public).

------- Comment #13 From Thierry Carrez (RETIRED) 2005-10-12 09:01:54 0000 -------
If it's just a crash I don't think it's worth masking... Maybe documenting the
option as unsafe ?

Auditors: any chance this can be used to execute code ?

If nobody complains, I'll open this tomorrow Thursday at 1400 UTC, since it's
not a big deal anyway.

------- Comment #14 From Thierry Carrez (RETIRED) 2005-10-13 09:07:53 0000 -------
Opening.

------- Comment #15 From Sune Kloppenborg Jeppesen 2005-10-21 23:46:24 0000 -------
wolfram/wernfried could you put a warning somewhere in the documentation?  
 
Changing component until someone shows that RCE is possible. Feel free to 
change it back if you disagree. 

------- Comment #16 From Sune Kloppenborg Jeppesen 2005-11-20 13:04:18 0000 -------
wschlich please provide an updated ebuild with the Debian patch. 

------- Comment #17 From Thierry Carrez (RETIRED) 2005-11-21 01:28:37 0000 -------
Let's put it back in "Vulnerabilities" scope

------- Comment #18 From Wolfram Schlich 2005-11-25 06:38:36 0000 -------
Sorry for the delay, I'm working on it...

------- Comment #19 From Wolfram Schlich 2005-11-25 06:58:43 0000 -------
Committed =net-im/centericq-4.21.0-r1 archmasked, so the arches can check and
mark it stable.

Arches are: amd64 hppa ppc ppc64 sparc x86

------- Comment #20 From Thierry Carrez (RETIRED) 2005-11-25 07:15:53 0000 -------
Thanks Wolfram.
Arches please test and mark stable...

------- Comment #21 From Simon Stelling (RETIRED) 2005-11-25 08:14:14 0000 -------
gnah, if i knew that there is an open security bug where 4.21.1 is affected too
i wouldn't have marked it stable yesterday. -r1 stable on amd64

------- Comment #22 From Gustavo Zacarias (RETIRED) 2005-11-25 09:27:56 0000 -------
sparc stable.

------- Comment #23 From Chris White (RETIRED) 2005-11-25 12:00:36 0000 -------
x86 stable.

------- Comment #24 From Joe Jezak 2005-11-27 11:59:42 0000 -------
Marked ppc stable.

------- Comment #25 From Thierry Carrez (RETIRED) 2005-11-27 13:46:13 0000 -------
Ready for GLSA vote, I tend to vote yes.

------- Comment #26 From Sune Kloppenborg Jeppesen 2005-11-27 13:57:19 0000 -------
A weak YES from me. 

------- Comment #27 From Thierry Carrez (RETIRED) 2005-11-29 02:37:17 0000 -------
Full yes and glsa-ed

------- Comment #28 From Thierry Carrez (RETIRED) 2005-11-29 02:42:16 0000 -------
Hm. Maybe we should wait for bug 113683 to be resolved ?

------- Comment #29 From Thierry Carrez (RETIRED) 2005-12-18 03:40:54 0000 -------
Both are ready now.

------- Comment #30 From Thierry Carrez (RETIRED) 2005-12-20 03:09:24 0000 -------
GLSA 200512-11

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug