InfoSec & Other Ramblings

http://www.ryangreenier.org

Last update in Friday, November 21st 2008
Click here for RSS feed.
  • Home
  • About

Protect Your PHP Includes

Posted by Ryan in Tuesday, November 4th 2008   
Topics: Infosec, PHP, Scripts    Tags: php, protect, Scripts
No Comment

Line 1: <?php
Line 2: if ($_SERVER['REQUEST_URI'] == $_SERVER['PHP_SELF'])
Line 3: exit();

Default Installations

Posted by Ryan in Friday, October 24th 2008   
Topics: Infosec    Tags: default installations, phishing, sever security
No Comment

What is it with people leaving default installations public facing? They must think I don’t have enough work to do. Inevitably, the server is compromised and used to host phishing attacks against clients of my employer.
Default Apache Install:

Plus PHPInfo page:

Equals phishing attack.

Nice equation.

Account Lockout in Linux - PAM Tally

Posted by Ryan in Thursday, October 9th 2008   
Topics: Infosec, Linux    Tags: linux, modules
No Comment

Some pretty basic functions are missing from most of the *-nix systems by default. One of these is account lockout. In comes PAM Tally (pam_tally.so). This module maintains a count of attempted accesses, can reset count on success, and can deny access if too many attempts fail in succession.
pam_tally comes in two parts: pam_tally.so and [...]

Squid Log Parsing

Posted by Ryan in Wednesday, October 8th 2008   
Topics: Perl, Scripts    Tags: Scripts, squid
No Comment

The squid access.log file is useful for determing where your users are going when using http/80. These log files are generally rotated daily and each contain a LOT of data. In my organization, this is in the realm of 2 GB per day. So how do you find what you are looking for? I use [...]

Oops… Bring out the backup.

Posted by Ryan in Wednesday, October 8th 2008   
Topics: Infosec    Tags: permissions, redhat
No Comment

On a recent post to a mailing list I subscribe to, a user indicated that they made an inadvertent blunder to a Linux machine they operated (they were an RHCE to boot). The email was as follows:

There are some things you can do like rpm -qlv <name_of_package> but you’re going to be troubleshooting broken items [...]

« Older Entries

Featured Articles

Protect Your PHP Includes...

Line 1: <?php Line 2: if ($_SERVER['REQUEST_URI'] == $_SERVER['PHP_SELF']) Line 3: exit(); [+]

Protect Your PHP Includes

Default Installations...

What is it with people leaving default installations public facing? They must think I don't [+]

Default Installations

Account Lockout in Linux - PAM Tally...

Some pretty basic functions are missing from most of the *-nix systems by default. One [+]

Account Lockout in Linux - PAM Tally

Categories

  • Uncategorized (10)
  • Infosec (25)
    • Linux (1)
  • Scripts (12)
    • Perl (9)
    • PHP (2)
  • Music (2)

Archives

  • November 2008 (1)
  • October 2008 (4)
  • September 2008 (1)
  • August 2008 (3)
  • July 2008 (1)
  • June 2008 (3)
  • May 2008 (2)
  • April 2008 (3)
  • March 2008 (2)
  • February 2008 (3)
  • January 2008 (2)
  • December 2007 (3)

Meta

  • Valid XHTML
  • Valid CSS

Google Ads

Recent Articles

  • Protect Your PHP Includes
  • Default Installations
  • Account Lockout in Linux - PAM Tally
  • Squid Log Parsing
  • Oops… Bring out the backup.
  • CISSP Begins…
  • Outlook Organization
  • Motorcycle Helmet Laws
  • America needs more people like this asap
  • American Musical - What you should not do.

Popular Tags

  • beer browser ceh cell phones certs conversion cookies domain downloads firefox gadgets giac hacking incident response ipod isc linux minefield money mp3 pdf Perl php pix politics prelogic privacy programming registrars review sanitize input sans satillite radio scripting Scripts securecrt security sirius spam studying tftp toolkit validation vulnerability scanner web logs
©2007-2008 InfoSec & Other Ramblings
Wired By Dezzain Studio

feeds

Valid XHTML   |   Valid CSS