 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
Reddit.com: A Response to "The MicroPHP Manifesto"
by Chris Cornutt January 04, 2012 @ 09:18:42
On Reddit today there's a rather large discussion going on about the recently posted manifesto from Ed Finkler about building simple, manageable tools rather than using "kitchen sink" frameworks for your applications.
As of the time of this post there's about sixty-five comments posted to the thread with widely ranging opinions:
- "How is [lots of separate libraries scattered around] better than simply using a framework?"
- "This is part of the reason for the PSR0 reference for auto loaders [...] Part of the problem is an inconsistent way to load modules."
- "I would love to see this become a trend in the PHP community. I think this is exactly the direction needed to make PHP exciting again and regain mindshare in the wider dev community."
- "I know, many people are currently on that micro trip but seriously, I think that there is as much to microframeworks as there is to microoptimization"
- "A framework is a tool. If you don't need it, why use it?"
- "There's a tool for ever job, I agree some projects or companies "need" something like Zend or Symfony for their enterprise projects. Whether or not you'd want to work on a project with 1000's of classes is something else all together."
Read the full responses to Ed's article here.
voice your opinion now!
reddit response opinion manifesto community
Freek Lijten's Blog: The real problem of the hash table dos attack
by Chris Cornutt December 30, 2011 @ 12:53:35
In response to some of the comments being made about the hash table Denial of Service attack recently posted Freek Lijten has posted his thoughts about the real problem with the whole situation - how it was handled by the communities involved.
Interesting they may be, but I want to address what in my opinion is the real problem: The way the communication around it was handled by different projects and the fact that the exploit could still exist at all. [...] In the presentation Wälde and Klink talk about their disclosure process. The PHP project had them wait 3 weeks for a first response while this is obviously a serious matter.
He argues that things like a commit message mentioning a DoS prevention fix instead of just mentioning the fix have the potential to do more harm than good. He also points out that other communities were notified of the problem (like Python) and some still haven't responded to the issue.
This attack was the result of good research and it is important that it is disclosed. More importantly however is the fact that organisation got by with years of not noticing it and even worse, reacted very poor after being informed. I can't say I have a ready solution to avoid these kind of things in the future, perhaps that will prove to be an interesting discussion.
voice your opinion now!
dos attack hash table opinion community response
David Stockton's Blog: Changing ErrorController to work with AJAX
by Chris Cornutt August 12, 2011 @ 08:58:06
David Stockton has a new tutorial posted to his blog - a technique he's found useful in his Zend Framework application to make the ErrorController work with Ajax calls to reduce the message you get back to just a JSON response.
If you've ever built a Zend Framework MVC app which makes AJAX calls, you may have noticed that if an error occurs, you'll get a chunk of JSON followed by the HTML for the error page. If you've built a layout, you'll get all of that back to. This is fine if your users hit the page in the browser but it can cause problems with your JavaScript being able to correctly decode your JSON.
The fix is pretty simple, though, and only requires that you add the error handling action to the Ajax context to force it to drop the layout and any other HTML that might come along with the view. He includes a bit more code to have the error handler include the exceptions and pass them out to be included in the JSON response.
voice your opinion now!
zendframework error handler controller ajax response exception
Anthony Ferrara's Blog: Security Review Creating a Secure PHP Login Script
by Chris Cornutt August 03, 2011 @ 12:02:19
In response to this article from DevShed about creating a "simple and secure login script", Anthony Ferrara has written up this post to help dispel some of the inaccuracies, bad practices and security issues that could result from DevShed's code.
I decided to click the link [in my feed reader] and give the article a read. Not overly shocking was the fact that I didn't find the content of the article to be, how shall I say this..., overly factual. It's not really a "tutorial", but more of a "here's some code that's secure". A quick review of the code found more than one vulnerability, and some significant things that I would change about it (as well as a few "really bad practices").
He walks through each of the files included in the original tutorial - Authenticate.php, Register.php and Logout.php - and talks about things like brute force detection, password verification, registration handling and session serialization. He finishes it off with a list of twelve overall issues he noticed during his work along with solutions for each (usually very simple ones too).
voice your opinion now!
security review response devshed secure login tutorial
Michael Nitschinger's Blog: Caching responses in Lithium
by Chris Cornutt May 30, 2011 @ 10:28:05
Michael Nitschinger has put together a guide to caching responses in the Lithium framework - a simple update that means your application dosen't even need to reach the controllers to do its job.
I've hacked together a small example on how to easily cache full responses in Lithium. If you need to cache full Response objects in Lithium (which means that your controllers don't even get called when there's a cache hit), you can place this in your app/config/bootstrap/cache.php file (note that this is certainly not "production ready", but it should give you a starting point).
The code adds a new filter to run on execute that takes the current object (the Response object hit the first time) and use the Cache functionality to push it into storage. Their cache key is based on the URL, so each requests is cached individually. You can find out more about filters and the framework at Lithify.me.
voice your opinion now!
lithium framework cache response
Artur Ejsmont's Blog: HTTP response splitting and mail headers splitting attacks
by Chris Cornutt November 15, 2010 @ 10:57:16
In a recent post to his blog Artur Ejsmont looks at an attack that could potentially leave a hole open in your PHP-based application for a cross-site scripting (XSS) attack - HTTP response splitting (mail headers too).
There are two similar security issues both taken care of by Suhosin patch and strict escaping/encoding rules. They both relate to injecting new lines into headers of network protocols. They are not very well known and i think its worth mentioning it. HTTP response splitting is a web based attack where hacker manages to trick the server into injecting new lines into response headers along with arbitrary code. If you use GET/POST parameters in the headers like cookie or location, then someone could provide new lines with XSS attack.
He gives some examples of how it might work via the header function so that superglobals might be abused (like adding information on the URL to inject into $_GET). To prevent the attack, you just have to ensure that no special characters make it into the headers or cookies. He also mentions that the Suhosin patch takes care of the issue automatically.
voice your opinion now!
http response header split example attack
php|architect: Analysis Following Ruby Makes PHP Number Two
by Chris Cornutt September 24, 2010 @ 10:13:04
On the php|architect blog today Bill Karwin has posted his response to this interesting suggestion from Dennis Hoston about how to "reinvent" object-oriented programming in PHP.
Dennis acknowledges that the name needs work. But, getting past that, his blog is about some creative experiments Dennis is working on. He has come up with a pretty innovative way of creating objects dynamically in PHP that allows for some usage that conventional PHP coding techniques don't support.
He talks about some of the features that this method allows that the usual style of OOP don't allow like class scoping, methods can be added at any times and that the classes created can be temporary. He points out that the base object is actually a factory and makes it simple to create those other instances of child objects. He also mentions some of the features that will no longer work with Deniss' approach like interfaces, instanceof, reflection and autoloading to name a few.
voice your opinion now!
oop reinvent response dennishoston phpoopr
|
Community Events
Don't see your event here? Let us know!
|