pisg IRC Statistics Generator Input Validation Flaw in 'nick' Lets Remote Users Conduct Cross-Site Scripting Attacks
SecurityTracker Alert ID: 1009907|
SecurityTracker URL: http://securitytracker.com/id/1009907
(Links to External Site)
Updated: Apr 26 2004|
Original Entry Date: Apr 22 2004
Disclosure of authentication information, Disclosure of user information, Execution of arbitrary code via network, Modification of user information|
Exploit Included: Yes |
Version(s): not reported, but 0.54 was the latest version at the time of this entry|
A vulnerability was reported in the pisg statistics generator. A remote user can conduct cross-site scripting attacks.|
shr3kst3r at hushmail.com reported that the software does not filter HTML code from user-supplied input in the 'nick' field when parsing log files. A remote user can use a specially crafted nickname on IRC. Then, when the target user views a report generated by pisg, arbitrary scripting code will be executed by the target user's browser. The code will originate from the site displaying the pisg report and will run in the security context of that site. As a result, the code will be able to access the target user's cookies (including authentication cookies), if any, associated with the site, access data recently submitted by the target user via web form to the site, or take actions on the site acting as the target user.
A remote user can access the target user's cookies (including authentication cookies), if any, associated with the site hosting pisg reports, access data recently submitted by the target user via web form to the site, or take actions on the site acting as the target user.|
No solution was available at the time of this entry.|
Vendor URL: pisg.sourceforge.net/ (Links to External Site)
Input validation error|
|Underlying OS: Linux (Any), UNIX (Any), Windows (Any)|
Source Message Contents
Subject: [Full-Disclosure] pisg XSS|
-----BEGIN PGP SIGNED MESSAGE-----
= pisg XSS
pisg is an IRC channel statics generator written in Perl, it creates
statistics from different logfile formats. It was originally written
because IRCStats wasn't open source. So here's an open source/GPL'ed
version to anyone interested. It's a funny thing for your IRC channel,
and it's highly customizeable.
pisg does not sanitize the nick of the user before posting to the web
2. /connect silc.net
3. /nick <script>alert(document.domain);</script>
4. /log ...
5. /me a couple of times on a channel
3. then generate stats ./pisg
4. surf the index.html
The silc-client, which is an old irssi-client with the silc stuff patched
on, logs in the irssi format which pisg reads, and also silcd allows
strange names like the above "<script>alert(document.domain);</script>".
But, the major problem is, pisg does not sanitize the nick. This problem
does not occur when using irssi connected to a regular ircd because the
ircd does not allow the nick. The "/me <stuff>" is required, a regular
/msg <channel> will
Could not find a email@example.com or anything ressembling it.
I can't spell.
This might affect a whole 3 people in the world.
-----BEGIN PGP SIGNATURE-----
Note: This signature can be verified at https://www.hushtools.com/verify
Version: Hush 2.4
-----END PGP SIGNATURE-----
Concerned about your privacy? Follow this link to get
FREE encrypted email: https://www.hushmail.com/?l=2
Free, ultra-private instant messaging with Hush Messenger
Promote security and make money with the Hushmail Affiliate Program:
Full-Disclosure - We believe in it.