r1ch.net forums
Welcome,
Guest
. Please
login
or
register
.
June 19, 2013, 10:38:13 am
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
r1ch.net
|
r1ch.net stuff
|
Bitchbot
| Topic:
Remote command execution...
Pages:
[
1
]
Author
Topic: Remote command execution... (Read 4081 times)
mhig
Guest
Remote command execution...
«
on:
October 20, 2003, 08:52:58 am »
Remote command execution is possible due to non filtered input from $query when you do a fortune..
the bug is in these lines:
-----
@cookie = `/usr/games/fortune $query`;
while (length(scalar @cookie) > 300) {
@cookie = `/usr/games/fortune $query`;
}
-----
fix: (checks $query for 'special characters')
if($query =~ tr/;<>*|`&$!#()[]{}:'"//) { print "someone been bad\n"; }
/mhig
Logged
R1CH
Administrator
Member
Posts: 2625
Remote command execution...
«
Reply #1 on:
October 26, 2003, 01:07:29 am »
Yes, this is somewhat dangerous bug - there is also another one I won't disclose just yet. The cookie one is mitigated somewhat as $query must pass the -f file existence check and by trying to put shell commands in this will always fail. Again, another thing fixed in 1.0.3...
Logged
Pages:
[
1
]
r1ch.net
|
r1ch.net stuff
|
Bitchbot
| Topic:
Remote command execution...
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> General Discussion
-----------------------------
r1ch.net stuff
-----------------------------
=> Bitchbot
=> r1dll / foobar2000 plugins
=> Other Projects
=> R1Q2
===> OpenTDM
=> Anticheat