 | News Feed |
Sections
|
| feed this: |  |
Rochak Chauhan's Blog: Top Ten Security Vulnerabilities in PHP Code
by Chris Cornutt August 04, 2008 @ 12:58:10
Rochak Chauhan has come up with a list of ten things, some security problems that could be lurking in your applications waiting to pop up at the worst time. Here's his list:
- Unvalidated Parameters
- Broken Access Control
- Broken Account and Session Management
- Cross-Site Scripting (XSS) Flaws
- Buffer Overflows
- Command Injection Flaws
- Error Handling Problems
- Insecure Use of Cryptography
- Remote Administration Flaws
- Web and Application Server Misconfiguration
Each item on the list has a bit of detail (and sometimes some code) to help point out the problem. Some of them even have references to external sources and packages to help you solve the problems.
voice your opinion now!
security vulnerabilities list code example references
PHPBuilder.com: Validating PHP User Sessions
by Chris Cornutt April 07, 2008 @ 11:12:33
On PHPBuilder.com, there's a new tutorial about validating user sessions - ensuring that data in your user's sessions is valid and isn't an attack trying to sneak in.
In a nutshell, sessions are the way that we "maintain state" from one page to the next, that is, how we identify specific users across multiple page requests. The ability to track users as they go from one page to the next using sessions allows us a number of options, such as tracking where they are going (web statistics) or to verify credentials for a specific section of the site.
First, there's a little mini-intro to sessions for those unsure on their use. It's followed by a look at some session vulnerabilities that could be introduces by malicious users looking to break things on your site (including HTML/Javascript injection, as their example shows).
They recommend a three step plan to get started with the validation of your user's sessions - making it easy for users to log out when they want to, use unique aspects of the remote machine to define the session and to validate all user input, especially things that will be put into a session variable.
voice your opinion now!
tutorial session security tip vulnerabilities injection validate
LWN.net: Remote file inclusion vulnerabilities
by Chris Cornutt October 12, 2006 @ 10:27:00
According to this article from LWN.net, you might need to be a bit wary of how you use the allow_url_fopen configuration parameter on your server. Apparently there are some remote file inclusion issues that could cause problems for calls to include or require already in your code.
An attacker's fondest wish is to be able to run their code on the target system; an RFI exploit does just that. By exploiting two very dubious 'features' of the PHP language, an attacker can inject their code into a PHP program on the server.
Basically, if the potential hacker can manage to get in on a varaible that's inside of an include and use it (in)correctly, they can get the script to jump out and run the code from their server instead of the local copy. Turning off regiter_globals will provide some protection, put poor programming and not performing any input validation can poke holes in the script's security without the need for globals.
Check out the rest of the article for more information on this (potentially) serious issue and check your code/configuration doubly to make sure you're not at risk.
voice your opinion now!
remote file inclusion vulnerabilities lwn article report remote file inclusion vulnerabilities lwn article report
Hardened-PHP.net: Zend Platform Multiple Remote Vulnerabilities
by Chris Cornutt August 24, 2006 @ 07:58:24
According to this new advisory on the Hardened-PHP project's site, there are some issues with the Zend Platform product that could cause a number of security issues becaue of malformed session IDs.
During the development of suhosin, which is our new PHP protection module, several compatibility tests with binary 3rd party PHP extensions like the Zend Platform and the Zend Optimizer have been made. When testing the session protection features of suhosin, we discovered that the session clustering system, which is shipping with the Zend Platform is vulnerable to several different attacks.
They mentions a few things a potential attacker could use this issue for, including crashing the session daemon, remote code execution, and being able to view and write files of their choice (like session files) to execute malicious code.
The details are listed out, but a "proof of concept" isn't published for this exploit. Thankfully, Zend has already provided a patch for the issue which can be downloaded at Zend's website (an upgrade to version 2.2.1a).
voice your opinion now!
vulnerabilities zend platform remote session execution crash vulnerabilities zend platform remote session execution crash
PHPBuilder.com: Validating PHP User Sessions
by Chris Cornutt August 17, 2006 @ 07:14:13
From PHPBuilder.com today, there's a new tutorial that looks at one of the more handy features built into PHP, one that makes personalized sites a whole lot easier - sessions - and their management.
In a nutshell, sessions are the way that we "maintain state" from one page to the next, that is, how we identify specific users across multiple page requests.
When the user comes to the site, we need to be able to give them a unique identifier (a session id) that will allow us to know the difference between each user on the site. So, when the user logs in, and then modifies their choices for foo.php, we know whose profile to save those changes to.
The article goes on to talk about what sessions really are, how they're handled on both the client and server side, and a simple code example of how to check the value of them. Thankfully, they also include a section on session vulnerabilities, showing how with something as simple as some Javascript, a session can be maipulated.
To help prevent this, they give some examples of securing your sessions. Then, to illustrate all of the above points, they provide some simple code validate the session information that's been set.
voice your opinion now!
validating user session tutorial client server vulnerabilities javascript validating user session tutorial client server vulnerabilities javascript
|
Community Events
Don't see your event here? Let us know!
|