Attn: alycia
Based on my findings yesterday, here are some hardening tips to your apache server.
1. To disable server-infoOpen your apache httpd.conf, find the following paragaraph
SetHandler server-info
Order deny,allow
Allow from all
Change to this to, then restart your apache(httpd) server.
SetHandler server-info
Order deny,allow
#Allow from all
Deny from all
2. To disable server-statusOpen your apache httpd.conf, find the following paragaraph
SetHandler server-status
Order deny,allow
Allow from all
Change to this to, then restart your apache(httpd) server.
SetHandler server-status
Order deny,allow
#Allow from all
Deny from all
3. To disable directory listing, which is the most crucial part.Open your apache httpd.conf, find the following paragaraph
Options FollowSymLinks ExecCGI Indexes
AllowOverride None
# Controls who can get stuff from this server.
Order allow,deny
Allow from all
Change to this to, then restart your apache(httpd) server.
Options FollowSymLinks ExecCGI Indexes
AllowOverride None
# Controls who can get stuff from this server.
Order allow,deny
#Allow from all
Deny from all
If you done it right, you'll get 403 Forbidden error message when trying to access the 'vulnerable' page
Open source is secure only if you put some effort to secure it. Otherwise, it is more vulnerable comparing to windows
Posted by
ghimau
under
misc
Att: alycia
Just now I did a very simple 'test' on that server, I found the directory listing is on. The interesting directories are :
/admin/
/server-status/
/server-info/
Both the server-* directories are only information disclosure vulnerabilites.
But the /admin/.. hmm.. looks interesting.
To do a complete pen-test, needs a lot of time, there's no a single silver bullet to 'hack'.
Last week, I found that the application is vulnerable to cookie-session injection attack. I told abg mazani, and give him the proper solution.
Isk..Isk.. While I was creating the report for 'Pertandingan Laman Web', I noticed that En. Aziz's marks is missing. I told aunty virus about that.
We were busy searching the file, almost 1 hour of blind search! The file was on Kak Liza's table all the while! Hampeh!
The sad thing is that, the file is about 2 inchies thick.. and I have to review the marks.. Ah! 'Tidak!'
Posted by
ghimau
under
misc
Hmm.. My Bos aunty virus, asked me to call an officer regarding 'Pertandingan Laman Web'. While searching his telephone number in his agency's site (a very well known government agency), i found a bug that 'might' lead to be defaced! The infamous rfi bug. Hmm..
I did'nt go any further to test the bug. I've informed the appropriate person handling this kind of issue.
http://xxx.xxxxx.xxx.xx/xxxxxx.php?section=[evil script]
Posted by
ghimau
under
misc
Hmm.. Today, aunty virus and i have to meet Dr Baharom UPEN, discussing about homestay's website. Argh..
Hmm.. the internet connection is so slow.. i think a snail is much more faster!
I've called mastura from fbest, and sharifah from pelegong, asking them to send the details and information regarding their homestay's, to develop a site for them.
Hmm.. its not a big deal for me to create a site, but the problem is.. graphics !
I just cannot put my hands on 'graphics' :)
Hmm.. After all, I'm in the multimedia unit.. so this is what i have to do.. :(
What is APC? Anugerah Perkhidmatan Cemerlang. :)
Today, I'm going for the ceremony..
Thanks a lot to my friends in UPTM, especially to my bos Puan Zaimah (yang nak jadi hakes), my Pengarah, Puan Hajah Ruhazah and my best friend, Mazni (kecik 13).
Thanks to ya all.