PHP Programming Language - Cultural View

PHP Programming Language - Cultural View PHP Programming Language - Cultural View

culturalview.com
from culturalview.com More from this publisher
10.02.2013 Views

Magic quotes 114 Other approaches • Some languages such as Perl [8] and Ruby [9] opt for an approach involving data tainting, where data from untrusted sources, such as user input, are considered "tainted" and can not be used for dangerous operations until explicitly marked as trustworthy, usually after validation and/or encoding. Since the construction of SQL queries is considered "dangerous" in this context, this forces the programmer to address the problem. Tainting does not solve the problem, but it does highlight those instances where there is a problem so that the programmer is able to solve them appropriately. • Joel Spolsky has suggested using a form of Hungarian notation that indicates whether data are safe or unsafe. [10] • Modern database engines and libraries use parametrised queries to pass data to the database separately from SQL commands, greatly reducing the need to escape data before constructing the queries. See also • SQL injection • PHP External links • PHP manual on magic quotes [11] References [1] [http:http://php.net/manual/en/security.magicquotes.php "PHP: Magic Quotes"]. http:. Retrieved 2009-05-02. [2] "PHP:Why use magic quotes?" (http://uk.php.net/manual/en/security.magicquotes.why.php). PHP documentation. . Retrieved 2007-02-19. [3] "PHP:Why not to use magic quotes" (http://uk.php.net/manual/en/security.magicquotes.whynot.php). PHP documentation. . Retrieved 2007-02-19. [4] "Quotation marks are double escaped when editing a comment" (http://trac.wordpress.org/ticket/2768). WordPress issue tracker. . Retrieved 2007-02-19. [5] Chris Shiflett. "addslashes() versus mysql_real_escape_string()" (http://shiflett.org/blog/2006/jan/ addslashes-versus-mysql-real-escape-string). . Retrieved 2007-02-19. [6] MySQL AB. "Changes in release 5.0.22 (24 May 2006)" (http://dev.mysql.com/doc/refman/5.0/en/news-5-0-22.html). MySQL 5.0 Reference Manual. . Retrieved 2007-02-19. [7] PHP Group (2005-11-12). "Minutes PHP Developers Meeting" (http://www.php.net/~derick/meeting-notes.html#magic-quotes). . Retrieved 2007-02-19. [8] Dan Ragle (2006-04-18). "Introduction to Perl's Taint Mode" (http://www.webreference.com/programming/perl/taint/). webreference.com. . Retrieved 2007-03-21. [9] "Locking Ruby in the Safe" (http://www.rubycentral.com/book/taint.html). Programming Ruby. . Retrieved 2007-03-21. [10] Joel Spolsky (2005-05-11). "Making Wrong Code Look Wrong" (http://www.joelonsoftware.com/articles/Wrong.html). Joel on Software: Painless Software Management. . Retrieved 2007-02-19. [11] http://www.php.net/manual/en/security.magicquotes.php

Mambo (software) 115 Mambo (software) Developer(s) Mambo Foundation Inc. Stable release 4.6.5 [1] / June 26, 2008 Written in PHP Operating system Cross-platform, PHP-compatible -- Linux preferred Type Content management system License GNU General Public License v2 Website http://mambo-foundation.org Mambo (formerly named Mambo Open Source or MOS) is a free software/open source content management system (CMS) for creating and managing websites through a simple web interface. Features Mambo includes advanced features such as page caching to improve performance on busy sites, advanced templating techniques, and a fairly robust API. It can provide RSS feeds and automate many tasks, including web indexing of static pages. Advanced interface features include printable versions of pages, news flashes, blogs, forums, polls, calendars, website searching, language internationalization, and many others. Mambo Foundation The rights to the Mambo CMS codebase, name and copyrights, are protected by the Mambo Foundation [2] , a non-profit corporation formed to support and promote the Mambo Open Source project. [3] The Mambo Foundation is a non-profit entity established under the laws of Australia. The Foundation is based on Eclipse and GNOME and is controlled by the members of the Foundation via an elected Board of Directors. The Mambo Foundation's brief is to foster the development of the Mambo system and to shelter the project from threats and misuse. Timeline of Mambo History • 2000: Miro Construct Pty Ltd, registered in March 2000 in Melbourne, and headed up by CEO Peter Lamont, a former advertising executive, starts development of Mambo, a closed-source, proprietary content management system. • 2001: The company adopted a dual licensing policy, releasing Mambo Site Server under the GPL on Sourceforge in April 2001. • May 2001: The mamboserver.com domain name is registered. • From this time until the middle of 2002, Miro was the only developer of Mambo, contributing bug-fixes and security patches but not really extending the code or adding to the feature sets. • 2002: Miro releases the commercial CMS called Mambo 2002. [4] • With version 3.0.x, the open source Mambo Site Server becomes "Mambo Open Source" (commonly referred to as "MOS"). • Robert Castley becomes Project Director of Mambo Open Source. [5] • By the end of 2002, Robert Castley had pulled together a volunteer team of developers.

Magic quotes 114<br />

Other approaches<br />

• Some languages such as Perl [8] and Ruby [9] opt for an approach involving data tainting, where data from untrusted<br />

sources, such as user input, are considered "tainted" and can not be used for dangerous operations until explicitly<br />

marked as trustworthy, usually after validation and/or encoding. Since the construction of SQL queries is<br />

considered "dangerous" in this context, this forces the programmer to address the problem. Tainting does not solve<br />

the problem, but it does highlight those instances where there is a problem so that the programmer is able to solve<br />

them appropriately.<br />

• Joel Spolsky has suggested using a form of Hungarian notation that indicates whether data are safe or unsafe. [10]<br />

• Modern database engines and libraries use parametrised queries to pass data to the database separately from SQL<br />

commands, greatly reducing the need to escape data before constructing the queries.<br />

See also<br />

• SQL injection<br />

• <strong>PHP</strong><br />

External links<br />

• <strong>PHP</strong> manual on magic quotes [11]<br />

References<br />

[1] [http:http://php.net/manual/en/security.magicquotes.php "<strong>PHP</strong>: Magic Quotes"]. http:. Retrieved 2009-05-02.<br />

[2] "<strong>PHP</strong>:Why use magic quotes?" (http://uk.php.net/manual/en/security.magicquotes.why.php). <strong>PHP</strong> documentation. . Retrieved<br />

2007-02-19.<br />

[3] "<strong>PHP</strong>:Why not to use magic quotes" (http://uk.php.net/manual/en/security.magicquotes.whynot.php). <strong>PHP</strong> documentation. . Retrieved<br />

2007-02-19.<br />

[4] "Quotation marks are double escaped when editing a comment" (http://trac.wordpress.org/ticket/2768). WordPress issue tracker. .<br />

Retrieved 2007-02-19.<br />

[5] Chris Shiflett. "addslashes() versus mysql_real_escape_string()" (http://shiflett.org/blog/2006/jan/<br />

addslashes-versus-mysql-real-escape-string). . Retrieved 2007-02-19.<br />

[6] MySQL AB. "Changes in release 5.0.22 (24 May 2006)" (http://dev.mysql.com/doc/refman/5.0/en/news-5-0-22.html). MySQL 5.0<br />

Reference Manual. . Retrieved 2007-02-19.<br />

[7] <strong>PHP</strong> Group (2005-11-12). "Minutes <strong>PHP</strong> Developers Meeting" (http://www.php.net/~derick/meeting-notes.html#magic-quotes). .<br />

Retrieved 2007-02-19.<br />

[8] Dan Ragle (2006-04-18). "Introduction to Perl's Taint Mode" (http://www.webreference.com/programming/perl/taint/).<br />

webreference.com. . Retrieved 2007-03-21.<br />

[9] "Locking Ruby in the Safe" (http://www.rubycentral.com/book/taint.html). <strong>Programming</strong> Ruby. . Retrieved 2007-03-21.<br />

[10] Joel Spolsky (2005-05-11). "Making Wrong Code Look Wrong" (http://www.joelonsoftware.com/articles/Wrong.html). Joel on<br />

Software: Painless Software Management. . Retrieved 2007-02-19.<br />

[11] http://www.php.net/manual/en/security.magicquotes.php

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!