Article View: alt.privacy.anon-server
Article #224921Re: Getting News From Hamster
From: Thomas J. Boschloo
Date: Wed, 09 Apr 2008 23:13
Date: Wed, 09 Apr 2008 23:13
120 lines
5414 bytes
5414 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Anonymous Remailer wrote:
> I've had this setup with JBN using hamster to collect newsfeeds from
> several servers to give myself a combined feed. It's been working great
> for me for literally years. Now it's going screwy. I've double-checked
> all of JBN's settings and Hamsters and nothing that I can find has changed.
>
> I've even gone so far as to re-install JBN & hamster and it's not helping
>
> Symptoms:
> JBN connects to hamster on 127.0.0.1 port 119
>
> here's a log file of a typical (these days) exchange as Hamster sees it:::
>
> 2008/04/06 01:20:31 I {c5c} < 200 NNTP-Server Classic Hamster Vr. 2.0
> (Build 2.0.7.0) (post ok) on my.dyndns.domain says: Hi!
> 2008/04/06 01:20:31 I {c5c} > XOVER
> 2008/04/06 01:20:31 I {c5c} < 480 Authentication required
> 2008/04/06 01:20:31 I {c5c} > AUTHINFO USER jbn
> 2008/04/06 01:20:31 I {c5c} < 381 More authentication information
> required
> 2008/04/06 01:20:31 I {c5c} > AUTHINFO PASS [...]
> 2008/04/06 01:20:31 I {c5c} < 281 Authentication accepted
> 2008/04/06 01:20:31 I {c5c} > XOVER
> 2008/04/06 01:20:31 I {c5c} < 412 No news group current selected
> 2008/04/06 01:20:31 I {c5c} > LISTGROUP
> 2008/04/06 01:20:31 I {c5c} < 412 not currently in newsgroup
> 2008/04/06 01:20:31 I {c5c} > GROUP alt.anonymous.messages
> 2008/04/06 01:20:31 I {c5c} < 211 3473 1 3473 alt.anonymous.messages
> 2008/04/06 01:20:31 I {c5c} > XHDR Subject 1-3473
> 2008/04/06 01:20:31 I {c5c} < 221 Header follow
> 2008/04/06 01:20:37 I {c5c} > QUIT
> 2008/04/06 01:20:37 I {c5c} < 205 Closing connection.
>
> JBN then exits with this error message:
>
> 00:54 ERROR Retrieving news from h-aam
> Overflow
> 00:54 h-aam: 0 articles retrieved 0 saved
I have browsed through the JBN2 source code and I think the overflow
occurs in NNTPCT.OCX when a very long subject is read by NNTPCTLib
######
For hx = 0 To 3
Needed = True
Select Case hx
Case 0: h = "Subject"
Case 1
h = "From"
Needed = InStr(1, UserProf(Prof, 12), "From:", vbTextCompare) +
InStr(1, UserProf(Prof, 13), "From:", vbTextCompare) <> 0
Case 2
h = "Message-ID"
Needed = Val(Cnf(4, 18)) = 1
Case 3: h = "Lines"
End Select
If Needed Then
hFile = GetWork(PData(10))
NNTPEvent = 0
On Error GoTo NNTPError
NNTP1.DocOutput.Filename = hFile
NNTP1.DocOutput.AppendToFile = False
AbortRetrieve = False
Call NNTP1.GetArticleHeaders(h, Trim(Str(NextArticle)),
Trim(Str(NNTPLastArticle)))
While NNTPEvent = 0 And Not AbortRetrieve
DoEvents
Wend
On Error GoTo GetNewsError
######
It is a good thing the .OCX does bounds checking, or you could have
ended up with an exploit that would have blown your privates :-)
I can't find any mention of this class on google
######
Begin NNTPCTLib.NNTP NNTP1
Left = 120
Top = 180
_ExtentX = 582
_ExtentY = 582
Blocking = 0 'False
SleepTime = 10
RemoteHost = "news"
RemotePort = 119
ConnectTimeout = 0
RecvTimeout = 0
NotificationMode= 1
LastUpdate = 932853942
End
######
But it seems to me JBN2 accesses the newsserver 4 times. First for the
Subject, then for the From, then for the Message-ID and finally for the
Lines header. All possibly resulting in a buffer overflow. Which the
Visual Basic runtime catches before it can do any harm.
I just quickly checked the a.a.m. newsgroup and it indeed has long
Subject headers in it. All posted with agora@dna.affrc.go.jp as the from
line. Probably some poor sod that got attacked by some internet vermin.
Thomas
- --
Don't worry about
what you know
Know
what you worry about!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iQB5AwUBR/1NjgEP2l8iXKAJAQGT/AMeLfFzeUoINXGRd94Yyuchf6SFVs0kXogF
Ha0qcuYQhbLkaLtMtfGZmbyykkxyy0o0MLoDry5OGM9RJi4VIi4j530kkTBryJKm
r4qu/vBmHCWFjeQSiHjAZJHLh6nj8bi+Tr1WtQ==
=+knG
-----END PGP SIGNATURE-----
Technical Details
Message-ID:
<47fd4de6$0$14355$e4fe514c@news.xs4all.nl>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.anon-server.20141023.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!transit1.news.xs4all.nl!post.news.xs4all.nl!not-for-mailReferences:
<82535337ae77d2ad3d32bb3e048fafa9@gpftor3.privacyfoundation.de>Show Full Headers
Complete Article Headers
Message-ID: <47fd4de6$0$14355$e4fe514c@news.xs4all.nl> Subject: Re: Getting News From Hamster Date: Thu, 10 Apr 2008 01:13:18 +0200 From: "Thomas J. Boschloo" <nospam@hccnet.nl> References: <82535337ae77d2ad3d32bb3e048fafa9@gpftor3.privacyfoundation.de> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.anon-server.20141023.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!transit1.news.xs4all.nl!post.news.xs4all.nl!not-for-mail User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 Newsgroups: alt.privacy.anon-server In-Reply-To: <82535337ae77d2ad3d32bb3e048fafa9@gpftor3.privacyfoundation.de> X-Enigmail-Version: 0.95.6 OpenPGP: url=http://home.hccnet.nl/t.j.boschloo/netsafer/ Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Lines: 120 NNTP-Posting-Host: 82.92.126.16 X-Trace: 1207782886 news.xs4all.nl 14355 [::ffff:82.92.126.16]:49913 X-Complaints-To: abuse@xs4all.nl