<?xml version='1.0' encoding='UTF-8'?><rss xmlns:atom='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:thr='http://purl.org/syndication/thread/1.0' version='2.0'><channel><atom:id>tag:blogger.com,1999:blog-4057243784218902902</atom:id><lastBuildDate>Sun, 30 Jan 2011 15:30:05 +0000</lastBuildDate><title>leechoff</title><description>seo,php,security,rapidleech,linux,mistakes</description><link>http://leechoff.blogspot.com/</link><managingEditor>noreply@blogger.com (AMINE)</managingEditor><generator>Blogger</generator><openSearch:totalResults>12</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-4057243784218902902.post-797243381040830998</guid><pubDate>Sun, 30 Jan 2011 15:30:00 +0000</pubDate><atom:updated>2011-01-30T07:30:05.481-08:00</atom:updated><title>Secure PHP</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;PHP is a modern language, and powerful, in terms of its possibilities, relatively well developed in terms of security.&lt;br /&gt;&lt;br /&gt;Reminder of the possibilities of PHP: interfacing databases, forms processing, reading / writing files, executing system commands, opening and managing network connections, etc..&lt;br /&gt;&lt;br /&gt;It is important not to lose sight of the scripts are executed on the server side - what is more web server, so by definition as "exposed" as possible.&lt;br /&gt;&lt;br /&gt;The purpose of this paper is a synthesis of "best practices" in security in the PHP scripting.&lt;br /&gt;&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;before you read&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;A good understanding (at best a good practice) of PHP, databases and the Web is necessary for the proper understanding of this article. If necessary, you can see my ultra-concise PHP.&lt;br /&gt;&lt;br /&gt;That said, the purpose here is to be the clearest, most general and, hopefully, the more didactic as possible.&lt;br /&gt;&lt;br /&gt;The reader is also assumed to have read the section on security in the online manual, which this article seeks to fill.&lt;br /&gt;&lt;br /&gt;Finally, it is perhaps worth remembering that ensuring the security of PHP scripts is no substitute for securing the server on which they run!&lt;br /&gt;Excellent source software has been designed for this purpose (see Securing a heterogeneous network with free tools), feel free to implement ...&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;cgi or sapi?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Compiling PHP as CGI (Common Gateway Interface) is a practice increasingly rare, we redirect the reader to the page of the manual devoted to this subject.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;In addition, a manual of "best practices" in writing CGI scripts is available here.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;We will concentrate here on the use, much more widespread, PHP installed as a Web server module, or SAPI (Server Application Programming Interface).&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;Basic Principles&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;No, security is not (only) a matter for specialists. It is everyone's business, at any time since the project design, to final use of the program and / or service.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Beyond the purely technical and constantly changing, it is good practice to acquire. All of these practices is the most basic prevention, which can not be overemphasized.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Here is a selection of key principles to remember in all circumstances (non-exhaustive list):&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; seek to limit the minimum necessary rights and permissions of the user: it is better to hear him complain about his lack of freedom rather than see the damage caused by excessive liberality (universal principle)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;ol style="text-align: left;"&gt;&lt;li&gt;&amp;nbsp;&amp;nbsp;&lt;u&gt; never trust the data transmitted by the user&lt;/u&gt; (let alone the Internet!), even if you have high pigs together ...&lt;/li&gt;&lt;li&gt;&amp;nbsp;&amp;nbsp; &lt;u&gt;Always test the existence / validity of a file / code to include&lt;/u&gt;: and if it was not what you thought?&lt;/li&gt;&lt;li&gt;&amp;nbsp;&amp;nbsp; &lt;u&gt;control client-side data is handy, but as to the illusory security&lt;/u&gt;: what's easier than turning off JavaScript? Only a server-side control can claim to be effective.&lt;/li&gt;&lt;li&gt;&amp;nbsp;&amp;nbsp; &lt;u&gt;prefer, where possible, the POST method to GET method&lt;/u&gt;: variables in the url, it is bad form;)&lt;/li&gt;&lt;li&gt;&amp;nbsp;&amp;nbsp; &lt;u&gt;Do not confuse complexity and security&lt;/u&gt;: if your security system eludes you, consider that you are not safe. Well, anyway, you're never safe.&lt;/li&gt;&lt;li&gt;&amp;nbsp;&amp;nbsp;&lt;u&gt; strive to maintain the server system and PHP interpreter with the latest stable versions&lt;/u&gt;: when the disaster takes place, it will be less to criticize you ...&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;php.ini&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Whether you are installing PHP yourself or you go through a host, the security of your scripts depends to a large part of the configuration file php.ini.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Here are the relevant configuration options:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;safe_mode&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;When this option is enabled (safe_mode = on):&lt;/div&gt;&lt;div&gt;- a number of functions are limited or disabled (those dedicated to system commands, etc.). We present a list of functions affected by activation of safe_mode.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;- strict checking access permissions of files (based on the UID and GID) is made on the functions involved.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;- environment variables are protected.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;b&gt;safe_mode_exec_dir&amp;nbsp;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;With this directive, it is possible to specify one or more directories in which the functions affected by the safe_mode will be fully available.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Example: safe_mode_exec_dir = / private_dir /.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;safe_mode_allowed_env_vars&amp;nbsp;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Only variables starting with the prefixes listed here can be modified (default: safe_mode_allowed_env_vars = PHP_ and that's fine like that).&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;safe_mode_protected_env_vars&amp;nbsp;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Through this directive, we can provide a list of environment variables that a script will never change (default: safe_mode_protected_env_vars = LD_LIBRARY_PATH).&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;disable_fonctions&amp;nbsp;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;As its name suggests, this directive will disable the specified functions. Function names must be separated by a comma. This directive is independent of safe_mode.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;eg: disable_functions = exec, system, passthru, popen, mail&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;open_basedir&amp;nbsp;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;This directive (independent safe_mode) limits the access permissions to only specified folders (the root being document_root), recursively.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;example: "open_basedir = / pub_dir /&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;display_errors&amp;nbsp;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Phase of development, it is good to have the maximum information about what might interfere with the proper and secure execution of scripts (variables and constants undefined, essentially).&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&amp;gt; So: error_reporting = E_ALL&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;In the production phase, it is wise not to let this kind of error messages displayed on the screen:&amp;nbsp;&lt;/div&gt;&lt;div&gt;Warning: readfile () failed (No such file or directory) in / var / www / perso / confidentiel.php on line 356&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;gt; So: display-errors = off&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;log_errors&amp;nbsp;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Once enabled (log_errors = on), this directive will allow the redirection of error messages (which are banned on-screen display) to the log files (unix) in the event logs (win) or in specified files in the following instructions:&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;error_log&amp;nbsp;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Specifies the file where messages are error messages.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Example: error_log = / var / php / logs /&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;register_globals&amp;nbsp;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Lets go global or not the EGPCS (Environment, Get, Post, Cookie, Session).&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;It is strongly recommended to disable this directive (register_globals = off), even if only to force themselves to make good habits using superglobals.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Briefly, the EGPCS variables inherited methods are no longer available as shown, but accessible only via the corresponding superglobals.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;lt;? Php&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;if (! $ _SESSION ['auth']) die ("Not authenticated");&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp;?&amp;gt;&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;allow_url_fopen&amp;nbsp;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Can handle the url as files, hence the door open for bad jokes (see the flaw include ()).&amp;nbsp;&lt;/div&gt;&lt;div&gt;Therefore: allow_url_fopen = off&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;magic_quotes_gpc&amp;nbsp;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;This directive allows to escape (by backslashes) quotes, double quotes, backslashes and NULL character strings from methods GET, POST and Cookies.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Remember that to be passed as a SQL query, these characters must be escaped through the function addslashes ().&amp;nbsp;&lt;/div&gt;&lt;div&gt;Conversely, for displaying a string on the screen without backslashes, it will use the function stripslashes ().&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The reason for this directive must be activated (magic_quotes_gpc = on) is that SQL injection attacks (see databases) often use quotes not escaped.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Good article on magic_quotes: phpinfo.net / articles / article_magic-quotes.html.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;magic_quotes_runtime&amp;nbsp;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Like its predecessor, this directive allows us to escape the quotes, double quotes, backslashes and NULL character, but character strings from an external resource (database, text box, etc.).&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;For the same reasons as before: magic_quotes_runtime = on.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;include_path&amp;nbsp;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Specifies the path of pages to include: do not forget to inform the Directive (see the flaw include ())!&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;example: include_path = / var / htaccessed_dir /&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;file_uploads&amp;nbsp;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Allows the upload of files onto the server via a PHP script. To disable it, of course, if we do not need.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;the flaw include ()&amp;nbsp;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;This fault has been abundant literature, whereby it has virtually disappeared today.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The goal is to not allow anyone to include any page, whether for access to sensitive data, or simply deface your beautiful page;)&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Besides disabling allow_url_fopen, which prohibit the inclusion of remote files, here is a simple way to protect themselves:&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;lt;? Php&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;$ Filename = ". / Page.php";&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;if (file_exists ($ filename)) include ($ filename);&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp;?&amp;gt;&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;is an excellent measure to consolidate library files in a protected directory.. htaccess&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;It is also recommended to avoid giving the extension. Inc files to include. Indeed, if the server is not configured to interpret the file with that extension, it is possible to download stupidly or even more foolishly, that the source code appears on the screen ... Not bad: (&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;That said, if you have access to your httpd.conf, just add the extension ". Inc" in:&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp;AddType application / x-httpd-php. Phtml. Pwml. Php3. Php4. Php. Php2. Inc&amp;nbsp;&lt;/div&gt;&lt;div&gt;Nor that difficult as that.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;Another solution: Add a second extension ... for example ". php":&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;lt;? Php&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;$ Filename .= ". Php";&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp;?&amp;gt;&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;gt; Or else, always in httpd.conf, prohibit access to such files:&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;lt;Files ~ ".inc"&amp;gt;&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; Order allow, deny&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; Deny from all&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; Satisfy All&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;lt;/ Files&amp;gt;&amp;nbsp;&lt;/div&gt;&lt;div&gt;We see, how to protect themselves are many and varied. The key is to understand, as always, the nature of the danger.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Databases&amp;nbsp;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;As well as secure his scripts did not make much sense if the system is not, he strongly advised to be familiar with its DBMS, particularly of course its security mechanisms.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The main concern for database_name displayed on the web comes from SQL injections mentioned above.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Without going into the considerations put forward, just remember that the principle of this type of attack is to pass requests "unexpected" to the DBMS, usually via the form fields, and through clever use of special characters ("'", "%", "*", "#", etc.).&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;a well-known example of sql injection based on the idea of "cut" with commentary, part of the query execution.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Is a trivial form of identification:&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;lt;form method="post" action="auth.php"&amp;gt;&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp;login: &amp;lt;input type="text" name="login"&amp;gt; &amp;lt;br /&amp;gt;&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp;password: &amp;lt;input type="password" name="password"&amp;gt; &amp;lt;br /&amp;gt;&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;lt;input type="submit" value="OK"&amp;gt;&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;gt; And a query, even banal, using variables from the form:&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp;$ Query = "SELECT * FROM users WHERE login ='".$_ POST ['username'].&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;"'AND password ='".$_ POST [' password']."'";&amp;nbsp;&lt;/div&gt;&lt;div&gt;As long as the attacker knows a login "sensitive" (without knowing the password), it might as well try to fill the field "login" form:&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp;admin '#&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;gt; Our query would be:&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp;$ Query = "SELECT * FROM users WHERE username = 'admin' # '&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; AND password = 'jun40h ";&amp;nbsp;&lt;/div&gt;&lt;div&gt;What would the performance of the product the following SQL query:&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp;SELECT * FROM users WHERE username = 'admin'&amp;nbsp;&lt;/div&gt;&lt;div&gt;PHP ignoring everything that is after the sign '#' will not pass the last part of the application ... Longer need passwords)&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;To protect yourself against these annoyances, you have at your disposal an arsenal of functions that allow you to filter (or "parse") the data transmitted not the user.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&amp;gt; It is also recommended hash (using md5 ()) logins and passwords before storing them.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Example:&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;lt;? Php&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;$ Login = trim (htmlspecialchars (addslashes ($ _SESSION ['login']))); / / parse the login&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;$ Password = trim (htmlspecialchars (addslashes ($ _SESSION ['password']))); / / parsing of password&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;$ Query = "INSERT INTO customers VALUES (md5 ($ username), md5 ($ password))" / / insert variables computed hash&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp;?&amp;gt;&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;for all practical purposes, remember that it is essential to create a database user whose rights will be restricted to a minimum (read-only if possible).&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;If your database contains sensitive data actually, the server must be configured to support connections via SSL (Secure Socket Layer, www.openssl.org).&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;sessions&amp;nbsp;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The use of sessions is a safe, simple, effective and widely used "draw" visitors (e-commerce sites, forums, etc.).&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The principle is simple: assign a unique identifier for each visitor (default PHPSESSID), which will create a file in a temporary directory on the server, the file in which to store the variables generated by the session.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Just so-called (before any output html) session_start () on each page where you want to use these variables.&amp;nbsp;&lt;/div&gt;&lt;div&gt;This can be done in different ways:&amp;nbsp;&lt;/div&gt;&lt;div&gt;- Automatically (via the directive session.auto_start) method recommended.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;- Via a form with fields filled will be filtered: method advisable.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;- Via the superglobal $ _SESSION variables to retrieve: Always.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;- With or without cookies, knowing that if they are handy to keep the session variables the other cookies can be refused by the customer: (&amp;nbsp;&lt;/div&gt;&lt;div&gt;Again, a minimum of vigilance is required to protect individual identifying and preventing possible identity theft.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The first basic actions is to store logins and passwords in a database (and need to reread the previous section).&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; a good idea is to recover (via the variable superglobal $ _SERVER ['REMOTE_ADDR']) ip of the visitor to ensure its uniqueness:&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;lt;? Php&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;if (isset ($ ip) &amp;amp; &amp;amp; $ ip == $ _SERVER ['REMOTE_ADDR']) {&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; echo "Welcome home, $ username!"&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; }&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;else {&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; header ('Location: login.php');&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; }&amp;nbsp;&lt;/div&gt;&lt;div&gt;?&amp;gt;&amp;nbsp;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4057243784218902902-797243381040830998?l=leechoff.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://leechoff.blogspot.com/2011/01/secure-php.html</link><author>noreply@blogger.com (AMINE)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-4057243784218902902.post-212532271075263949</guid><pubDate>Sat, 29 Jan 2011 22:56:00 +0000</pubDate><atom:updated>2011-01-29T14:56:25.600-08:00</atom:updated><title>Web Application Security</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;Computer security has become increasingly important with the widespread use of Internet in everyday life.&lt;br /&gt;&lt;br /&gt;On the Web (the web site to web-based software) it should protect at least a minimum so they are not diverted from their primary use.&lt;br /&gt;&lt;br /&gt;We'll take a quick tour of the various attacks that can undergo web applications as well as ways to prevent it. The list is not exhaustive but is intended to help you reduce your worries. These examples are mainly based on the PHP platform - which is the most widely used today - but could easily be replicated if you use ASP, etc. ..&lt;br /&gt;&lt;br /&gt;Url malformed&lt;br /&gt;The structure of your site&lt;br /&gt;SQL Injection&lt;br /&gt;Flights sessions&lt;br /&gt;Attacks "man in the middle"&lt;br /&gt;Authentication mechanisms based on Javascript, Java or ActiveX&lt;br /&gt;Cross site scripting&lt;br /&gt;Cookie poisoning&lt;br /&gt;Conclusion&lt;/div&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;Url malformed&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Interest?&lt;/b&gt;&lt;br /&gt;These malformed URLs sent to the web server trying to access unauthorized areas of the server or to enforce orders not provided.&lt;br /&gt;&lt;br /&gt;Examples of these malformed URLs from Apache logs.&lt;br /&gt;&lt;b&gt;Example&lt;/b&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #111111; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; font-weight: bold;"&gt;Exemple d'URLS malforméees&lt;/span&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans; font-size: 13px;"&gt;XXX.XXX.XXX.XXX - - [14/Jul/2003:13:59:47 +0200] "GET /default.ida?XXXXXXXXXXXXXXXXXXXX%u9090%u[...]cbd3%u0%u00=a HTTP/1.0" 404 308 XXX.XXX.XXX.XXX - - [16/Jul/2003:19:34:05+0200] "GET /d/winnt/system32/cmd.exe?/c+dir HTTP/1.0" 404 321&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 16px;"&gt;&lt;b&gt;Comments&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 16px;"&gt;These malformed urls are often caused by scripts or viruses to exploit a known vulnerability in your Web server.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 16px;"&gt;&lt;b&gt;What to do?&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 16px;"&gt;You do not have much to do there, just keep an updated version of your Web server.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 16px;"&gt;Completion&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 16px;"&gt;An example of a virus: &lt;span class="Apple-style-span" style="background-color: blue;"&gt;Code Red&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;The structure of your site&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 16px;"&gt;&lt;b&gt;Interest?&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 16px;"&gt;The files of your website will be able to give valuable information on how to build your application.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 16px;"&gt;This is not a security vulnerability in itself, but may allow such as whether you use php in cgi mod, what is your folder of images you take, etc., etc. ...&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;span style="background-color: white; font-size: 16px;" title="En resumé, ceci peut ammener des gens à consulter des informations que vous n'aviez pas prévu de mettre à disposition; cela peut aider des crackers à trouver des failles dans votre système; Cela peut provoquer une augmentation de la bande passante consommée ralentissant l'"&gt;In summary, this can our services bringing people to view information that you had not planned to make available, this can help crackers to find flaws in your system; This may cause an increase in bandwidth consumption slowing the&amp;nbsp;&lt;/span&gt;&lt;span style="font-size: 16px;" title="affichage de vos pages..."&gt;Showing your page ...&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 16px;"&gt;&lt;b&gt;How do they do?&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 16px;"&gt;By analyzing the source of the page:&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 16px;"&gt;For example you can see IMG src = ". / Pict / my_file.gif" So you conclude that there is a pict file to the root of the server that contains the images, useful if you want to retrieve all the images from a url&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 16px;"&gt;Or with software that do for you compared to a database of signatures (eg Whisker)&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 16px;"&gt;Commentary&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 16px;"&gt;Someone interested in your pictures for example can connect directly via http client preferred http://votre_site/pict/ and a list of all images that are in your file pict.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 16px;"&gt;&lt;b&gt;What to do?&lt;/b&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 16px;"&gt;To protect against an automatic search for common issues, nothing like that to name your files in a way that is unique to you, such as replacing / lib / par. / My_librairies /&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 16px;"&gt;To protect against unwanted access files directly, such as images, you have two options:&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;span style="font-size: 16px;" title="Placez un fichier index.html dans ces dossiers pour que des qu'une personne tente d'accéder directement à ce dossier soit redirigée directement vers ce fichier."&gt;Put an index.html file in these folders so that a person tries to go directly to this folder is redirected directly to the file.&amp;nbsp;&lt;/span&gt;&lt;span style="font-size: 16px;" title="Ceci fonctionne avec tous les serveurs Web, si bien sûr sa configuration autorise la redirection sur les pages index.html (cas le plus courant)"&gt;This works with all Web servers, so of course its configuration allows the redirect pages index.html (common case)&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 16px;"&gt;If you're running Apache, you can use htaccess files and htpassword to give directives to access a file&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 16px;"&gt;Completion&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 16px;"&gt;Whisker&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 16px;"&gt;Other web scanner N-Stealth&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 16px;"&gt;protect_picture class&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: large;"&gt;&lt;b&gt;SQL Injection&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 16px;"&gt;&lt;b&gt;Interest?&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;span title="Si votre site Web est un site dynamique, vous devez avoir un serveur de bases de données derrière qui est probablement un serveur SQL."&gt;If your website is a dynamic site, you must have a database server behind which is probably a SQL server.&amp;nbsp;&lt;/span&gt;&lt;span title="Vous pouvez être sensible à ce genre d'attaques."&gt;You may be sensitive to such attacks.&amp;nbsp;&lt;/span&gt;&lt;span title="L'injection SQL consiste en le détournement de données SQL de son but initial."&gt;SQL injection involves the diversion of SQL data from its original purpose.&amp;nbsp;&lt;/span&gt;&lt;span title="L'exemple le plus flagrant est celui de l'authentification sur un site pour accéder à votre compte."&gt;The most obvious example is that of authentication on a site to access your account.&amp;nbsp;&lt;/span&gt;&lt;span title="Vous avez un login et un password que vous envoyez à l'aide d'un formulaire au script qui va vérifier votre authentification."&gt;You have a login and password that you send using a form script that will check your authentication.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;Example?&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;This script - if it's a php script - could be as follows:&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #111111; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; font-weight: bold;"&gt;Exemple de script php sensible à l'injection SQL&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span style="background-color: white;" title="Ce script - si c'est un script php - pourrait être de la forme suivante :"&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Trebuchet MS', sans; font-size: 13px;"&gt;&amp;lt;?php&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans; font-size: 13px;"&gt;&lt;span class="re0" style="color: blue;"&gt;$user&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span class="re0" style="color: blue;"&gt;$_POST&lt;/span&gt;&lt;span class="br0" style="color: black;"&gt;[&lt;/span&gt;&lt;span class="st0" style="color: #a31515;"&gt;'user'&lt;/span&gt;&lt;span class="br0" style="color: black;"&gt;]&lt;/span&gt;&amp;nbsp;;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans; font-size: 13px;"&gt;&lt;span class="re0" style="color: blue;"&gt;$password&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;a href="http://www.php.net/md5" style="color: #1811cc; text-decoration: none;"&gt;&lt;span class="kw3" style="color: blue;"&gt;md5&lt;/span&gt;&lt;/a&gt;&lt;span class="br0" style="color: black;"&gt;(&lt;/span&gt;&lt;span class="re0" style="color: blue;"&gt;$_POST&lt;/span&gt;&lt;span class="br0" style="color: black;"&gt;[&lt;/span&gt;&lt;span class="st0" style="color: #a31515;"&gt;'password'&lt;/span&gt;&lt;span class="br0" style="color: black;"&gt;]&lt;/span&gt;&lt;span class="br0" style="color: black;"&gt;)&lt;/span&gt;&amp;nbsp;;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans; font-size: 13px;"&gt;&lt;span class="re0" style="color: blue;"&gt;$sql&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span class="st0" style="color: #a31515;"&gt;" SELECT * FROM users WHERE login = '$user' AND password ='$password'"&lt;/span&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans; font-size: 13px;"&gt;&lt;span class="re0" style="color: blue;"&gt;$link&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;a href="http://www.php.net/mysql_connect" style="color: #1811cc; text-decoration: none;"&gt;&lt;span class="kw3" style="color: blue;"&gt;mysql_connect&lt;/span&gt;&lt;/a&gt;&lt;span class="br0" style="color: black;"&gt;(&lt;/span&gt;&lt;span class="st0" style="color: #a31515;"&gt;"localhost"&lt;/span&gt;,&amp;nbsp;&lt;span class="st0" style="color: #a31515;"&gt;"mysql_user"&lt;/span&gt;,&amp;nbsp;&lt;span class="st0" style="color: #a31515;"&gt;"mysql_password"&lt;/span&gt;&lt;span class="br0" style="color: black;"&gt;)&lt;/span&gt;or&amp;nbsp;&lt;a href="http://www.php.net/die" style="color: #1811cc; text-decoration: none;"&gt;&lt;span class="kw3" style="color: blue;"&gt;die&lt;/span&gt;&lt;/a&gt;&lt;span class="br0" style="color: black;"&gt;(&lt;/span&gt;&lt;span class="st0" style="color: #a31515;"&gt;"Could not connect: "&lt;/span&gt;&amp;nbsp;.&amp;nbsp;&lt;a href="http://www.php.net/mysql_error" style="color: #1811cc; text-decoration: none;"&gt;&lt;span class="kw3" style="color: blue;"&gt;mysql_error&lt;/span&gt;&lt;/a&gt;&lt;span class="br0" style="color: black;"&gt;(&lt;/span&gt;&lt;span class="br0" style="color: black;"&gt;)&lt;/span&gt;&lt;span class="br0" style="color: black;"&gt;)&lt;/span&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans; font-size: 13px;"&gt;&lt;span class="re0" style="color: blue;"&gt;$result&lt;/span&gt;&amp;nbsp;= @&lt;a href="http://www.php.net/mysql_db_query" style="color: #1811cc; text-decoration: none;"&gt;&lt;span class="kw3" style="color: blue;"&gt;mysql_db_query&lt;/span&gt;&lt;/a&gt;&lt;span class="br0" style="color: black;"&gt;(&lt;/span&gt;&lt;span class="st0" style="color: #a31515;"&gt;"your_database"&lt;/span&gt;,&lt;span class="re0" style="color: blue;"&gt;$sql&lt;/span&gt;&lt;span class="br0" style="color: black;"&gt;)&lt;/span&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans; font-size: 13px;"&gt;&lt;span class="kw1" style="color: blue;"&gt;if&lt;/span&gt;&amp;nbsp;&lt;span class="br0" style="color: black;"&gt;(&lt;/span&gt;&lt;a href="http://www.php.net/mysql_num_rows" style="color: #1811cc; text-decoration: none;"&gt;&lt;span class="kw3" style="color: blue;"&gt;mysql_num_rows&lt;/span&gt;&lt;/a&gt;&lt;span class="br0" style="color: black;"&gt;(&lt;/span&gt;&lt;span class="re0" style="color: blue;"&gt;$result&lt;/span&gt;&lt;span class="br0" style="color: black;"&gt;)&lt;/span&gt;!=&lt;span class="nu0" style="color: black;"&gt;1&lt;/span&gt;&lt;span class="br0" style="color: black;"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans; font-size: 13px;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans; font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;a href="http://www.php.net/header" style="color: #1811cc; text-decoration: none;"&gt;&lt;span class="kw3" style="color: blue;"&gt;header&lt;/span&gt;&lt;/a&gt;&lt;span class="br0" style="color: black;"&gt;(&lt;/span&gt;&lt;span class="st0" style="color: #a31515;"&gt;'location: user_login.php'&lt;/span&gt;&lt;span class="br0" style="color: black;"&gt;)&lt;/span&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans; font-size: 13px;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans; font-size: 13px;"&gt;&lt;span class="kw1" style="color: blue;"&gt;else&lt;/span&gt;&lt;span class="br0" style="color: black;"&gt;{&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans; font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;a href="http://www.php.net/header" style="color: #1811cc; text-decoration: none;"&gt;&lt;span class="kw3" style="color: blue;"&gt;header&lt;/span&gt;&lt;/a&gt;&lt;span class="br0" style="color: black;"&gt;(&lt;/span&gt;&lt;span class="st0" style="color: #a31515;"&gt;'location: user_authentified.php'&lt;/span&gt;&lt;span class="br0" style="color: black;"&gt;)&lt;/span&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans; font-size: 13px;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans; font-size: 13px;"&gt;&lt;a href="http://www.php.net/mysql_close" style="color: #1811cc; text-decoration: none;"&gt;&lt;span class="kw3" style="color: blue;"&gt;mysql_close&lt;/span&gt;&lt;/a&gt;&lt;span class="br0" style="color: black;"&gt;(&lt;/span&gt;&lt;span class="re0" style="color: blue;"&gt;$link&lt;/span&gt;&lt;span class="br0" style="color: black;"&gt;)&lt;/span&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans; font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace; font-size: 11px;"&gt;?&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;How?&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;What happens if $ _POST ['user'] contains "admin", # "? The query becomes SELECT * FROM users WHERE username = 'admin', # 'AND password =''This amounts to SELECT * FROM users WHERE username =' admin ', so to log in as administrator ... This is that an example of SQL injection, see Further Reading for more information.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;What to do?&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Force the type of your variables with intval, strval, etc ... this will allow you to have the expected type&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Use the addslashes and activate magic_quotes_rpc will escape characters that might alter the meaning of your queries&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;In the example, put&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;select * from users WHERE username and password =''='';&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Do not use the Administrator account the first in your table ...&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Maintain the server version of your database up to date.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Etc, etc. ...&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;ol style="text-align: left;"&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Completion&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;White Paper on SQL Injection&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;Flights sessions&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;Interest?&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Sessions are used almost everywhere now. They can monitor the client during his visit your site to address this problem in the HTTP protocol is a connectionless protocol (in other words, it is not possible to determine which server to client visits What page) This can be done in two ways:&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;using session files stored on the server.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;using cookies that are stored on the client.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;In both cases, the sessions will be used to store personal information from visitors. Able to access these sessions will provide access to sensitive data ... It is not too troublesome if it is in the case of your cart on Amazon that contains your shopping list, but more troublesome when the session contains identification data ...&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;Example?&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Two methods are used to recover a session identifier.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Actively: the hacker trying to retrieve a valid session identifier of a user who just logged in, for example by statistical analysis.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Passively: in the case where the sessions are run on the server side, the links with the session identifier (eg http://mon_site.com/index.php?PHPSESSID=identifiant_session) andTHE link is transmitted to a person Third, this person will&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;able to retrieve information from the session if it has&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;not yet expired.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Reducing the duration of the session. plus that will be short, the less you will have a chance to recover a valid identifier of a session still become unused.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;safeguard the client's IP address in the session and each use of the session, check if it matches the current client;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;How?&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;In both cases, the user gets a session ID is still valid, and retrieves the data it contains.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;What to do?&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;You can reduce the risk of theft of sessions, by:&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace; font-size: 11px;"&gt;&amp;lt;?php&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: green; font-family: 'Courier New', Courier, monospace; font-size: 11px; font-style: italic;"&gt;// start session&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: 11px;"&gt;&lt;a href="http://www.php.net/session_start" style="color: #1811cc; text-decoration: none;"&gt;&lt;span class="kw3" style="color: blue;"&gt;session_start&lt;/span&gt;&lt;/a&gt;&lt;span class="br0" style="color: black;"&gt;(&lt;/span&gt;&lt;span class="br0" style="color: black;"&gt;)&lt;/span&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: green; font-family: 'Courier New', Courier, monospace; font-size: 11px; font-style: italic;"&gt;// check if the previous ip client was the same that the current&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: 11px;"&gt;&lt;span class="kw1" style="color: blue;"&gt;if&lt;/span&gt;&amp;nbsp;&lt;span class="br0" style="color: black;"&gt;(&lt;/span&gt;&lt;a href="http://www.php.net/isset" style="color: #1811cc; text-decoration: none;"&gt;&lt;span class="kw3" style="color: blue;"&gt;isset&lt;/span&gt;&lt;/a&gt;&lt;span class="br0" style="color: black;"&gt;(&lt;/span&gt;&lt;span class="re0" style="color: blue;"&gt;$_SESSION&lt;/span&gt;&lt;span class="br0" style="color: black;"&gt;[&lt;/span&gt;&lt;span class="st0" style="color: #a31515;"&gt;'ip_client'&lt;/span&gt;&lt;span class="br0" style="color: black;"&gt;]&lt;/span&gt;&lt;span class="br0" style="color: black;"&gt;)&lt;/span&gt;&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;&lt;span class="br0" style="color: black;"&gt;(&lt;/span&gt;&lt;span class="re0" style="color: blue;"&gt;$_SESSION&lt;/span&gt;&lt;span class="br0" style="color: black;"&gt;[&lt;/span&gt;&lt;span class="st0" style="color: #a31515;"&gt;'ip_client'&lt;/span&gt;&lt;span class="br0" style="color: black;"&gt;]&lt;/span&gt;&amp;nbsp;!=&amp;nbsp;&lt;span class="re0" style="color: blue;"&gt;$_SERVER&lt;/span&gt;&lt;span class="br0" style="color: black;"&gt;[&lt;/span&gt;&lt;span class="st0" style="color: #a31515;"&gt;'REMOTE_ADDR'&lt;/span&gt;&lt;span class="br0" style="color: black;"&gt;]&lt;/span&gt;&lt;span class="br0" style="color: black;"&gt;)&lt;/span&gt;&lt;span class="br0" style="color: black;"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: 11px;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: 11px;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;span class="co1" style="color: green; font-style: italic;"&gt;// redirection on the login page&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: 11px;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;a href="http://www.php.net/session_destroy" style="color: #1811cc; text-decoration: none;"&gt;&lt;span class="kw3" style="color: blue;"&gt;session_destroy&lt;/span&gt;&lt;/a&gt;&lt;span class="br0" style="color: black;"&gt;(&lt;/span&gt;&lt;span class="br0" style="color: black;"&gt;)&lt;/span&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: 11px;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;a href="http://www.php.net/session_start" style="color: #1811cc; text-decoration: none;"&gt;&lt;span class="kw3" style="color: blue;"&gt;session_start&lt;/span&gt;&lt;/a&gt;&lt;span class="br0" style="color: black;"&gt;(&lt;/span&gt;&lt;span class="br0" style="color: black;"&gt;)&lt;/span&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: 11px;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;a href="http://www.php.net/header" style="color: #1811cc; text-decoration: none;"&gt;&lt;span class="kw3" style="color: blue;"&gt;header&lt;/span&gt;&lt;/a&gt;&lt;span class="br0" style="color: black;"&gt;(&lt;/span&gt;&lt;span class="st0" style="color: #a31515;"&gt;'Location: login.php'&lt;/span&gt;&lt;span class="br0" style="color: black;"&gt;)&lt;/span&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: 11px;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: green; font-family: 'Courier New', Courier, monospace; font-size: 11px; font-style: italic;"&gt;// save the current ip from client&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: 11px;"&gt;&lt;span class="re0" style="color: blue;"&gt;$_SESSION&lt;/span&gt;&lt;span class="br0" style="color: black;"&gt;[&lt;/span&gt;&lt;span class="st0" style="color: #a31515;"&gt;'ip_client'&lt;/span&gt;&lt;span class="br0" style="color: black;"&gt;]&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span class="re0" style="color: blue;"&gt;$_SERVER&lt;/span&gt;&lt;span class="br0" style="color: black;"&gt;[&lt;/span&gt;&lt;span class="st0" style="color: #a31515;"&gt;'REMOTE_ADDR'&lt;/span&gt;&lt;span class="br0" style="color: black;"&gt;]&lt;/span&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace; font-size: 11px;"&gt;?&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #111111; font-family: 'Trebuchet MS', sans; font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #111111; font-family: 'Trebuchet MS', sans; font-size: 13px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;if you are on php5, you can increase the size of the hash of the session identifier: originally laid this directive is 0 (md5) but you can switch to SHA-1 which is the password hash is 160 bits. Change the corresponding directive in php.ini&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: 11px;"&gt;; Select a hash function&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: 11px;"&gt;; 0: MD5&amp;nbsp; &amp;nbsp;(128 bits)&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: 11px;"&gt;; 1: SHA-1 (160 bits)&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: 11px;"&gt;&lt;div class="de1" style="color: black;"&gt;session.hash_function = 1&lt;/div&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #111111; font-family: 'Trebuchet MS', sans; font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Completion&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;White Paper SecureNet Session Riding&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;Attacks like 'man in the middle'&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;Interest?&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;This type of attack is not specific to Web applications; An attack of "man in the middle" is the intrusion of a person in a conversation between two people (client - server)&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;Example?&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;What's the point? Password theft of credit card number when paying on a shopping site online, the reasons are vast and varied.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;How?&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;I do not want to do a course on hacking, so I'll let you read up if you want to know more about the modus operandi of hackers.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;What to do?&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;To prevent such attacks, there must be encrypted transaction between the client and the server through an https server, presence server https ensures the encryption of communication between the client and the server and thereby removes the risk of this type of attack. By cons, if the customer does not have a certificate, you can not ensure that the customer who entered the couple login \ password for your admin account is the administrator of the application. The only way to ensure that you are communicating with the right person and that person listens to the communication is that the client and server have a certificate&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;Completion&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Assess the risk of your site? Achilles&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;Authentication mechanisms based on Javascript, Java or ActiveX&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;Interest?&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;You have a website that contains some authentication (admin section, member area, etc ...) and make sure authentication using ActiveX, Java classes or worse javascript? this can cause security holes because the source code, or at least information on the procedures you use to authenticate may be visible to the customer since the files are sent to the client&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;Example?&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;What's the point? Password theft of credit card number when paying on a shopping site online, the reasons are vast and varied.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;How?&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Just analyze the code of your classes or the source code of your javascript in order to understand how is authentication, hence it is easier for someone looking to authenticate your site as administrator or to impersonate someone to access their member area.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;What to do?&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;To prevent such attacks, it is necessary that everything happens on the server side, and only the identification data are from the client side, nothing like a php script for that:) also allows the Java after all is executed on the server side:)&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;Completion&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Do a search on google with java decompiler class and you will understand :)...&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;Cross site scripting&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;Interest?&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;The cross-site scripting - CSS, or - suffers an enormous essort recent years, partly because this type of faults is unknown to developers, and secondly by the development time still limited applications. It involves the injection script - JavaScript, VBScript - dynamic elements in a web server (php, cgi, etc ...). They can address both the customer at the server. Prennons 2 examples, one for the client to another server.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;Example?&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;The example server (script accepting parameters):&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace; font-size: 11px;"&gt;&amp;lt;?php&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: 11px;"&gt;&lt;span class="re0" style="color: blue;"&gt;$name&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span class="re0" style="color: blue;"&gt;$_GET&lt;/span&gt;&lt;span class="br0" style="color: black;"&gt;[&lt;/span&gt;&lt;span class="st0" style="color: #a31515;"&gt;'NAME'&lt;/span&gt;&lt;span class="br0" style="color: black;"&gt;]&lt;/span&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: 11px;"&gt;&lt;a href="http://www.php.net/echo" style="color: #1811cc; text-decoration: none;"&gt;&lt;span class="kw3" style="color: blue;"&gt;echo&lt;/span&gt;&lt;/a&gt;&amp;nbsp;&lt;span class="re0" style="color: blue;"&gt;$name&lt;/span&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace; font-size: 11px;"&gt;?&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #111111; font-family: 'Trebuchet MS', sans; font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #111111; font-family: 'Trebuchet MS', sans; font-size: 13px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;lt;? Php&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;$ Name = $ _GET ['NAME'];&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;echo $ name;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;?&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;This is a classic example of "hello world". Now what happens if the script instead of NAME = NAME = Mary Pierrick or you pass it&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;NAME = &amp;lt;SCRIPT&amp;gt; print ();&amp;lt;/ SCRIPT&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;? Printing a window will open. Well this example is silly because it is useless to open a window for printing. Now imagine that you get to view the source code of a php script to make the listing of files, etc., it would certainly be embarrassing ... : (&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;The example on the client (as in mail):&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;CSS attacks on the client are typically used to retrieve information from customers such as session ids, passwords, cookie values, etc. ... These attacks are usually made through an email sent to the person again containing CSS in a link. Take the example of a forum administrator can scrupulous, who receives an email indicating that the page does not &amp;lt;a href = "http://www.forum_en_question.com/index.php?forum = &amp;lt;SCRIPT &amp;gt; alert ("I just recover your cookies") &amp;lt;/ SCRIPT&amp;gt; &amp;amp; page = 2 "&amp;gt; http://www.forum_en_question.com/index.php?forum=news&amp;amp;page=2 &amp;lt;/ a&amp;gt; The administrator who not aware of this type of vulnerability will click on the link, and thus activate the script.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;How?&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;With the information collected, the attacker can install a virus, login as administrator, etc ...&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;What to do?&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;To prevent such attacks, you must:&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Always be on guard:)&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Enable magic_quote_rpc which may escape some of the values passed as parameters&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Protecting the variables displayed by htmlentities and htmlspecialchars tags that will idle scripts that may be present&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;Cookie poisoning&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;Interest?&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Cookies will allow you to customize the application according to the customer. These are small files sent to the client containing personalized information such as passwords, the color screen of the site, or I do not know what else. They are only available through the site that you sent it to say that the cookie sent by Google may not be read by another site, and vice versa. Only when the data contained in cookies are sensitive (password, level of identification and all that you go through the head), because the cookie is stored at the client it can be changed. The cookie poisoning attack is to modify the cookie data to bypass the security mechanisms.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;Example?&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;This example comes from Webcohort, and is based on the example&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;a commercial site, one of the typical application of cookies&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;with the famous cart:&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: 11px;"&gt;GET /store/buy.asp?checkout=yes HTTP/1.0&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: 11px;"&gt;Host: www.onlineshop.com&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: 11px;"&gt;Accept: */*&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: 11px;"&gt;Referrer: http://www.onlineshop.com/showprods.asp&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: 11px;"&gt;Cookie: SESSIONID=570321ASDD23SA2321; BasketSize=3;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: 11px;"&gt;Item1=2892; Item2=3210; Item3=9942;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: 11px;"&gt;&lt;div class="de1" style="color: black;"&gt;TotalPrice=16044;&lt;/div&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;GET / store / buy.asp? Checkout = yes HTTP/1.0&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Host: www.onlineshop.com&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Accept: * / *&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Referrer: http://www.onlineshop.com/showprods.asp&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Cookie: SessionID = 570321ASDD23SA2321; BasketSize = 3;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Item1 = 2892; Item2 = 3210; Item3 = 9942;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;TotalPrice = 16044;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;How?&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;In this example, the cookie is sent by the page buy.asp onlineshop.com site. It contains both session ID of the user and the customer's shopping cart: shopping cart that contains three items with their ID and the total price that the user has to pay. Now if the user edits his cookie, he may change his total to pay for a small discount:)&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;What to do?&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;To prevent such attacks, you must:&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Use sessions on the server side, knowing what may be as susceptible to attacks (see session hijacking)&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Encrypt your data in the cookie with strong encryption, like DES, 3DES or better.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Reduce the life of your cookie to a minimum if you do not really need.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;In general, avoid storing information at the client if they prove to be sensitive&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;WebCohort&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Another study of cookie poisoning&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;Conclusion&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;I hope this tutorial has enabled you to understand some of the potential risks of web applications and what are the steps you may want to make them safer. Only the risk 0 does not exist, be aware of this.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Remember that the only limit that can meet a pirate is that of his imagination. Although the majority of quasi hackers are script kiddies, the fact remains that a good hacker will find flaws that were not yet updated. The best way to ensure a good level of protection is to regularly check your safety through safety audits, to keep you informed of various updates vulnerabilities, exploits, etc. ...&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4057243784218902902-212532271075263949?l=leechoff.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://leechoff.blogspot.com/2011/01/web-application-security.html</link><author>noreply@blogger.com (AMINE)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-4057243784218902902.post-3574480085742023357</guid><pubDate>Sat, 29 Jan 2011 22:17:00 +0000</pubDate><atom:updated>2011-01-29T14:17:10.589-08:00</atom:updated><title>PHP flaws to avoid</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 16px;"&gt;&lt;span style="background-color: white;" title="La sécurisation de scripts PHP est une étape importante à prendre en compte lors de toute conception de site ou de script, simple ou complexe."&gt;Securing PHP scripts is an important step to be taken into account in any site design or script, simple or complex.&lt;br /&gt;&lt;/span&gt;&lt;span style="background-color: white;" title="PHP permet déjà si on le configure correctement d'éliminer pas mal de problèmes de sécurité (on parlera à ce sujet notamment des register_globals)."&gt;PHP can already configure properly if you eliminate a lot of security problems (we will talk about this particular register_globals).&amp;nbsp;&lt;/span&gt;&lt;span style="background-color: white;" title="Nous traiterons ensuite quelques exemples pratiques couramment employés dans certains sites web et qu'il ne faut surtout pas faire."&gt;We then address some practical examples commonly used in some websites and it is important not to do.&amp;nbsp;&lt;/span&gt;&lt;span style="background-color: white;" title="Enfin nous parlerons de quelques techniques de dissimulation (Url Rewriting, Force download), pour dissimuler des URL et des fichiers."&gt;Finally we discuss some techniques of concealment (Url Rewriting, force download) to hide files and URLs.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 16px;"&gt;&lt;span style="background-color: white;" title="Enfin nous parlerons de quelques techniques de dissimulation (Url Rewriting, Force download), pour dissimuler des URL et des fichiers."&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="background-color: white;" title="Les register_globals :"&gt;The register_globals:&lt;br /&gt;&lt;/span&gt;&lt;span style="background-color: white;" title="PHP est enfin configuré avec le paramètre register_globals à off par défaut."&gt;PHP is finally configured with the register_globals to off by default.&amp;nbsp;&lt;/span&gt;&lt;span style="background-color: white;" title="Vous pouvez désactiver les register_globals via le fichier php.ini, recherchez la ligne register_globals et attribuez-lui la valeur Off."&gt;You can disable register_globals via php.ini, find the line register_globals and set it to Off.&amp;nbsp;&lt;/span&gt;&lt;span style="background-color: white;" title="Vous pouvez également passer par un fichier .htaccess, vous devrez dans ce cas rajouter la ligne suivante : php_flag register_globals off."&gt;You can also go through. Htaccess file, you should then add the following line: php_flag register_globals off.&amp;nbsp;&lt;/span&gt;&lt;span style="background-color: white;" title="Ceci désactivera les register_globals, qui sont une vraie plaie pour la sécurité d'un script."&gt;This will disable register_globals, which are a real scourge for the security of a script.&lt;br /&gt;&lt;/span&gt;&lt;span style="background-color: white;" title="Nous allons maintenant présenter quelques exemples à ne pas faire et comment corriger les failles potentielles :"&gt;We will now discuss some examples don'ts and how to correct potential vulnerabilities:&lt;br /&gt;&lt;/span&gt;&lt;span style="background-color: white;" title="La faille include :"&gt;The flaw include:&lt;br /&gt;&lt;/span&gt;&lt;span style="background-color: white;" title="Prenons un exemple simple de cette faille : La plupart des sites ayant cette faille utilisent des url du style monsite.com/index.php?page=xxxxx ou xxxxx est une page qui sera inclue comme ceci :"&gt;A simple example of this flaw: Most sites have this vulnerability using the style monsite.com url / index.php? Page = xxxxx or xxxxx is a page that will be included like this:&lt;br /&gt;&lt;/span&gt;&lt;span title="&amp;lt;?php"&gt;&amp;lt;? Php&amp;nbsp;&lt;/span&gt;&lt;span style="background-color: white;" title="if(isset($_GET['page']))"&gt;if (isset ($ _GET ['page']))&amp;nbsp;&lt;/span&gt;&lt;span title="{"&gt;{&amp;nbsp;&lt;/span&gt;&lt;span title="include $_GET['page'].'.php';"&gt;include $ _GET ['page'].'. php';&amp;nbsp;&lt;/span&gt;&lt;span title="}"&gt;}&amp;nbsp;&lt;/span&gt;&lt;span title="else"&gt;else&amp;nbsp;&lt;/span&gt;&lt;span title="{"&gt;{&amp;nbsp;&lt;/span&gt;&lt;span title="include 'accueil.php';"&gt;include 'accueil.php';&amp;nbsp;&lt;/span&gt;&lt;span title="}"&gt;}&amp;nbsp;&lt;/span&gt;&lt;span title="?&amp;gt;"&gt;?&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span title="Maintenant il suffit que le pirate place une page intitulée par exemple page sur son serveur."&gt;Now it is sufficient that the attacker up a page entitled example page on its server.&amp;nbsp;&lt;/span&gt;&lt;span title="Il se rend ensuite sur le site concerné par la faille, et rentre l'url suivante : monsite.com/index.php?page=http://autre_site.com/page."&gt;He then went to the site affected by the fault, and enters the following url: monsite.com / index.php? Page = http://autre_site.com/page.&amp;nbsp;&lt;/span&gt;&lt;span title="La page n'est pas exécutée par PHP sur le site distant, elle sera donc exécutée sur le site possédant la faille."&gt;The page is not executed by PHP on the remote site, it will be executed on the site with the fault.&amp;nbsp;&lt;/span&gt;&lt;span title="Vous pouvez donc vous imaginer des conséquences que cela peut engendrer..."&gt;So you can imagine the consequences that may result ...&amp;nbsp;&lt;/span&gt;&lt;span title="Pour contrer cette faille nous devons simplement utiliser la fonction file_exists() (attention en PHP5 ceci n'est plus forcément valable, assurez-vous d'avoir la directive allow_url_fopen à OFF dans votre fichier php.ini. Voici le code corrigé :"&gt;To counter this flaw we simply use the function file_exists () (in PHP5 this attention is not necessarily valid, make sure you have allow_url_fopen to Off in php.ini. Here is the corrected code:&lt;br /&gt;&lt;/span&gt;&lt;span title="&amp;lt;?php"&gt;&amp;lt;? Php&amp;nbsp;&lt;/span&gt;&lt;span title="if(isset($_GET['page']) AND file_exists($_GET['page'].'.php'))"&gt;if (isset ($ _GET ['page']) AND file_exists ($ _GET ['page'].'. php'))&amp;nbsp;&lt;/span&gt;&lt;span title="{"&gt;{&amp;nbsp;&lt;/span&gt;&lt;span title="include $_GET['page'].'.php';"&gt;include $ _GET ['page'].'. php';&amp;nbsp;&lt;/span&gt;&lt;span title="}"&gt;}&amp;nbsp;&lt;/span&gt;&lt;span title="else"&gt;else&amp;nbsp;&lt;/span&gt;&lt;span title="{"&gt;{&amp;nbsp;&lt;/span&gt;&lt;span title="include 'accueil.php';"&gt;include 'accueil.php';&amp;nbsp;&lt;/span&gt;&lt;span title="}"&gt;}&amp;nbsp;&lt;/span&gt;&lt;span title="?&amp;gt;"&gt;?&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span title="Attention maintenant à la faille dans votre site, c'est à dire qu'un visiteur inclue une page de votre site pour laquelle il n'a pas les droits d'accès en remontant d'un répertoire par exemple..."&gt;Attention now to the flaw in your site, ie a visitor includes a page on your site for which he has no access rights back in a directory for example ...&amp;nbsp;&lt;/span&gt;&lt;span title="Vous pouvez utiliser pour contrer cela les Expressions régulières en enlevant les caractères spéciaux : le slash, le point et l'antislash..."&gt;You can use it to counter the regular expressions by removing the special characters: forward slash, point, and the backslash ...&amp;nbsp;&lt;/span&gt;&lt;span title="qui pourraient prendre place dans l'url."&gt;which could take place in the url.&lt;br /&gt;&lt;/span&gt;&lt;span title="La faille du code HTML et des formulaires :"&gt;The fault code and HTML forms:&lt;br /&gt;&lt;/span&gt;&lt;span title="Il est courant maintenant de demander aux internautes tout ce qui vous passe par la tête, et d'afficher ensuite ces informations."&gt;It is common now to ask users what goes through your head, and then display this information.&amp;nbsp;&lt;/span&gt;&lt;span title="Un internaute mal intentionné pourrait alors y mettre du code HTML pour défacer votre site (rien à craindre pour les donnés, juste pour la présentation)."&gt;A malicious user could then put the HTML code to deface your site (nothing to fear for the given, just for presentation).&lt;br /&gt;&lt;/span&gt;&lt;span title="Voici un exemple de formulaire courant :"&gt;Here is an example of the current form:&lt;br /&gt;&lt;/span&gt;&lt;span title="&amp;lt;form action=&amp;quot;page.php&amp;quot; method=&amp;quot;post&amp;quot;&amp;gt;"&gt;&amp;lt;form action="page.php" method="post"&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;span title="&amp;lt;p&amp;gt;&amp;lt;textarea name=&amp;quot;message&amp;quot;&amp;gt;&amp;lt;/textarea&amp;gt;"&gt;&amp;lt;p&amp;gt; &amp;lt;textarea name="message"&amp;gt; &amp;lt;/ textarea&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;span title="&amp;lt;input type=&amp;quot;submit&amp;quot; value=&amp;quot;Envoyer&amp;quot; /&amp;gt;&amp;lt;/p&amp;gt;"&gt;&amp;lt;input type="submit" value="Envoyer" /&amp;gt; &amp;lt;/ p&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;span title="&amp;lt;/form&amp;gt;"&gt;&amp;lt;/ Form&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span title="Voici maintenant un exemple de code PHP qui récupère la valeur du message tapé et l'affiche sur la page Web :"&gt;Here is an example of PHP code that retrieves the value of the typed message and displays it on the web page:&lt;br /&gt;&lt;/span&gt;&lt;span title="&amp;lt;?php"&gt;&amp;lt;? Php&amp;nbsp;&lt;/span&gt;&lt;span title="if(isset($_POST['message']))"&gt;if (isset ($ _POST ['message']))&amp;nbsp;&lt;/span&gt;&lt;span title="{"&gt;{&amp;nbsp;&lt;/span&gt;&lt;span style="background-color: white;" title="echo $_POST['message']; //On aurait très bien pu stocker le message, cela serait revenu au même"&gt;echo $ _POST ['message'] / / It could very well have to store the message, that would be returned to the same&amp;nbsp;&lt;/span&gt;&lt;span title="}"&gt;}&amp;nbsp;&lt;/span&gt;&lt;span title="?&amp;gt;"&gt;?&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span title="Maintenant imaginions que l'internaute rentre du code html quelconque, il fait ce qu'il veut avec la présentation de votre site, et peut même utiliser du javascript pour rediriger l'internaute n'importe où."&gt;Now imagine that the user enters any html code, he does what he wants with the presentation of your site, and can even use javascript to redirect the user anywhere.&lt;/span&gt;&lt;span title="Nous allons utiliser la fonction htmlentities() pour corriger la faille :"&gt;We'll use the function htmlentities () to fix the flaw:&lt;br /&gt;&lt;/span&gt;&lt;span title="&amp;lt;?php"&gt;&amp;lt;? Php&amp;nbsp;&lt;/span&gt;&lt;span title="if(isset($_POST['message']))"&gt;if (isset ($ _POST ['message']))&amp;nbsp;&lt;/span&gt;&lt;span title="{"&gt;{&amp;nbsp;&lt;/span&gt;&lt;span title="echo htmlentities($_POST['message']); //Les caractères HTML sont désormais affichés et non interprétés"&gt;echo htmlentities ($ _POST ['message']) / / The HTML characters are now displayed and not interpreted&amp;nbsp;&lt;/span&gt;&lt;span title="}"&gt;}&amp;nbsp;&lt;/span&gt;&lt;span title="?&amp;gt;"&gt;?&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span title="Les failles de type SQL injection :"&gt;Vulnerabilities like SQL injection:&lt;br /&gt;&lt;/span&gt;&lt;span title="Les failles de type SQL injection consistent à exécuter des requêtes arbitraires sur une base de données."&gt;The vulnerabilities include SQL injection to execute arbitrary queries on a database.&lt;/span&gt;&lt;span title="En général ces failles sont utilisées grâce à un formulaire."&gt;In general, these vulnerabilities are used through a form.&amp;nbsp;&lt;/span&gt;&lt;span title="Imaginions que nous ayons une table membres et que notre requête pour savoir si un membre est bien identifié est la suivante :"&gt;Imagine that we have a table that our members and request to see if a member is identified as follows:&lt;br /&gt;&lt;/span&gt;&lt;span title="mysql_query(&amp;quot;SELECT login,passe FROM membres WHERE login='&amp;quot;.$_POST['login'].&amp;quot;' AND passe='&amp;quot;.$_POST['passe'].&amp;quot;'&amp;quot;);"&gt;mysql_query ("SELECT login, password FROM members WHERE login ='".$_ POST ['login password ='".$_']."' AND POST [' password']."'");&lt;br /&gt;&lt;/span&gt;&lt;span title="login et passe sont deux champs d'un formulaire."&gt;login and password are two fields of a form.&amp;nbsp;&lt;/span&gt;&lt;span title="Imaginions maintenant que nous rentriions cette valeur dans le champ login : ' OR 1=1&amp;quot;); #. La requête exécutée par PHP devient la suivante :"&gt;Now imagine that we rentriions this value in the username: 'OR 1 = 1 ") #. The motion carried by PHP becomes:&lt;br /&gt;&lt;/span&gt;&lt;span title="mysql_query(&amp;quot;SELECT login,passe FROM membres WHERE login='' OR 1=1&amp;quot;);"&gt;mysql_query ("SELECT login, password FROM members WHERE username =''OR 1 = 1");&lt;br /&gt;&lt;/span&gt;&lt;span title="Comme la condition OR 1=1 est toujours vraie, la requête est exécutée et le membre peut se connecter sans aucun pseudo."&gt;As the condition OR 1 = 1 is always true, the query is executed and the member can connect without any ID.&lt;br /&gt;&lt;/span&gt;&lt;span title="Pour remédier à cette faille, nous allons échapper les caractères spéciaux en utilisant la fonction mysql_real_escape_string (cela est aussi valable pour une insertion dans une base de données) :"&gt;To remedy this flaw, we will escape special characters using mysql_real_escape_string (this is also valid for insertion into a database):&lt;br /&gt;&lt;/span&gt;&lt;span title="Les magic_quotes si elles sont activées vont automatiquement échapper les caractères, voilà pourquoi on doit toujours regarder si cette fonction est active avant d'échapper quoi que ce soit."&gt;The magic_quotes if enabled will automatically escape characters, that is why we should always look if this feature is active before escaping anything.&amp;nbsp;&lt;/span&gt;&lt;span title="Voici le code corrigé :"&gt;Here is the corrected code:&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 16px;"&gt;&lt;span title="Voici le code corrigé :"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, Arial, Helvetica; font-size: 13px;"&gt;&lt;span style="color: #0000bb; font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 16px;"&gt;&lt;span title="Voici le code corrigé :"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, Arial, Helvetica; font-size: 13px;"&gt;&lt;span style="color: #0000bb; font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 16px;"&gt;&lt;span title="Voici le code corrigé :"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, Arial, Helvetica; font-size: 13px;"&gt;&lt;span style="color: #0000bb; font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&amp;lt;?php&amp;nbsp;&lt;/span&gt;&lt;span style="color: #ff8000; font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;/**&amp;nbsp;&lt;br style="font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;*&amp;nbsp;Si&amp;nbsp;des&amp;nbsp;slashes&amp;nbsp;ont&amp;nbsp;été&amp;nbsp;ajoutés&amp;nbsp;via&amp;nbsp;les&amp;nbsp;magic&amp;nbsp;quotes,&amp;nbsp;on&amp;nbsp;les&amp;nbsp;enlève&amp;nbsp;&lt;br style="font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;*/&amp;nbsp;&lt;/span&gt;&lt;span style="color: #007700; font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;if(&lt;/span&gt;&lt;span style="color: #0000bb; font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;get_magic_quotes_gpc&lt;/span&gt;&lt;span style="color: #007700; font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;()===&lt;/span&gt;&lt;span style="color: #0000bb; font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;1&lt;/span&gt;&lt;span style="color: #007700; font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;)&amp;nbsp;&lt;br style="font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;{&amp;nbsp;&lt;br style="font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #0000bb; font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;$_POST&lt;/span&gt;&lt;span style="color: #007700; font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;[&lt;/span&gt;&lt;span style="color: #dd0000; font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;'login'&lt;/span&gt;&lt;span style="color: #007700; font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;]&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span style="color: #0000bb; font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;stripslashes&lt;/span&gt;&lt;span style="color: #007700; font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;(&lt;/span&gt;&lt;span style="color: #0000bb; font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;$_POST&lt;/span&gt;&lt;span style="color: #007700; font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;[&lt;/span&gt;&lt;span style="color: #dd0000; font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;'login'&lt;/span&gt;&lt;span style="color: #007700; font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;]);&amp;nbsp;&lt;br style="font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #0000bb; font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;$_POST&lt;/span&gt;&lt;span style="color: #007700; font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;[&lt;/span&gt;&lt;span style="color: #dd0000; font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;'passe'&lt;/span&gt;&lt;span style="color: #007700; font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;]&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span style="color: #0000bb; font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;stripslashes&lt;/span&gt;&lt;span style="color: #007700; font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;(&lt;/span&gt;&lt;span style="color: #0000bb; font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;$_POST&lt;/span&gt;&lt;span style="color: #007700; font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;[&lt;/span&gt;&lt;span style="color: #dd0000; font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;'passe'&lt;/span&gt;&lt;span style="color: #007700; font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;]);&amp;nbsp;&lt;br style="font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;}&amp;nbsp;&lt;br style="font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span style="color: #ff8000; font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;/**&amp;nbsp;&lt;br style="font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;*&amp;nbsp;On&amp;nbsp;protège&amp;nbsp;les&amp;nbsp;chaînes&amp;nbsp;&lt;br style="font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;*/&amp;nbsp;&lt;br style="font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;br style="font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #0000bb; font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;$_POST&lt;/span&gt;&lt;span style="color: #007700; font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;[&lt;/span&gt;&lt;span style="color: #dd0000; font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;'login'&lt;/span&gt;&lt;span style="color: #007700; font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;]&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span style="color: #0000bb; font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;mysql_real_escape_string&lt;/span&gt;&lt;span style="color: #007700; font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;(&lt;/span&gt;&lt;span style="color: #0000bb; font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;$_POST&lt;/span&gt;&lt;span style="color: #007700; font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;[&lt;/span&gt;&lt;span style="color: #dd0000; font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;'login'&lt;/span&gt;&lt;span style="color: #007700; font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;]);&amp;nbsp;&lt;br style="font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #0000bb; font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;$_POST&lt;/span&gt;&lt;span style="color: #007700; font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;[&lt;/span&gt;&lt;span style="color: #dd0000; font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;'passe'&lt;/span&gt;&lt;span style="color: #007700; font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;]&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span style="color: #0000bb; font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;mysql_real_escape_string&lt;/span&gt;&lt;span style="color: #007700; font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;(&lt;/span&gt;&lt;span style="color: #0000bb; font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;$_POST&lt;/span&gt;&lt;span style="color: #007700; font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;[&lt;/span&gt;&lt;span style="color: #dd0000; font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;'passe'&lt;/span&gt;&lt;span style="color: #007700; font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;]);&amp;nbsp;&lt;br style="font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span style="color: #ff8000; font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;/**&amp;nbsp;&lt;br style="font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;*&amp;nbsp;On&amp;nbsp;effectue&amp;nbsp;la&amp;nbsp;requête&amp;nbsp;&lt;br style="font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;*/&amp;nbsp;&lt;br style="font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #0000bb; font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;mysql_query&lt;/span&gt;&lt;span style="color: #007700; font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;(&lt;/span&gt;&lt;span style="color: #dd0000; font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;"SELECT&amp;nbsp;login,passe&amp;nbsp;FROM&amp;nbsp;membres&amp;nbsp;WHERE&amp;nbsp;login='"&lt;/span&gt;&lt;span style="color: #007700; font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;.&lt;/span&gt;&lt;span style="color: #0000bb; font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;$_POST&lt;/span&gt;&lt;span style="color: #007700; font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;[&lt;/span&gt;&lt;span style="color: #dd0000; font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;'login'&lt;/span&gt;&lt;span style="color: #007700; font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;].&lt;/span&gt;&lt;span style="color: #dd0000; font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;"'&amp;nbsp;AND&amp;nbsp;passe='"&lt;/span&gt;&lt;span style="color: #007700; font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;.&lt;/span&gt;&lt;span style="color: #0000bb; font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;$_POST&lt;/span&gt;&lt;span style="color: #007700; font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;[&lt;/span&gt;&lt;span style="color: #dd0000; font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;'passe'&lt;/span&gt;&lt;span style="color: #007700; font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;].&lt;/span&gt;&lt;span style="color: #dd0000; font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;"'"&lt;/span&gt;&lt;span style="color: #007700; font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;);&lt;/span&gt;&lt;span style="color: #0000bb; font-family: Verdana, Arial, Helvetica; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4057243784218902902-3574480085742023357?l=leechoff.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://leechoff.blogspot.com/2011/01/php-flaws-to-avoid.html</link><author>noreply@blogger.com (AMINE)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-4057243784218902902.post-1392305945037052241</guid><pubDate>Sat, 29 Jan 2011 21:41:00 +0000</pubDate><atom:updated>2011-01-30T06:24:16.071-08:00</atom:updated><title>Top 7 PHP Security Blunders</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="color: #555555; font-family: Verdana, Geneva, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="line-height: 19px;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="color: black; font-family: arial, sans-serif; font-size: 16px; font-weight: normal; line-height: normal;"&gt;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;This&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;topic&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;has&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;pretensions&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;to group&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;the&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;most common&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;PHP&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;vulnerabilities&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;and&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;the&lt;/span&gt;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;most&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;dangerous.&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;I will try to&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;hold&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;a speech&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;accessible&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;to&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;insiders&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;as&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;beginners&lt;/span&gt;&lt;span title="Cliquer ici pour voir d'autres traductions"&gt;.&lt;/span&gt;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;Allusions&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;to&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;PHP functions&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;can&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;be&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;made&lt;/span&gt;&lt;span title="Cliquer ici pour voir d'autres traductions"&gt;,&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;this is&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;not the&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;role&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;of&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;this&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;subject&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;that&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;you&lt;/span&gt;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;learn to&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;use them&lt;/span&gt;&lt;span title="Cliquer ici pour voir d'autres traductions"&gt;, so I&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;invite&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;you&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;to&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;refer to&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;the&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;PHP documentation&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;for&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;the terms&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;that&lt;/span&gt;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;you&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;would be a problem&lt;/span&gt;&lt;span title="Cliquer ici pour voir d'autres traductions"&gt;.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;These&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;texts&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;are copyright free&lt;/span&gt;&lt;span title="Cliquer ici pour voir d'autres traductions"&gt;,&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;for&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;my part&lt;/span&gt;&lt;span title="Cliquer ici pour voir d'autres traductions"&gt;, if&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;you&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;want to&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;use on&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;your&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;site&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;or&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;forum&lt;/span&gt;&lt;span title="Cliquer ici pour voir d'autres traductions"&gt;,&lt;/span&gt;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;thank you&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;for&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;showing the origin&lt;/span&gt;&lt;span title="Cliquer ici pour voir d'autres traductions"&gt;,&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;and&lt;/span&gt;&amp;nbsp;&lt;span class="hps atn" title="Cliquer ici pour voir d'autres traductions"&gt;(&lt;/span&gt;&lt;span title="Cliquer ici pour voir d'autres traductions"&gt;or&lt;/span&gt;&lt;span title="Cliquer ici pour voir d'autres traductions"&gt;)&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;author&lt;/span&gt;&amp;nbsp;&lt;span class="hps atn" title="Cliquer ici pour voir d'autres traductions"&gt;(&lt;/span&gt;&lt;span title="Cliquer ici pour voir d'autres traductions"&gt;s&lt;/span&gt;&lt;span title="Cliquer ici pour voir d'autres traductions"&gt;)&lt;/span&gt;&lt;span title="Cliquer ici pour voir d'autres traductions"&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="color: #555555; font-family: Verdana, Geneva, sans-serif; font-size: x-small;"&gt;&lt;b&gt;&lt;br /&gt;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;1&lt;/span&gt;&lt;span title="Cliquer ici pour voir d'autres traductions"&gt;.&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;The&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;variables&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;in&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;the&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;URL&lt;/span&gt;&lt;br /&gt;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;2&lt;/span&gt;&lt;span title="Cliquer ici pour voir d'autres traductions"&gt;.&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;Defects&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;redirection&lt;/span&gt;&lt;br /&gt;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;3&lt;/span&gt;&lt;span title="Cliquer ici pour voir d'autres traductions"&gt;.&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;Faille&lt;/span&gt;&amp;nbsp;&lt;span class="hps atn" title="Cliquer ici pour voir d'autres traductions"&gt;Include (&lt;/span&gt;&lt;span title="Cliquer ici pour voir d'autres traductions"&gt;)&lt;/span&gt;&lt;br /&gt;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;4&lt;/span&gt;&lt;span title="Cliquer ici pour voir d'autres traductions"&gt;.&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;XSS vulnerabilities&lt;/span&gt;&lt;br /&gt;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;5&lt;/span&gt;&lt;span title="Cliquer ici pour voir d'autres traductions"&gt;.&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;Faults&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;Cookies&lt;/span&gt;&lt;br /&gt;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;6&lt;/span&gt;&lt;span title="Cliquer ici pour voir d'autres traductions"&gt;.&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;Faille&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;urlencode&lt;/span&gt;&amp;nbsp;&lt;span class="hps atn" title="Cliquer ici pour voir d'autres traductions"&gt;(&lt;/span&gt;&lt;span title="Cliquer ici pour voir d'autres traductions"&gt;)&lt;/span&gt;&lt;br /&gt;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;7&lt;/span&gt;&lt;span title="Cliquer ici pour voir d'autres traductions"&gt;.&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;Require&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;fault&lt;/span&gt;&amp;nbsp;&lt;span class="hps atn" title="Cliquer ici pour voir d'autres traductions"&gt;(&lt;/span&gt;&lt;span class="" title="Cliquer ici pour voir d'autres traductions"&gt;)&lt;/span&gt;&lt;br /&gt;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;8&lt;/span&gt;&lt;span title="Cliquer ici pour voir d'autres traductions"&gt;.&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;Tips&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;and&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;tricks&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;to&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;stay&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;dry&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="line-height: 14px;"&gt;&lt;span class="Apple-style-span" style="color: #555555; font-family: Verdana, Geneva, sans-serif; font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 14px;"&gt;&lt;span class="Apple-style-span" style="color: #555555; font-family: Verdana, Geneva, sans-serif; font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 14px;"&gt;&lt;span class="Apple-style-span" style="color: #555555; font-family: Verdana, Geneva, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: black; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13px; line-height: normal;"&gt;############################# N°1 #############################&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 14px;"&gt;&lt;span class="Apple-style-span" style="color: #555555; font-family: Verdana, Geneva, sans-serif; font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 14px;"&gt;&lt;span class="Apple-style-span" style="color: #555555; font-family: Verdana, Geneva, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: black; font-family: arial, sans-serif; font-size: 16px; line-height: normal;"&gt;&lt;span style="background-color: white;" title="1."&gt;1.&amp;nbsp;&lt;/span&gt;&lt;span title="Variables a l'air, gaffe aux courrants d'air."&gt;Variables air gaffe to air currents.&lt;br /&gt;&lt;/span&gt;&lt;span style="background-color: white;" title="Un script est potentiellement exploitable quand un visiteur lambda peut agir librement sur vos variables, soit quand elles passent par une URL, comme suit : http://www.site.com/admin.php?loggin=1, soit quand vos identifiants de"&gt;A script is potentially exploitable when a visitor does can act freely on your variables, either when they pass through a URL, as follows: http://www.site.com/admin.php?loggin=1 or when your IDs&amp;nbsp;&lt;/span&gt;&lt;span style="background-color: white;" title="connexion sont contenus dans votre URL (à savoir une URL qui ressemblerait à http://www.site.com/admin.php?loggin=arthur&amp;amp;pass=toto)."&gt;connection are contained in your URL (ie a URL that looks like http://www.site.com/admin.php?loggin=arthur&amp;amp;pass=toto).&amp;nbsp;&lt;/span&gt;&lt;span style="background-color: white;" title="A partir du moment ou une personne a accès à des informations sensibles ou qu'il peut modifier une variable dans votre URL qui peut influer sur sa simple condition de visiteur à travers votre site, vous devez vous estimer en danger."&gt;From the moment a person has access to sensitive information or can modify a variable in your URL, which can affect its condition of mere visitor through your site, you need to estimate risk.&lt;br /&gt;&lt;/span&gt;&lt;span style="background-color: white;" title="Pourquoi ?"&gt;Why?&amp;nbsp;&lt;/span&gt;&lt;span style="background-color: white;" title="Même si cela puisse semble évident à la pluspart des codeurs, cette faille de sécurité se retrouve parfois sur le net, voir (et là c'est plus grave) dans des scripts installables sur vos sites, il faut donc veiller à ce qu'aucune"&gt;Although this may seem obvious to the greater part of the coders, this vulnerability is sometimes found on the net, see (and there is more severe) in scripts installable on your sites, so make sure that no&amp;nbsp;&lt;/span&gt;&lt;span style="background-color: white;" title="variable sensible ou contrôlant l'acces à une page protégée ne se trouve dans vos URLs."&gt;sensitive variable or control access to protected page not found in your URLs.&lt;br /&gt;&lt;/span&gt;&lt;span style="background-color: white;" title="Comment y remedier ?"&gt;How to remedy?&amp;nbsp;&lt;/span&gt;&lt;span style="background-color: white;" title="L'utilisation des sessions ou des cookies est fortement recommandée dans ce cas : Elle vous évitera d'avoir à trainer une variable &amp;quot;sensible&amp;quot; dans vos URLs, et vos connexions à vos pages protégées se feront de façon transparente, soit en faisant transiter vos"&gt;The use of cookies or sessions is strongly recommended in this case: It will save you having to drag a variable "sensitive" in your URLs and your connections to your pages will be protected in a transparent manner, either by passing your&amp;nbsp;&lt;/span&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;login information between pages with a session ID, either a file containing your credentials on your computer to be read by your site.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 14px;"&gt;&lt;span class="Apple-style-span" style="color: #555555; font-family: Verdana, Geneva, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: black; font-family: arial, sans-serif; font-size: 16px; line-height: normal;"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 14px;"&gt;&lt;span class="Apple-style-span" style="color: #555555; font-family: Verdana, Geneva, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: black; font-family: arial, sans-serif; font-size: 16px; line-height: normal;"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman';"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="line-height: 14px;"&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman';"&gt;&lt;span class="Apple-style-span" style="color: #555555; font-family: Verdana, Geneva, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: black; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13px; line-height: normal;"&gt;############################# N°2 #############################&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman';"&gt;&lt;span class="Apple-style-span" style="color: #555555; font-family: Verdana, Geneva, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: black; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13px; line-height: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;2. Redirection? Not a solution.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;When you put at the disposal of your members private access, they must log a malicious person can still gain access to your protected areas if the only protection is automatic redirection. What kind of codes are infected?&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;If ($ password! == "Pouletgrille") {print '&amp;lt;meta http-equiv="refresh" content="1; URL=?page=connexion"&amp;gt;';}&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;Why? What will happen when the Piratini will enter a bad password? It will happen on your page not protected and will be immediately redirected to an error page, and this is the error: The visitor can still block the browser, or save your page, and the entire vera your "protected", where it will perform its misdeeds.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;How about it? It's simple, takes any case that the contents of your protected area appears never, NEVER, NEVER, JAMAIIIIS page on your visitors, not even a microsecond, the easiest way to fix this problem is to act as follows:&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;If ($ password == "Pouletgrille") {Print'Insérez here inside your admin section '} else {print'Erreur connection! View the form of identification ';}&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;It is a basic method (probably too much.) But it has the merit of protecting you.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman';"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="line-height: 14px;"&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman';"&gt;&lt;span class="Apple-style-span" style="color: #555555; font-family: Verdana, Geneva, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: black; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13px; line-height: normal;"&gt;############################# N°3 #############################&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman';"&gt;&lt;span class="Apple-style-span" style="color: #555555; font-family: Verdana, Geneva, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: black; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13px; line-height: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;3. The flaw Include ()&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;Famous as widely used, the flaw allows the attacker to include taking full control of your site: Add, delete or modify files, view the contents (password, attention), or even worse, store malware on your webspace if your code looks in this configuration, you worry:&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&amp;lt;? Php include ("$ page")?&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;Pourqoi? This way, you integrate one page to another page, for example, through this link: http://www.votresite.com/index.php?page=accueil.php. This method fills his role, you have the requested file on your page, and sheep are kept. Well no! Sheep are not kept well, look, there is already a knockout, and the others will soon be attacked, how? The attacker can also integrate its malicious pages (like this: http://www.votresite.com/?page=http://www.sitedupirate.com/script.txt, and as PHP is a wonderful language, it may do ANYTHING.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;How about it? There are several solutions: Here is a list of alternatives most currents&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman';"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="line-height: 14px;"&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman';"&gt;&lt;span class="Apple-style-span" style="color: #555555; font-family: Verdana, Geneva, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: black; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13px; line-height: normal;"&gt;############################# N°4 #############################&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman';"&gt;&lt;span class="Apple-style-span" style="color: #555555; font-family: Verdana, Geneva, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: black; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13px; line-height: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;4. The XSS? It gives me herpes!&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;If you offer your visitors a guestbook, a forum (first version of phpBB, warning.) Or a space where they can freely post messages on your site, this area is potentially dangerous. If entering this code in the space where visitors can post a message, a pop-up window opens, you worry (this test does not cost anything to do, but can be very important.)&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;Hello! &amp;lt;script&amp;gt; window.open ("http://www.monsite.com/) &amp;lt;/ script&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;Why? You are victims of XSS, but what exactly is this creature here? The exploitation of a security bug that allows your visitors to execute scripts javascript, for example, what can you do with it? Steal the contents of your login cookie (Yabon, we will be able to connect to your forum under your account or your site in the administration), open up the free advertising on your site, redirect visitors to pages infected by viruses, only good things full of iron and calcium.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;How about it? There are many ways to solve this problem: Define your own text as the HTML (like this: $ message = htmlspecialchars ($ message), so the javascript code is not interpreted and will be written in html, is the simplest method, the most widespread and cleanest.), or inhibit the use of "javascript" (and, no javascript can be executed), as follows: $ message = str_replace ("java script :","",$ message); (for example, the forum Pcinpact decided to impose a space between java and script, in addition to imposing writing messages in html.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman';"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="line-height: 14px;"&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman';"&gt;&lt;span class="Apple-style-span" style="color: #555555; font-family: Verdana, Geneva, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: black; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13px; line-height: normal;"&gt;############################# N°5 #############################&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman';"&gt;&lt;span class="Apple-style-span" style="color: #555555; font-family: Verdana, Geneva, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: black; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13px; line-height: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;5. The flaw cookies? Nay!&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;Cookies allow a loophole in a very special configuration, using a login cookie to transform into that of someone else.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;Why? If the connection to the member section, the individual logs in with their username and password, then get her little cookie (and do not get that if he entered the correct credentials) and then see his username in the cookie, and only the user name appear, the script performs its role, your pages will verify that the cookie exists, and uses the user name for its access rights, but there is a problem: The user can just malicious outsmart your safety as well, he certainly made good use of identifiers, so it has received a cookie automatically generated, and all that, but once it's the cookie? He changed his name, and hop hop hop, neither one nor two, he's with your username, and can do what he pleases.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;How to solve this problem? By storing the username and password in cookies, so even if the person changes the username, the password does not always agree. The flaw cookie can often be coupled with XSS can login to your member area, even if your password is encrypted. It is therefore recommended to link your security system with verification IP reloging ask the member if a conflict of IP database and the one that wants to connect.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman';"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="line-height: 14px;"&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman';"&gt;&lt;span class="Apple-style-span" style="color: #555555; font-family: Verdana, Geneva, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: black; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13px; line-height: normal;"&gt;############################# N°6 #############################&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman';"&gt;&lt;span class="Apple-style-span" style="color: #555555; font-family: Verdana, Geneva, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: black; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13px; line-height: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;6. The flaw urldecode () in SQL queries. (By Savory)&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;Cons used phpbb and phpmyadmin now.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;For example to quote the code of phpbb viewtopic:&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;Highlight_match $ = $ highlight ='';&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;if (isset ($ HTTP_GET_VARS ['highlight']))&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;{&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;/ / Split words and phrases&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;$ Words = explode ('', trim (htmlspecialchars (urldecode ($ HTTP_GET_VARS ['highlight']))));&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;for ($ i = 0; $ i &amp;lt;sizeof ($ words); $ i + +)&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;if url encoded 'in 27% and then re-urlencode% in 2527 we can inject a' nose of the application and then inject php code.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;For example to quote one of santy [...] highlight =% 2527.passthru ($ rush).% 2527 &amp;amp; id = rush&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;I'll try to find additional information for this flaw and explain more. (Or if someone wants to stick to it ..)&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman';"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="line-height: 14px;"&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman';"&gt;&lt;span class="Apple-style-span" style="color: #555555; font-family: Verdana, Geneva, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: black; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13px; line-height: normal;"&gt;############################# N°7 #############################&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman';"&gt;&lt;span class="Apple-style-span" style="color: #555555; font-family: Verdana, Geneva, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: black; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13px; line-height: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;7. The flaw require ()&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;Like the include quoted above except that it is sensitive to gender null byte% 00&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;If for example we require ("/ home / web / lib /" $. Trick.. "Php");&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;poisoner can trick via cookie / post / get% 00 and append it to the end to remove the ". php" therefore it is absolutely recommended to use require_once and static variables.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;After that is the sql injection can lead up to an invasion of the bone:&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;The example speaks for itself&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;1 'OR 1 = 1 INTO OUTFILE' / var / www / htdocs / site / kikoo.php "FIELDS TERMINATED BY '&amp;lt;? Include ($ p); exit ;?&amp;gt;'/*&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;we can replace 'by "and URLencode &amp;lt;? include ($ p) exit;?&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;in% 3C% 3Finclude% 28% 24p% 29% 3B% 3F% 3Bexit% 3E&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;hop on to a factory include a condition to know the relative path wwwroot can be spotted by bugger page.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;I'll try to find additional information for this flaw and explain more. (Or if someone wants to stick to it ..)&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman';"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="line-height: 14px;"&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman';"&gt;&lt;span class="Apple-style-span" style="color: #555555; font-family: Verdana, Geneva, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: black; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13px; line-height: normal;"&gt;############################# N°8 #############################&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman';"&gt;&lt;span class="Apple-style-span" style="color: #555555; font-family: Verdana, Geneva, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: black; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13px; line-height: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;8. Tips and Tricks&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;Follow OSHA&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;Always use &amp;lt;? Php (and not &amp;lt;?) For reasons of portability and compatibility with future versions of php.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;Do not let error messages&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;Avoid getting in creating accessible pages: You must be the only one to have access to error messages. (Or use error_reporting (0);)&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;Check the integrity of files used&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;Always use the basedir (); to be sure that the files in the URLs are in the same directory (and not imported from other exotic locations)&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;Encode all passwords&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;Sample Procedure:&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;In the database, if you have user account, do not write their passwords "in clear":&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;use the command md5 ():&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;$ Mdp_chiffre = md5 ($ password);&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;To check the password of a user at its connection example, do:&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;$ A_verifier = md5 ($ ce_qui_a_ete_saisi);&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;and compare what you get with what is stored in the database. Thus, anyone accessing the contents of the user table will not have their password provided. (Note: instead of md5 (), you can use mcrypt, mhash, crypt, etc.).&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman';"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="line-height: 14px;"&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman';"&gt;&lt;span class="Apple-style-span" style="color: #555555; font-family: Verdana, Geneva, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: black; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13px; line-height: normal;"&gt;#################################################################&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman';"&gt;&lt;span class="Apple-style-span" style="color: #555555; font-family: Verdana, Geneva, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: black; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13px; line-height: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: white;" title="identifiants de connexion entre les pages par un ID de session, soit par un fichier contenant vos identifiants installé sur votre ordinateur qui sera lu par votre site."&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;Finally, remember that security holes are not necessarily your fault, they can be found in the pre-created scripts that you install, and they are all the more dangerous a hacker can know the code exact source of these scripts, so check everything that comes into your FTP.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4057243784218902902-1392305945037052241?l=leechoff.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://leechoff.blogspot.com/2011/01/top-7-php-security-blunders.html</link><author>noreply@blogger.com (AMINE)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-4057243784218902902.post-5400268120080251734</guid><pubDate>Sat, 29 Jan 2011 20:59:00 +0000</pubDate><atom:updated>2011-01-29T12:59:25.781-08:00</atom:updated><title>Php script generator typos</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span class="Apple-style-span" style="color: #555555; font-family: Verdana, Geneva, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="line-height: 19px;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="color: black; font-family: arial, sans-serif; font-size: 16px; font-weight: normal; line-height: normal;"&gt;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;This&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;php script&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;generates&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;typos&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;for&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;a&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;given keyword&lt;/span&gt;&lt;span title="Cliquer ici pour voir d'autres traductions"&gt;.&lt;/span&gt;&lt;br /&gt;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;This&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;php&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;script&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;will&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;help you increase&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;traffic&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;to&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;your&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;web pages&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;by getting&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;visitors&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;who&lt;/span&gt;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;make&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;mistakes&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;during&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;their&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;search&lt;/span&gt;&amp;nbsp;&lt;span class="hps" title="Cliquer ici pour voir d'autres traductions"&gt;engines&lt;/span&gt;&lt;span class="" title="Cliquer ici pour voir d'autres traductions"&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #555555; font-family: Verdana, Geneva, sans-serif; font-size: x-small; line-height: 19px;"&gt;&lt;b&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; border-collapse: collapse; color: #110000; font-family: Arial, Helvetica, sans-serif; font-size: 13px; font-weight: normal; line-height: normal;"&gt;&lt;pre class="php" style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(49, 135, 150); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(49, 135, 150); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(49, 135, 150); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(49, 135, 150); border-top-style: solid; border-top-width: 1px; clear: none; color: #318796; font-family: monospace; font-size: 12px; line-height: 1.333; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: visible; overflow-y: visible; padding-bottom: 10px; padding-left: 10px; padding-right: 10px; padding-top: 10px; white-space: pre; width: auto;"&gt;&lt;span style="color: #666666; font-style: italic;"&gt;////////////////////////Modifier ci-dessous///////////////////&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #666666; font-style: italic;"&gt;// Générer les fautes de frappe pour ce mot : &lt;/span&gt;&lt;br /&gt;&lt;span style="color: #000088;"&gt;$kw&lt;/span&gt; &lt;span style="color: #339933;"&gt;=&lt;/span&gt; &lt;span style="color: blue;"&gt;"google"&lt;/span&gt;&lt;span style="color: #339933;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #666666; font-style: italic;"&gt;// résultats :&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #b1b100;"&gt;echo&lt;/span&gt; &lt;span style="color: blue;"&gt;"&amp;lt;h1&amp;gt;Fautes de frappes&amp;lt;/h1&amp;gt;"&lt;/span&gt;&lt;span style="color: #339933;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #b1b100;"&gt;echo&lt;/span&gt; &lt;span style="color: blue;"&gt;"&amp;lt;h2&amp;gt;Oubli de lettres : &amp;lt;/h2&amp;gt;"&lt;/span&gt;&lt;span style="color: #339933;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #b1b100;"&gt;echo&lt;/span&gt; oubli_lettres&lt;span style="color: #009900;"&gt;(&lt;/span&gt;&lt;span style="color: #000088;"&gt;$kw&lt;/span&gt;&lt;span style="color: #009900;"&gt;)&lt;/span&gt;&lt;span style="color: #339933;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #b1b100;"&gt;echo&lt;/span&gt; &lt;span style="color: blue;"&gt;"&amp;lt;h2&amp;gt;Inversion de lettres : &amp;lt;/h2&amp;gt;"&lt;/span&gt;&lt;span style="color: #339933;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #b1b100;"&gt;echo&lt;/span&gt; inversion_lettres&lt;span style="color: #009900;"&gt;(&lt;/span&gt;&lt;span style="color: #000088;"&gt;$kw&lt;/span&gt;&lt;span style="color: #009900;"&gt;)&lt;/span&gt;&lt;span style="color: #339933;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #b1b100;"&gt;echo&lt;/span&gt; &lt;span style="color: blue;"&gt;"&amp;lt;h2&amp;gt;Doubler lettres : &amp;lt;/h2&amp;gt;"&lt;/span&gt;&lt;span style="color: #339933;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #b1b100;"&gt;echo&lt;/span&gt; doubler_lettres&lt;span style="color: #009900;"&gt;(&lt;/span&gt;&lt;span style="color: #000088;"&gt;$kw&lt;/span&gt;&lt;span style="color: #009900;"&gt;)&lt;/span&gt;&lt;span style="color: #339933;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #b1b100;"&gt;echo&lt;/span&gt; &lt;span style="color: blue;"&gt;"&amp;lt;h2&amp;gt;Fautes de frappe courantes : &amp;lt;/h2&amp;gt;"&lt;/span&gt;&lt;span style="color: #339933;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #b1b100;"&gt;echo&lt;/span&gt; erreur_lettres_proches&lt;span style="color: #009900;"&gt;(&lt;/span&gt;&lt;span style="color: #000088;"&gt;$kw&lt;/span&gt;&lt;span style="color: #009900;"&gt;)&lt;/span&gt;&lt;span style="color: #339933;"&gt;;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&lt;span style="color: #666666; font-style: italic;"&gt;////////////////////////Fonctions/////////////////////////&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #666666; font-style: italic;"&gt;//oubli de lettres&lt;/span&gt;&lt;br /&gt;&lt;span style="color: black; font-weight: bold;"&gt;function&lt;/span&gt; oubli_lettres&lt;span style="color: #009900;"&gt;(&lt;/span&gt;&lt;span style="color: #000088;"&gt;$sld&lt;/span&gt;&lt;span style="color: #009900;"&gt;)&lt;/span&gt; &lt;br /&gt;&lt;span style="color: #009900;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #000088;"&gt;$array&lt;/span&gt; &lt;span style="color: #339933;"&gt;=&lt;/span&gt; &lt;span style="color: #990000;"&gt;preg_split&lt;/span&gt;&lt;span style="color: #009900;"&gt;(&lt;/span&gt;&lt;span style="color: blue;"&gt;'//'&lt;/span&gt;&lt;span style="color: #339933;"&gt;,&lt;/span&gt;&lt;span style="color: #000088;"&gt;$sld&lt;/span&gt;&lt;span style="color: #009900;"&gt;)&lt;/span&gt;&lt;span style="color: #339933;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #000088;"&gt;$size&lt;/span&gt; &lt;span style="color: #339933;"&gt;=&lt;/span&gt; &lt;span style="color: #990000;"&gt;sizeof&lt;/span&gt;&lt;span style="color: #009900;"&gt;(&lt;/span&gt;&lt;span style="color: #000088;"&gt;$array&lt;/span&gt;&lt;span style="color: #009900;"&gt;)&lt;/span&gt;&lt;span style="color: #339933;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #000088;"&gt;$size&lt;/span&gt; &lt;span style="color: #339933;"&gt;=&lt;/span&gt; &lt;span style="color: #000088;"&gt;$size&lt;/span&gt; &lt;span style="color: #339933;"&gt;-&lt;/span&gt; &lt;span style="color: #cc66cc;"&gt;1&lt;/span&gt;&lt;span style="color: #339933;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #b1b100;"&gt;for&lt;/span&gt; &lt;span style="color: #009900;"&gt;(&lt;/span&gt;&lt;span style="color: #000088;"&gt;$i&lt;/span&gt; &lt;span style="color: #339933;"&gt;=&lt;/span&gt; &lt;span style="color: #cc66cc;"&gt;1&lt;/span&gt;&lt;span style="color: #339933;"&gt;;&lt;/span&gt; &lt;span style="color: #000088;"&gt;$i&lt;/span&gt; &lt;span style="color: #339933;"&gt;&amp;lt;&lt;/span&gt; &lt;span style="color: #000088;"&gt;$size&lt;/span&gt;&lt;span style="color: #339933;"&gt;;&lt;/span&gt; &lt;span style="color: #000088;"&gt;$i&lt;/span&gt;&lt;span style="color: #339933;"&gt;++&lt;/span&gt;&lt;span style="color: #009900;"&gt;)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #009900;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #b1b100;"&gt;if&lt;/span&gt; &lt;span style="color: #009900;"&gt;(&lt;/span&gt;&lt;span style="color: #339933;"&gt;!&lt;/span&gt;&lt;span style="color: #990000;"&gt;strcmp&lt;/span&gt;&lt;span style="color: #009900;"&gt;(&lt;/span&gt;&lt;span style="color: #000088;"&gt;$array&lt;/span&gt;&lt;span style="color: #009900;"&gt;[&lt;/span&gt; &lt;span style="color: #000088;"&gt;$i&lt;/span&gt;&lt;span style="color: #009900;"&gt;]&lt;/span&gt;&lt;span style="color: #339933;"&gt;,&lt;/span&gt;&lt;span style="color: blue;"&gt;" "&lt;/span&gt;&lt;span style="color: #009900;"&gt;)&lt;/span&gt;&lt;span style="color: #009900;"&gt;)&lt;/span&gt; &lt;span style="color: #009900;"&gt;{&lt;/span&gt; &lt;span style="color: #b1b100;"&gt;continue&lt;/span&gt;&lt;span style="color: #339933;"&gt;;&lt;/span&gt; &lt;span style="color: #009900;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #b1b100;"&gt;for&lt;/span&gt; &lt;span style="color: #009900;"&gt;(&lt;/span&gt;&lt;span style="color: #000088;"&gt;$x&lt;/span&gt; &lt;span style="color: #339933;"&gt;=&lt;/span&gt; &lt;span style="color: #cc66cc;"&gt;1&lt;/span&gt;&lt;span style="color: #339933;"&gt;;&lt;/span&gt; &lt;span style="color: #000088;"&gt;$x&lt;/span&gt; &lt;span style="color: #339933;"&gt;&amp;lt;&lt;/span&gt; &lt;span style="color: #000088;"&gt;$size&lt;/span&gt;&lt;span style="color: #339933;"&gt;;&lt;/span&gt; &lt;span style="color: #000088;"&gt;$x&lt;/span&gt;&lt;span style="color: #339933;"&gt;++&lt;/span&gt;&lt;span style="color: #009900;"&gt;)&lt;/span&gt; &lt;br /&gt;&lt;span style="color: #009900;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #b1b100;"&gt;if&lt;/span&gt; &lt;span style="color: #009900;"&gt;(&lt;/span&gt;&lt;span style="color: #000088;"&gt;$x&lt;/span&gt; &lt;span style="color: #339933;"&gt;==&lt;/span&gt; &lt;span style="color: #000088;"&gt;$i&lt;/span&gt;&lt;span style="color: #009900;"&gt;)&lt;/span&gt; &lt;span style="color: #009900;"&gt;{&lt;/span&gt; &lt;span style="color: #b1b100;"&gt;continue&lt;/span&gt;&lt;span style="color: #339933;"&gt;;&lt;/span&gt; &lt;span style="color: #009900;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #000088;"&gt;$temp&lt;/span&gt; &lt;span style="color: #339933;"&gt;=&lt;/span&gt; &lt;span style="color: #000088;"&gt;$temp&lt;/span&gt; &lt;span style="color: #339933;"&gt;.&lt;/span&gt; &lt;span style="color: #000088;"&gt;$array&lt;/span&gt;&lt;span style="color: #009900;"&gt;[&lt;/span&gt; &lt;span style="color: #000088;"&gt;$x&lt;/span&gt;&lt;span style="color: #009900;"&gt;]&lt;/span&gt;&lt;span style="color: #339933;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #009900;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #b1b100;"&gt;print&lt;/span&gt; &lt;span style="color: blue;"&gt;"&lt;span style="color: #006699; font-weight: bold;"&gt;$temp&lt;/span&gt; "&lt;/span&gt;&lt;span style="color: #339933;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #000088;"&gt;$temp&lt;/span&gt; &lt;span style="color: #339933;"&gt;=&lt;/span&gt; &lt;span style="color: blue;"&gt;""&lt;/span&gt;&lt;span style="color: #339933;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #009900;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #009900;"&gt;}&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&lt;span style="color: #666666; font-style: italic;"&gt;//Inversion lettres&lt;/span&gt;&lt;br /&gt;&lt;span style="color: black; font-weight: bold;"&gt;function&lt;/span&gt; inversion_lettres&lt;span style="color: #009900;"&gt;(&lt;/span&gt;&lt;span style="color: #000088;"&gt;$sld&lt;/span&gt;&lt;span style="color: #009900;"&gt;)&lt;/span&gt; &lt;br /&gt;&lt;span style="color: #009900;"&gt;{&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&lt;span style="color: #000088;"&gt;$array&lt;/span&gt; &lt;span style="color: #339933;"&gt;=&lt;/span&gt; &lt;span style="color: #990000;"&gt;preg_split&lt;/span&gt;&lt;span style="color: #009900;"&gt;(&lt;/span&gt;&lt;span style="color: blue;"&gt;'//'&lt;/span&gt;&lt;span style="color: #339933;"&gt;,&lt;/span&gt;&lt;span style="color: #000088;"&gt;$sld&lt;/span&gt;&lt;span style="color: #009900;"&gt;)&lt;/span&gt;&lt;span style="color: #339933;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #000088;"&gt;$size&lt;/span&gt; &lt;span style="color: #339933;"&gt;=&lt;/span&gt; &lt;span style="color: #990000;"&gt;sizeof&lt;/span&gt;&lt;span style="color: #009900;"&gt;(&lt;/span&gt;&lt;span style="color: #000088;"&gt;$array&lt;/span&gt;&lt;span style="color: #009900;"&gt;)&lt;/span&gt;&lt;span style="color: #339933;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #000088;"&gt;$size&lt;/span&gt; &lt;span style="color: #339933;"&gt;=&lt;/span&gt; &lt;span style="color: #000088;"&gt;$size&lt;/span&gt; &lt;span style="color: #339933;"&gt;-&lt;/span&gt; &lt;span style="color: #cc66cc;"&gt;1&lt;/span&gt;&lt;span style="color: #339933;"&gt;;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&lt;span style="color: #b1b100;"&gt;for&lt;/span&gt; &lt;span style="color: #009900;"&gt;(&lt;/span&gt;&lt;span style="color: #000088;"&gt;$i&lt;/span&gt; &lt;span style="color: #339933;"&gt;=&lt;/span&gt; &lt;span style="color: #cc66cc;"&gt;1&lt;/span&gt;&lt;span style="color: #339933;"&gt;;&lt;/span&gt; &lt;span style="color: #000088;"&gt;$i&lt;/span&gt; &lt;span style="color: #339933;"&gt;&amp;lt;&lt;/span&gt; &lt;span style="color: #000088;"&gt;$size&lt;/span&gt;&lt;span style="color: #339933;"&gt;;&lt;/span&gt; &lt;span style="color: #000088;"&gt;$i&lt;/span&gt;&lt;span style="color: #339933;"&gt;++&lt;/span&gt;&lt;span style="color: #009900;"&gt;)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #009900;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #b1b100;"&gt;if&lt;/span&gt; &lt;span style="color: #009900;"&gt;(&lt;/span&gt;&lt;span style="color: #339933;"&gt;!&lt;/span&gt;&lt;span style="color: #990000;"&gt;strcmp&lt;/span&gt;&lt;span style="color: #009900;"&gt;(&lt;/span&gt;&lt;span style="color: #000088;"&gt;$array&lt;/span&gt;&lt;span style="color: #009900;"&gt;[&lt;/span&gt; &lt;span style="color: #000088;"&gt;$i&lt;/span&gt;&lt;span style="color: #009900;"&gt;]&lt;/span&gt;&lt;span style="color: #339933;"&gt;,&lt;/span&gt;&lt;span style="color: blue;"&gt;" "&lt;/span&gt;&lt;span style="color: #009900;"&gt;)&lt;/span&gt;&lt;span style="color: #009900;"&gt;)&lt;/span&gt; &lt;span style="color: #009900;"&gt;{&lt;/span&gt; &lt;span style="color: #b1b100;"&gt;continue&lt;/span&gt;&lt;span style="color: #339933;"&gt;;&lt;/span&gt; &lt;span style="color: #009900;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #b1b100;"&gt;if&lt;/span&gt; &lt;span style="color: #009900;"&gt;(&lt;/span&gt;&lt;span style="color: #339933;"&gt;!&lt;/span&gt;&lt;span style="color: #990000;"&gt;strcmp&lt;/span&gt;&lt;span style="color: #009900;"&gt;(&lt;/span&gt;&lt;span style="color: #000088;"&gt;$array&lt;/span&gt;&lt;span style="color: #009900;"&gt;[&lt;/span&gt; &lt;span style="color: #000088;"&gt;$i&lt;/span&gt;&lt;span style="color: #009900;"&gt;]&lt;/span&gt;&lt;span style="color: #339933;"&gt;,&lt;/span&gt;&lt;span style="color: #000088;"&gt;$array&lt;/span&gt;&lt;span style="color: #009900;"&gt;[&lt;/span&gt; &lt;span style="color: #000088;"&gt;$i&lt;/span&gt;&lt;span style="color: #339933;"&gt;+&lt;/span&gt;&lt;span style="color: #cc66cc;"&gt;1&lt;/span&gt;&lt;span style="color: #009900;"&gt;]&lt;/span&gt;&lt;span style="color: #009900;"&gt;)&lt;/span&gt;&lt;span style="color: #009900;"&gt;)&lt;/span&gt; &lt;span style="color: #009900;"&gt;{&lt;/span&gt; &lt;span style="color: #b1b100;"&gt;continue&lt;/span&gt;&lt;span style="color: #339933;"&gt;;&lt;/span&gt; &lt;span style="color: #009900;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #b1b100;"&gt;for&lt;/span&gt; &lt;span style="color: #009900;"&gt;(&lt;/span&gt;&lt;span style="color: #000088;"&gt;$x&lt;/span&gt; &lt;span style="color: #339933;"&gt;=&lt;/span&gt; &lt;span style="color: #cc66cc;"&gt;1&lt;/span&gt;&lt;span style="color: #339933;"&gt;;&lt;/span&gt; &lt;span style="color: #000088;"&gt;$x&lt;/span&gt; &lt;span style="color: #339933;"&gt;&amp;lt;&lt;/span&gt; &lt;span style="color: #000088;"&gt;$size&lt;/span&gt;&lt;span style="color: #339933;"&gt;;&lt;/span&gt; &lt;span style="color: #000088;"&gt;$x&lt;/span&gt;&lt;span style="color: #339933;"&gt;++&lt;/span&gt;&lt;span style="color: #009900;"&gt;)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #009900;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #b1b100;"&gt;if&lt;/span&gt; &lt;span style="color: #009900;"&gt;(&lt;/span&gt;&lt;span style="color: #009900;"&gt;(&lt;/span&gt;&lt;span style="color: #000088;"&gt;$x&lt;/span&gt; &lt;span style="color: #339933;"&gt;==&lt;/span&gt; &lt;span style="color: #000088;"&gt;$i&lt;/span&gt;&lt;span style="color: #009900;"&gt;)&lt;/span&gt; and &lt;span style="color: #009900;"&gt;(&lt;/span&gt;&lt;span style="color: #000088;"&gt;$i&lt;/span&gt; &lt;span style="color: #339933;"&gt;&amp;lt;&lt;/span&gt; &lt;span style="color: #000088;"&gt;$size&lt;/span&gt;&lt;span style="color: #009900;"&gt;)&lt;/span&gt;&lt;span style="color: #009900;"&gt;)&lt;/span&gt; &lt;span style="color: #009900;"&gt;{&lt;/span&gt; &lt;span style="color: #000088;"&gt;$temp&lt;/span&gt; &lt;span style="color: #339933;"&gt;=&lt;/span&gt; &lt;span style="color: #000088;"&gt;$temp&lt;/span&gt; &lt;span style="color: #339933;"&gt;.&lt;/span&gt; &lt;span style="color: #000088;"&gt;$array&lt;/span&gt;&lt;span style="color: #009900;"&gt;[&lt;/span&gt; &lt;span style="color: #000088;"&gt;$x&lt;/span&gt;&lt;span style="color: #339933;"&gt;+&lt;/span&gt;&lt;span style="color: #cc66cc;"&gt;1&lt;/span&gt;&lt;span style="color: #009900;"&gt;]&lt;/span&gt;&lt;span style="color: #339933;"&gt;;&lt;/span&gt; &lt;span style="color: #009900;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #b1b100;"&gt;else&lt;/span&gt; &lt;span style="color: #b1b100;"&gt;if&lt;/span&gt; &lt;span style="color: #009900;"&gt;(&lt;/span&gt;&lt;span style="color: #000088;"&gt;$x&lt;/span&gt; &lt;span style="color: #339933;"&gt;==&lt;/span&gt; &lt;span style="color: #009900;"&gt;(&lt;/span&gt;&lt;span style="color: #000088;"&gt;$i&lt;/span&gt;&lt;span style="color: #339933;"&gt;+&lt;/span&gt;&lt;span style="color: #cc66cc;"&gt;1&lt;/span&gt;&lt;span style="color: #009900;"&gt;)&lt;/span&gt;&lt;span style="color: #009900;"&gt;)&lt;/span&gt; &lt;span style="color: #009900;"&gt;{&lt;/span&gt;&lt;span style="color: #000088;"&gt;$temp&lt;/span&gt; &lt;span style="color: #339933;"&gt;=&lt;/span&gt; &lt;span style="color: #000088;"&gt;$temp&lt;/span&gt; &lt;span style="color: #339933;"&gt;.&lt;/span&gt; &lt;span style="color: #000088;"&gt;$array&lt;/span&gt;&lt;span style="color: #009900;"&gt;[&lt;/span&gt; &lt;span style="color: #000088;"&gt;$x&lt;/span&gt;&lt;span style="color: #339933;"&gt;-&lt;/span&gt;&lt;span style="color: #cc66cc;"&gt;1&lt;/span&gt;&lt;span style="color: #009900;"&gt;]&lt;/span&gt;&lt;span style="color: #339933;"&gt;;&lt;/span&gt; &lt;span style="color: #009900;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #b1b100;"&gt;else&lt;/span&gt; &lt;span style="color: #009900;"&gt;{&lt;/span&gt; &lt;span style="color: #000088;"&gt;$temp&lt;/span&gt; &lt;span style="color: #339933;"&gt;=&lt;/span&gt; &lt;span style="color: #000088;"&gt;$temp&lt;/span&gt; &lt;span style="color: #339933;"&gt;.&lt;/span&gt; &lt;span style="color: #000088;"&gt;$array&lt;/span&gt;&lt;span style="color: #009900;"&gt;[&lt;/span&gt; &lt;span style="color: #000088;"&gt;$x&lt;/span&gt;&lt;span style="color: #009900;"&gt;]&lt;/span&gt;&lt;span style="color: #339933;"&gt;;&lt;/span&gt; &lt;span style="color: #009900;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #009900;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #b1b100;"&gt;print&lt;/span&gt; &lt;span style="color: blue;"&gt;"&lt;span style="color: #006699; font-weight: bold;"&gt;$temp&lt;/span&gt; "&lt;/span&gt;&lt;span style="color: #339933;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #000088;"&gt;$temp&lt;/span&gt; &lt;span style="color: #339933;"&gt;=&lt;/span&gt; &lt;span style="color: blue;"&gt;""&lt;/span&gt;&lt;span style="color: #339933;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #009900;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #009900;"&gt;}&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&lt;span style="color: #666666; font-style: italic;"&gt;//Doubler lettres&lt;/span&gt;&lt;br /&gt;&lt;span style="color: black; font-weight: bold;"&gt;function&lt;/span&gt; doubler_lettres&lt;span style="color: #009900;"&gt;(&lt;/span&gt;&lt;span style="color: #000088;"&gt;$sld&lt;/span&gt;&lt;span style="color: #009900;"&gt;)&lt;/span&gt; &lt;br /&gt;&lt;span style="color: #009900;"&gt;{&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&lt;span style="color: #000088;"&gt;$array&lt;/span&gt; &lt;span style="color: #339933;"&gt;=&lt;/span&gt; &lt;span style="color: #990000;"&gt;preg_split&lt;/span&gt;&lt;span style="color: #009900;"&gt;(&lt;/span&gt;&lt;span style="color: blue;"&gt;'//'&lt;/span&gt;&lt;span style="color: #339933;"&gt;,&lt;/span&gt;&lt;span style="color: #000088;"&gt;$sld&lt;/span&gt;&lt;span style="color: #009900;"&gt;)&lt;/span&gt;&lt;span style="color: #339933;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #000088;"&gt;$size&lt;/span&gt; &lt;span style="color: #339933;"&gt;=&lt;/span&gt; &lt;span style="color: #990000;"&gt;sizeof&lt;/span&gt;&lt;span style="color: #009900;"&gt;(&lt;/span&gt;&lt;span style="color: #000088;"&gt;$array&lt;/span&gt;&lt;span style="color: #009900;"&gt;)&lt;/span&gt;&lt;span style="color: #339933;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #000088;"&gt;$size&lt;/span&gt; &lt;span style="color: #339933;"&gt;=&lt;/span&gt; &lt;span style="color: #000088;"&gt;$size&lt;/span&gt; &lt;span style="color: #339933;"&gt;-&lt;/span&gt; &lt;span style="color: #cc66cc;"&gt;1&lt;/span&gt;&lt;span style="color: #339933;"&gt;;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&lt;span style="color: #b1b100;"&gt;for&lt;/span&gt; &lt;span style="color: #009900;"&gt;(&lt;/span&gt;&lt;span style="color: #000088;"&gt;$i&lt;/span&gt; &lt;span style="color: #339933;"&gt;=&lt;/span&gt; &lt;span style="color: #cc66cc;"&gt;1&lt;/span&gt;&lt;span style="color: #339933;"&gt;;&lt;/span&gt; &lt;span style="color: #000088;"&gt;$i&lt;/span&gt; &lt;span style="color: #339933;"&gt;&amp;lt;&lt;/span&gt; &lt;span style="color: #000088;"&gt;$size&lt;/span&gt;&lt;span style="color: #339933;"&gt;;&lt;/span&gt; &lt;span style="color: #000088;"&gt;$i&lt;/span&gt;&lt;span style="color: #339933;"&gt;++&lt;/span&gt;&lt;span style="color: #009900;"&gt;)&lt;/span&gt; &lt;br /&gt;&lt;span style="color: #009900;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #b1b100;"&gt;if&lt;/span&gt; &lt;span style="color: #009900;"&gt;(&lt;/span&gt;&lt;span style="color: #339933;"&gt;!&lt;/span&gt;&lt;span style="color: #990000;"&gt;strcmp&lt;/span&gt;&lt;span style="color: #009900;"&gt;(&lt;/span&gt;&lt;span style="color: #000088;"&gt;$array&lt;/span&gt;&lt;span style="color: #009900;"&gt;[&lt;/span&gt; &lt;span style="color: #000088;"&gt;$i&lt;/span&gt;&lt;span style="color: #009900;"&gt;]&lt;/span&gt;&lt;span style="color: #339933;"&gt;,&lt;/span&gt;&lt;span style="color: blue;"&gt;" "&lt;/span&gt;&lt;span style="color: #009900;"&gt;)&lt;/span&gt;&lt;span style="color: #009900;"&gt;)&lt;/span&gt; &lt;span style="color: #009900;"&gt;{&lt;/span&gt; &lt;span style="color: #b1b100;"&gt;continue&lt;/span&gt;&lt;span style="color: #339933;"&gt;;&lt;/span&gt; &lt;span style="color: #009900;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #b1b100;"&gt;for&lt;/span&gt; &lt;span style="color: #009900;"&gt;(&lt;/span&gt;&lt;span style="color: #000088;"&gt;$x&lt;/span&gt; &lt;span style="color: #339933;"&gt;=&lt;/span&gt; &lt;span style="color: #cc66cc;"&gt;1&lt;/span&gt;&lt;span style="color: #339933;"&gt;;&lt;/span&gt; &lt;span style="color: #000088;"&gt;$x&lt;/span&gt; &lt;span style="color: #339933;"&gt;&amp;lt;&lt;/span&gt; &lt;span style="color: #000088;"&gt;$size&lt;/span&gt;&lt;span style="color: #339933;"&gt;;&lt;/span&gt; &lt;span style="color: #000088;"&gt;$x&lt;/span&gt;&lt;span style="color: #339933;"&gt;++&lt;/span&gt;&lt;span style="color: #009900;"&gt;)&lt;/span&gt; &lt;br /&gt;&lt;span style="color: #009900;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #000088;"&gt;$temp&lt;/span&gt; &lt;span style="color: #339933;"&gt;=&lt;/span&gt; &lt;span style="color: #000088;"&gt;$temp&lt;/span&gt; &lt;span style="color: #339933;"&gt;.&lt;/span&gt; &lt;span style="color: #000088;"&gt;$array&lt;/span&gt;&lt;span style="color: #009900;"&gt;[&lt;/span&gt; &lt;span style="color: #000088;"&gt;$x&lt;/span&gt;&lt;span style="color: #009900;"&gt;]&lt;/span&gt;&lt;span style="color: #339933;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #b1b100;"&gt;if&lt;/span&gt; &lt;span style="color: #009900;"&gt;(&lt;/span&gt;&lt;span style="color: #000088;"&gt;$x&lt;/span&gt; &lt;span style="color: #339933;"&gt;==&lt;/span&gt; &lt;span style="color: #000088;"&gt;$i&lt;/span&gt;&lt;span style="color: #009900;"&gt;)&lt;/span&gt; &lt;span style="color: #009900;"&gt;{&lt;/span&gt; &lt;span style="color: #000088;"&gt;$temp&lt;/span&gt; &lt;span style="color: #339933;"&gt;=&lt;/span&gt; &lt;span style="color: #000088;"&gt;$temp&lt;/span&gt; &lt;span style="color: #339933;"&gt;.&lt;/span&gt; &lt;span style="color: #000088;"&gt;$array&lt;/span&gt;&lt;span style="color: #009900;"&gt;[&lt;/span&gt; &lt;span style="color: #000088;"&gt;$x&lt;/span&gt;&lt;span style="color: #009900;"&gt;]&lt;/span&gt; &lt;span style="color: #339933;"&gt;;&lt;/span&gt; &lt;span style="color: #009900;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #009900;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #b1b100;"&gt;print&lt;/span&gt; &lt;span style="color: blue;"&gt;"&lt;span style="color: #006699; font-weight: bold;"&gt;$temp&lt;/span&gt; "&lt;/span&gt;&lt;span style="color: #339933;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #000088;"&gt;$temp&lt;/span&gt; &lt;span style="color: #339933;"&gt;=&lt;/span&gt; &lt;span style="color: blue;"&gt;""&lt;/span&gt;&lt;span style="color: #339933;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #009900;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #009900;"&gt;}&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&lt;span style="color: #666666; font-style: italic;"&gt;//Erreur communes clavier azerty&lt;/span&gt;&lt;br /&gt;&lt;span style="color: black; font-weight: bold;"&gt;function&lt;/span&gt; erreur_lettres_proches&lt;span style="color: #009900;"&gt;(&lt;/span&gt;&lt;span style="color: #000088;"&gt;$sld&lt;/span&gt;&lt;span style="color: #009900;"&gt;)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #009900;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #000088;"&gt;$alphabet&lt;/span&gt; &lt;span style="color: #339933;"&gt;=&lt;/span&gt; &lt;span style="color: #990000;"&gt;Array&lt;/span&gt;&lt;span style="color: #009900;"&gt;(&lt;/span&gt;&lt;br /&gt;a &lt;span style="color: #339933;"&gt;=&amp;gt;&lt;/span&gt; &lt;span style="color: #990000;"&gt;array&lt;/span&gt;&lt;span style="color: #009900;"&gt;(&lt;/span&gt;&lt;span style="color: blue;"&gt;"z"&lt;/span&gt;&lt;span style="color: #009900;"&gt;)&lt;/span&gt;&lt;span style="color: #339933;"&gt;,&lt;/span&gt;&lt;br /&gt;z &lt;span style="color: #339933;"&gt;=&amp;gt;&lt;/span&gt; &lt;span style="color: #990000;"&gt;array&lt;/span&gt;&lt;span style="color: #009900;"&gt;(&lt;/span&gt;&lt;span style="color: blue;"&gt;"a"&lt;/span&gt;&lt;span style="color: #339933;"&gt;,&lt;/span&gt; &lt;span style="color: blue;"&gt;"e"&lt;/span&gt;&lt;span style="color: #009900;"&gt;)&lt;/span&gt;&lt;span style="color: #339933;"&gt;,&lt;/span&gt;&lt;br /&gt;e &lt;span style="color: #339933;"&gt;=&amp;gt;&lt;/span&gt; &lt;span style="color: #990000;"&gt;array&lt;/span&gt;&lt;span style="color: #009900;"&gt;(&lt;/span&gt;&lt;span style="color: blue;"&gt;"z"&lt;/span&gt;&lt;span style="color: #339933;"&gt;,&lt;/span&gt; &lt;span style="color: blue;"&gt;"r"&lt;/span&gt;&lt;span style="color: #009900;"&gt;)&lt;/span&gt;&lt;span style="color: #339933;"&gt;,&lt;/span&gt;&lt;br /&gt;r &lt;span style="color: #339933;"&gt;=&amp;gt;&lt;/span&gt; &lt;span style="color: #990000;"&gt;array&lt;/span&gt;&lt;span style="color: #009900;"&gt;(&lt;/span&gt;&lt;span style="color: blue;"&gt;"e"&lt;/span&gt;&lt;span style="color: #339933;"&gt;,&lt;/span&gt; &lt;span style="color: blue;"&gt;"t"&lt;/span&gt;&lt;span style="color: #009900;"&gt;)&lt;/span&gt;&lt;span style="color: #339933;"&gt;,&lt;/span&gt;&lt;br /&gt;t &lt;span style="color: #339933;"&gt;=&amp;gt;&lt;/span&gt; &lt;span style="color: #990000;"&gt;array&lt;/span&gt;&lt;span style="color: #009900;"&gt;(&lt;/span&gt;&lt;span style="color: blue;"&gt;"r"&lt;/span&gt;&lt;span style="color: #339933;"&gt;,&lt;/span&gt; &lt;span style="color: blue;"&gt;"y"&lt;/span&gt;&lt;span style="color: #009900;"&gt;)&lt;/span&gt;&lt;span style="color: #339933;"&gt;,&lt;/span&gt;&lt;br /&gt;y &lt;span style="color: #339933;"&gt;=&amp;gt;&lt;/span&gt; &lt;span style="color: #990000;"&gt;array&lt;/span&gt;&lt;span style="color: #009900;"&gt;(&lt;/span&gt;&lt;span style="color: blue;"&gt;"t"&lt;/span&gt;&lt;span style="color: #339933;"&gt;,&lt;/span&gt; &lt;span style="color: blue;"&gt;"u"&lt;/span&gt;&lt;span style="color: #009900;"&gt;)&lt;/span&gt;&lt;span style="color: #339933;"&gt;,&lt;/span&gt;&lt;br /&gt;u &lt;span style="color: #339933;"&gt;=&amp;gt;&lt;/span&gt; &lt;span style="color: #990000;"&gt;array&lt;/span&gt;&lt;span style="color: #009900;"&gt;(&lt;/span&gt;&lt;span style="color: blue;"&gt;"y"&lt;/span&gt;&lt;span style="color: #339933;"&gt;,&lt;/span&gt; &lt;span style="color: blue;"&gt;"i"&lt;/span&gt;&lt;span style="color: #009900;"&gt;)&lt;/span&gt;&lt;span style="color: #339933;"&gt;,&lt;/span&gt;&lt;br /&gt;i &lt;span style="color: #339933;"&gt;=&amp;gt;&lt;/span&gt; &lt;span style="color: #990000;"&gt;array&lt;/span&gt;&lt;span style="color: #009900;"&gt;(&lt;/span&gt;&lt;span style="color: blue;"&gt;"u"&lt;/span&gt;&lt;span style="color: #339933;"&gt;,&lt;/span&gt; &lt;span style="color: blue;"&gt;"o"&lt;/span&gt;&lt;span style="color: #009900;"&gt;)&lt;/span&gt;&lt;span style="color: #339933;"&gt;,&lt;/span&gt;&lt;br /&gt;o &lt;span style="color: #339933;"&gt;=&amp;gt;&lt;/span&gt; &lt;span style="color: #990000;"&gt;array&lt;/span&gt;&lt;span style="color: #009900;"&gt;(&lt;/span&gt;&lt;span style="color: blue;"&gt;"i"&lt;/span&gt;&lt;span style="color: #339933;"&gt;,&lt;/span&gt; &lt;span style="color: blue;"&gt;"p"&lt;/span&gt;&lt;span style="color: #009900;"&gt;)&lt;/span&gt;&lt;span style="color: #339933;"&gt;,&lt;/span&gt;&lt;br /&gt;p &lt;span style="color: #339933;"&gt;=&amp;gt;&lt;/span&gt; &lt;span style="color: #990000;"&gt;array&lt;/span&gt;&lt;span style="color: #009900;"&gt;(&lt;/span&gt;&lt;span style="color: blue;"&gt;"o"&lt;/span&gt;&lt;span style="color: #009900;"&gt;)&lt;/span&gt;&lt;span style="color: #339933;"&gt;,&lt;/span&gt;&lt;br /&gt;q &lt;span style="color: #339933;"&gt;=&amp;gt;&lt;/span&gt; &lt;span style="color: #990000;"&gt;array&lt;/span&gt;&lt;span style="color: #009900;"&gt;(&lt;/span&gt;&lt;span style="color: blue;"&gt;"s"&lt;/span&gt;&lt;span style="color: #009900;"&gt;)&lt;/span&gt;&lt;span style="color: #339933;"&gt;,&lt;/span&gt;&lt;br /&gt;s &lt;span style="color: #339933;"&gt;=&amp;gt;&lt;/span&gt; &lt;span style="color: #990000;"&gt;array&lt;/span&gt;&lt;span style="color: #009900;"&gt;(&lt;/span&gt;&lt;span style="color: blue;"&gt;"q"&lt;/span&gt;&lt;span style="color: #339933;"&gt;,&lt;/span&gt; &lt;span style="color: blue;"&gt;"d"&lt;/span&gt;&lt;span style="color: #009900;"&gt;)&lt;/span&gt;&lt;span style="color: #339933;"&gt;,&lt;/span&gt;&lt;br /&gt;d &lt;span style="color: #339933;"&gt;=&amp;gt;&lt;/span&gt; &lt;span style="color: #990000;"&gt;array&lt;/span&gt;&lt;span style="color: #009900;"&gt;(&lt;/span&gt;&lt;span style="color: blue;"&gt;"s"&lt;/span&gt;&lt;span style="color: #339933;"&gt;,&lt;/span&gt; &lt;span style="color: blue;"&gt;"f"&lt;/span&gt;&lt;span style="color: #009900;"&gt;)&lt;/span&gt;&lt;span style="color: #339933;"&gt;,&lt;/span&gt;&lt;br /&gt;f &lt;span style="color: #339933;"&gt;=&amp;gt;&lt;/span&gt; &lt;span style="color: #990000;"&gt;array&lt;/span&gt;&lt;span style="color: #009900;"&gt;(&lt;/span&gt;&lt;span style="color: blue;"&gt;"d"&lt;/span&gt;&lt;span style="color: #339933;"&gt;,&lt;/span&gt; &lt;span style="color: blue;"&gt;"g"&lt;/span&gt;&lt;span style="color: #009900;"&gt;)&lt;/span&gt;&lt;span style="color: #339933;"&gt;,&lt;/span&gt;&lt;br /&gt;g &lt;span style="color: #339933;"&gt;=&amp;gt;&lt;/span&gt; &lt;span style="color: #990000;"&gt;array&lt;/span&gt;&lt;span style="color: #009900;"&gt;(&lt;/span&gt;&lt;span style="color: blue;"&gt;"f"&lt;/span&gt;&lt;span style="color: #339933;"&gt;,&lt;/span&gt; &lt;span style="color: blue;"&gt;"h"&lt;/span&gt;&lt;span style="color: #009900;"&gt;)&lt;/span&gt;&lt;span style="color: #339933;"&gt;,&lt;/span&gt;&lt;br /&gt;h &lt;span style="color: #339933;"&gt;=&amp;gt;&lt;/span&gt; &lt;span style="color: #990000;"&gt;array&lt;/span&gt;&lt;span style="color: #009900;"&gt;(&lt;/span&gt;&lt;span style="color: blue;"&gt;"g"&lt;/span&gt;&lt;span style="color: #339933;"&gt;,&lt;/span&gt; &lt;span style="color: blue;"&gt;"j"&lt;/span&gt;&lt;span style="color: #009900;"&gt;)&lt;/span&gt;&lt;span style="color: #339933;"&gt;,&lt;/span&gt;&lt;br /&gt;j &lt;span style="color: #339933;"&gt;=&amp;gt;&lt;/span&gt; &lt;span style="color: #990000;"&gt;array&lt;/span&gt;&lt;span style="color: #009900;"&gt;(&lt;/span&gt;&lt;span style="color: blue;"&gt;"h"&lt;/span&gt;&lt;span style="color: #339933;"&gt;,&lt;/span&gt; &lt;span style="color: blue;"&gt;"k"&lt;/span&gt;&lt;span style="color: #009900;"&gt;)&lt;/span&gt;&lt;span style="color: #339933;"&gt;,&lt;/span&gt;&lt;br /&gt;k &lt;span style="color: #339933;"&gt;=&amp;gt;&lt;/span&gt; &lt;span style="color: #990000;"&gt;array&lt;/span&gt;&lt;span style="color: #009900;"&gt;(&lt;/span&gt;&lt;span style="color: blue;"&gt;"j"&lt;/span&gt;&lt;span style="color: #339933;"&gt;,&lt;/span&gt; &lt;span style="color: blue;"&gt;"l"&lt;/span&gt;&lt;span style="color: #009900;"&gt;)&lt;/span&gt;&lt;span style="color: #339933;"&gt;,&lt;/span&gt;&lt;br /&gt;l &lt;span style="color: #339933;"&gt;=&amp;gt;&lt;/span&gt; &lt;span style="color: #990000;"&gt;array&lt;/span&gt;&lt;span style="color: #009900;"&gt;(&lt;/span&gt;&lt;span style="color: blue;"&gt;"k"&lt;/span&gt;&lt;span style="color: #339933;"&gt;,&lt;/span&gt; &lt;span style="color: blue;"&gt;"m"&lt;/span&gt;&lt;span style="color: #009900;"&gt;)&lt;/span&gt;&lt;span style="color: #339933;"&gt;,&lt;/span&gt;&lt;br /&gt;m &lt;span style="color: #339933;"&gt;=&amp;gt;&lt;/span&gt; &lt;span style="color: #990000;"&gt;array&lt;/span&gt;&lt;span style="color: #009900;"&gt;(&lt;/span&gt;&lt;span style="color: blue;"&gt;"l"&lt;/span&gt;&lt;span style="color: #009900;"&gt;)&lt;/span&gt;&lt;span style="color: #339933;"&gt;,&lt;/span&gt;&lt;br /&gt;w &lt;span style="color: #339933;"&gt;=&amp;gt;&lt;/span&gt; &lt;span style="color: #990000;"&gt;array&lt;/span&gt;&lt;span style="color: #009900;"&gt;(&lt;/span&gt;&lt;span style="color: blue;"&gt;"x"&lt;/span&gt;&lt;span style="color: #009900;"&gt;)&lt;/span&gt;&lt;span style="color: #339933;"&gt;,&lt;/span&gt;&lt;br /&gt;x &lt;span style="color: #339933;"&gt;=&amp;gt;&lt;/span&gt; &lt;span style="color: #990000;"&gt;array&lt;/span&gt;&lt;span style="color: #009900;"&gt;(&lt;/span&gt;&lt;span style="color: blue;"&gt;"w"&lt;/span&gt;&lt;span style="color: #339933;"&gt;,&lt;/span&gt; &lt;span style="color: blue;"&gt;"c"&lt;/span&gt;&lt;span style="color: #009900;"&gt;)&lt;/span&gt;&lt;span style="color: #339933;"&gt;,&lt;/span&gt;&lt;br /&gt;c &lt;span style="color: #339933;"&gt;=&amp;gt;&lt;/span&gt; &lt;span style="color: #990000;"&gt;array&lt;/span&gt;&lt;span style="color: #009900;"&gt;(&lt;/span&gt;&lt;span style="color: blue;"&gt;"x"&lt;/span&gt;&lt;span style="color: #339933;"&gt;,&lt;/span&gt; &lt;span style="color: blue;"&gt;"v"&lt;/span&gt;&lt;span style="color: #009900;"&gt;)&lt;/span&gt;&lt;span style="color: #339933;"&gt;,&lt;/span&gt;&lt;br /&gt;v &lt;span style="color: #339933;"&gt;=&amp;gt;&lt;/span&gt; &lt;span style="color: #990000;"&gt;array&lt;/span&gt;&lt;span style="color: #009900;"&gt;(&lt;/span&gt;&lt;span style="color: blue;"&gt;"c"&lt;/span&gt;&lt;span style="color: #339933;"&gt;,&lt;/span&gt; &lt;span style="color: blue;"&gt;"b"&lt;/span&gt;&lt;span style="color: #009900;"&gt;)&lt;/span&gt;&lt;span style="color: #339933;"&gt;,&lt;/span&gt;&lt;br /&gt;b &lt;span style="color: #339933;"&gt;=&amp;gt;&lt;/span&gt; &lt;span style="color: #990000;"&gt;array&lt;/span&gt;&lt;span style="color: #009900;"&gt;(&lt;/span&gt;&lt;span style="color: blue;"&gt;"v"&lt;/span&gt;&lt;span style="color: #339933;"&gt;,&lt;/span&gt; &lt;span style="color: blue;"&gt;"n"&lt;/span&gt;&lt;span style="color: #009900;"&gt;)&lt;/span&gt;&lt;span style="color: #339933;"&gt;,&lt;/span&gt;&lt;br /&gt;n &lt;span style="color: #339933;"&gt;=&amp;gt;&lt;/span&gt; &lt;span style="color: #990000;"&gt;array&lt;/span&gt;&lt;span style="color: #009900;"&gt;(&lt;/span&gt;&lt;span style="color: blue;"&gt;"b"&lt;/span&gt;&lt;span style="color: #009900;"&gt;)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #009900;"&gt;)&lt;/span&gt;&lt;span style="color: #339933;"&gt;;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&lt;span style="color: #000088;"&gt;$sld&lt;/span&gt; &lt;span style="color: #339933;"&gt;=&lt;/span&gt; &lt;span style="color: #990000;"&gt;strtolower&lt;/span&gt;&lt;span style="color: #009900;"&gt;(&lt;/span&gt;&lt;span style="color: #000088;"&gt;$sld&lt;/span&gt;&lt;span style="color: #009900;"&gt;)&lt;/span&gt;&lt;span style="color: #339933;"&gt;;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&lt;span style="color: #000088;"&gt;$array&lt;/span&gt; &lt;span style="color: #339933;"&gt;=&lt;/span&gt; &lt;span style="color: #990000;"&gt;preg_split&lt;/span&gt;&lt;span style="color: #009900;"&gt;(&lt;/span&gt;&lt;span style="color: blue;"&gt;'//'&lt;/span&gt;&lt;span style="color: #339933;"&gt;,&lt;/span&gt;&lt;span style="color: #000088;"&gt;$sld&lt;/span&gt;&lt;span style="color: #009900;"&gt;)&lt;/span&gt;&lt;span style="color: #339933;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #000088;"&gt;$size&lt;/span&gt; &lt;span style="color: #339933;"&gt;=&lt;/span&gt; &lt;span style="color: #990000;"&gt;sizeof&lt;/span&gt;&lt;span style="color: #009900;"&gt;(&lt;/span&gt;&lt;span style="color: #000088;"&gt;$array&lt;/span&gt;&lt;span style="color: #009900;"&gt;)&lt;/span&gt;&lt;span style="color: #339933;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #000088;"&gt;$size&lt;/span&gt; &lt;span style="color: #339933;"&gt;=&lt;/span&gt; &lt;span style="color: #000088;"&gt;$size&lt;/span&gt; &lt;span style="color: #339933;"&gt;-&lt;/span&gt; &lt;span style="color: #cc66cc;"&gt;1&lt;/span&gt;&lt;span style="color: #339933;"&gt;;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&lt;span style="color: #b1b100;"&gt;for&lt;/span&gt; &lt;span style="color: #009900;"&gt;(&lt;/span&gt;&lt;span style="color: #000088;"&gt;$i&lt;/span&gt; &lt;span style="color: #339933;"&gt;=&lt;/span&gt; &lt;span style="color: #cc66cc;"&gt;1&lt;/span&gt;&lt;span style="color: #339933;"&gt;;&lt;/span&gt; &lt;span style="color: #000088;"&gt;$i&lt;/span&gt; &lt;span style="color: #339933;"&gt;&amp;lt;&lt;/span&gt; &lt;span style="color: #000088;"&gt;$size&lt;/span&gt;&lt;span style="color: #339933;"&gt;;&lt;/span&gt; &lt;span style="color: #000088;"&gt;$i&lt;/span&gt;&lt;span style="color: #339933;"&gt;++&lt;/span&gt;&lt;span style="color: #009900;"&gt;)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #009900;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #b1b100;"&gt;if&lt;/span&gt; &lt;span style="color: #009900;"&gt;(&lt;/span&gt;&lt;span style="color: #339933;"&gt;!&lt;/span&gt;&lt;span style="color: #990000;"&gt;strcmp&lt;/span&gt;&lt;span style="color: #009900;"&gt;(&lt;/span&gt;&lt;span style="color: #000088;"&gt;$array&lt;/span&gt;&lt;span style="color: #009900;"&gt;[&lt;/span&gt; &lt;span style="color: #000088;"&gt;$i&lt;/span&gt;&lt;span style="color: #009900;"&gt;]&lt;/span&gt;&lt;span style="color: #339933;"&gt;,&lt;/span&gt;&lt;span style="color: blue;"&gt;" "&lt;/span&gt;&lt;span style="color: #009900;"&gt;)&lt;/span&gt;&lt;span style="color: #009900;"&gt;)&lt;/span&gt; &lt;span style="color: #009900;"&gt;{&lt;/span&gt; &lt;span style="color: #b1b100;"&gt;continue&lt;/span&gt;&lt;span style="color: #339933;"&gt;;&lt;/span&gt; &lt;span style="color: #009900;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #000088;"&gt;$current_letter&lt;/span&gt; &lt;span style="color: #339933;"&gt;=&lt;/span&gt; &lt;span style="color: #000088;"&gt;$array&lt;/span&gt;&lt;span style="color: #009900;"&gt;[&lt;/span&gt;&lt;span style="color: #000088;"&gt;$i&lt;/span&gt;&lt;span style="color: #009900;"&gt;]&lt;/span&gt;&lt;span style="color: #339933;"&gt;;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&lt;span style="color: #b1b100;"&gt;if&lt;/span&gt; &lt;span style="color: #009900;"&gt;(&lt;/span&gt; &lt;span style="color: #339933;"&gt;!&lt;/span&gt;&lt;span style="color: #000088;"&gt;$alphabet&lt;/span&gt;&lt;span style="color: #009900;"&gt;[&lt;/span&gt;&lt;span style="color: #000088;"&gt;$current_letter&lt;/span&gt;&lt;span style="color: #009900;"&gt;]&lt;/span&gt;&lt;span style="color: #009900;"&gt;[&lt;/span&gt;&lt;span style="color: #cc66cc;"&gt;0&lt;/span&gt;&lt;span style="color: #009900;"&gt;]&lt;/span&gt; &lt;span style="color: #009900;"&gt;)&lt;/span&gt; &lt;span style="color: #009900;"&gt;{&lt;/span&gt; &lt;span style="color: #b1b100;"&gt;continue&lt;/span&gt;&lt;span style="color: #339933;"&gt;;&lt;/span&gt; &lt;span style="color: #009900;"&gt;}&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&lt;span style="color: #000088;"&gt;$number_of_missed_keys&lt;/span&gt; &lt;span style="color: #339933;"&gt;=&lt;/span&gt; &lt;span style="color: #990000;"&gt;sizeof&lt;/span&gt;&lt;span style="color: #009900;"&gt;(&lt;/span&gt;&lt;span style="color: #000088;"&gt;$alphabet&lt;/span&gt;&lt;span style="color: #009900;"&gt;[&lt;/span&gt;&lt;span style="color: #000088;"&gt;$current_letter&lt;/span&gt;&lt;span style="color: #009900;"&gt;]&lt;/span&gt;&lt;span style="color: #009900;"&gt;)&lt;/span&gt;&lt;span style="color: #339933;"&gt;;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&lt;span style="color: #b1b100;"&gt;for&lt;/span&gt; &lt;span style="color: #009900;"&gt;(&lt;/span&gt;&lt;span style="color: #000088;"&gt;$x&lt;/span&gt; &lt;span style="color: #339933;"&gt;=&lt;/span&gt; &lt;span style="color: #cc66cc;"&gt;0&lt;/span&gt;&lt;span style="color: #339933;"&gt;;&lt;/span&gt; &lt;span style="color: #000088;"&gt;$x&lt;/span&gt; &lt;span style="color: #339933;"&gt;&amp;lt;&lt;/span&gt; &lt;span style="color: #000088;"&gt;$number_of_missed_keys&lt;/span&gt;&lt;span style="color: #339933;"&gt;;&lt;/span&gt; &lt;span style="color: #000088;"&gt;$x&lt;/span&gt;&lt;span style="color: #339933;"&gt;++&lt;/span&gt;&lt;span style="color: #009900;"&gt;)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #009900;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #b1b100;"&gt;for&lt;/span&gt; &lt;span style="color: #009900;"&gt;(&lt;/span&gt;&lt;span style="color: #000088;"&gt;$z&lt;/span&gt; &lt;span style="color: #339933;"&gt;=&lt;/span&gt; &lt;span style="color: #cc66cc;"&gt;1&lt;/span&gt;&lt;span style="color: #339933;"&gt;;&lt;/span&gt; &lt;span style="color: #000088;"&gt;$z&lt;/span&gt; &lt;span style="color: #339933;"&gt;&amp;lt;&lt;/span&gt; &lt;span style="color: #000088;"&gt;$size&lt;/span&gt;&lt;span style="color: #339933;"&gt;;&lt;/span&gt; &lt;span style="color: #000088;"&gt;$z&lt;/span&gt;&lt;span style="color: #339933;"&gt;++&lt;/span&gt;&lt;span style="color: #009900;"&gt;)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #009900;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #b1b100;"&gt;if&lt;/span&gt; &lt;span style="color: #009900;"&gt;(&lt;/span&gt;&lt;span style="color: #000088;"&gt;$i&lt;/span&gt; &lt;span style="color: #339933;"&gt;==&lt;/span&gt; &lt;span style="color: #000088;"&gt;$z&lt;/span&gt;&lt;span style="color: #009900;"&gt;)&lt;/span&gt; &lt;span style="color: #009900;"&gt;{&lt;/span&gt; &lt;span style="color: #000088;"&gt;$temp&lt;/span&gt; &lt;span style="color: #339933;"&gt;=&lt;/span&gt; &lt;span style="color: #000088;"&gt;$temp&lt;/span&gt; &lt;span style="color: #339933;"&gt;.&lt;/span&gt; &lt;span style="color: #000088;"&gt;$alphabet&lt;/span&gt;&lt;span style="color: #009900;"&gt;[&lt;/span&gt;&lt;span style="color: #000088;"&gt;$current_letter&lt;/span&gt;&lt;span style="color: #009900;"&gt;]&lt;/span&gt;&lt;span style="color: #009900;"&gt;[&lt;/span&gt;&lt;span style="color: #000088;"&gt;$x&lt;/span&gt;&lt;span style="color: #009900;"&gt;]&lt;/span&gt; &lt;span style="color: #339933;"&gt;;&lt;/span&gt; &lt;span style="color: #009900;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #b1b100;"&gt;else&lt;/span&gt; &lt;span style="color: #009900;"&gt;{&lt;/span&gt; &lt;span style="color: #000088;"&gt;$temp&lt;/span&gt; &lt;span style="color: #339933;"&gt;=&lt;/span&gt; &lt;span style="color: #000088;"&gt;$temp&lt;/span&gt; &lt;span style="color: #339933;"&gt;.&lt;/span&gt; &lt;span style="color: #000088;"&gt;$array&lt;/span&gt;&lt;span style="color: #009900;"&gt;[&lt;/span&gt; &lt;span style="color: #000088;"&gt;$z&lt;/span&gt;&lt;span style="color: #009900;"&gt;]&lt;/span&gt;&lt;span style="color: #339933;"&gt;;&lt;/span&gt; &lt;span style="color: #009900;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #009900;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #b1b100;"&gt;print&lt;/span&gt; &lt;span style="color: blue;"&gt;"&lt;span style="color: #006699; font-weight: bold;"&gt;$temp&lt;/span&gt; "&lt;/span&gt;&lt;span style="color: #339933;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #000088;"&gt;$temp&lt;/span&gt; &lt;span style="color: #339933;"&gt;=&lt;/span&gt; &lt;span style="color: blue;"&gt;""&lt;/span&gt;&lt;span style="color: #339933;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #009900;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #009900;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #009900;"&gt;}&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&lt;span style="color: #666666; font-style: italic;"&gt;////////////////////////Fin Fonctions/////////////////////////&lt;/span&gt;&lt;/pre&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4057243784218902902-5400268120080251734?l=leechoff.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://leechoff.blogspot.com/2011/01/php-script-generator-typos.html</link><author>noreply@blogger.com (AMINE)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-4057243784218902902.post-1757281358166129510</guid><pubDate>Sat, 29 Jan 2011 17:51:00 +0000</pubDate><atom:updated>2011-01-29T09:51:08.725-08:00</atom:updated><title>Gotroot.com ModSecurity rules</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;pre style="white-space: pre-wrap; word-wrap: break-word;"&gt;&lt;span class="Apple-style-span" style="white-space: pre;"&gt;&lt;span style="font-family: verdana, sans-serif;"&gt;&lt;span style="white-space: pre-wrap;"&gt;User Agent Security Rules for modsec 2.x, Created by Michael Shinn of the Prometheus Group (&lt;a href="http://www.prometheus-group.com/" target="_blank"&gt;http://www.prometheus-group.&lt;wbr&gt;&lt;/wbr&gt;com&lt;/a&gt;). &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small; white-space: pre-wrap;"&gt;&lt;b&gt;Download from:&lt;/b&gt; &lt;a href="http://www.gotroot.com/downloads/ftp/mod_security/2.0/useragents.conf" target="_blank"&gt;http://www.gotroot.com/&lt;wbr&gt;&lt;/wbr&gt;downloads/ftp/mod_security/2.&lt;wbr&gt;&lt;/wbr&gt;0/useragents.conf&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="white-space: pre-wrap; word-wrap: break-word;"&gt;&lt;span class="Apple-style-span" style="white-space: pre;"&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="word-wrap: break-word;"&gt;&lt;span style="font-family: 'Times New Roman'; font-size: small; white-space: normal;"&gt;&lt;pre style="white-space: pre-wrap; word-wrap: break-word;"&gt;#Comment spam header line&lt;br /&gt;SecRule REQUEST_HEADERS "x-aaaaaa.*"&lt;br /&gt;SecRule REQUEST_BODY "X-AAAAAA.*"&lt;br /&gt;&lt;br /&gt;#check for bad meta characters in User-Agent field&lt;br /&gt;#SecRule HTTP_User-Agent ".*\'"&lt;br /&gt;&lt;br /&gt;#XSS in the UA field&lt;br /&gt;SecRule HTTP_User-Agent "&amp;lt;(.|\s|\n)?(script|about|&lt;wbr&gt;&lt;/wbr&gt;applet|activex|chrome|object)(&lt;wbr&gt;&lt;/wbr&gt;.|\s|\n)?&amp;gt;.*&amp;lt;(.|\s|\n)?(&lt;wbr&gt;&lt;/wbr&gt;script|about|applet|activex|&lt;wbr&gt;&lt;/wbr&gt;chrome|object)"&lt;br /&gt;&lt;br /&gt;#PHP code injection attack&lt;br /&gt;SecRule HTTP_User-Agent "(&amp;lt;\?php|&amp;lt;[[:space:]]*\?[[:&lt;wbr&gt;&lt;/wbr&gt;space:]]*php)" &lt;br /&gt;SecRule HTTP_User-Agent ".*HTTP_GET_VARS"&lt;br /&gt;&lt;br /&gt;#recursion attack in UA field&lt;br /&gt;SecRule HTTP_User-Agent "\.\./\.\."&lt;br /&gt;&lt;br /&gt;#May cause false positives with some software, comment out if it does&lt;br /&gt;#SecRule REMOTE_ADDR "!^127\.0\.0\.1$" "chain,id:390000,rev:1,&lt;wbr&gt;&lt;/wbr&gt;severity:1,msg:'Suspicious Automated or Manual Request'"&lt;br /&gt;#SecRule "HTTP_User-Agent|HTTP_HOST|&lt;wbr&gt;&lt;/wbr&gt;HTTP_Accept" "^$"&lt;br /&gt;&lt;br /&gt;#Exploit agent&lt;br /&gt;SecRule HTTP_User-Agent "Mosiac 1\.*"&lt;br /&gt;&lt;br /&gt;#Bad agent&lt;br /&gt;SecRule HTTP_User-Agent "Brutus/AET"&lt;br /&gt;&lt;br /&gt;#CGI vuln scan tool&lt;br /&gt;SecRule HTTP_User-Agent cgichk&lt;br /&gt;SecRule HTTP_User-Agent "DataCha0s/2\.0"&lt;br /&gt;&lt;br /&gt;#Damn fine UA&lt;br /&gt;SecRule HTTP_User-Agent ".*THIS IS AN EXPLOIT*"&lt;br /&gt;SecRule HTTP_User-Agent "Morzilla"&lt;br /&gt;&lt;br /&gt;#&lt;a href="http://cirt.dk/" target="_blank"&gt;CIRT.DK&lt;/a&gt; Webroot auditing tool&lt;br /&gt;SecRule HTTP_User-Agent ".*WebRoot "&lt;br /&gt;&lt;br /&gt;#Exploit UA&lt;br /&gt;SecRule HTTP_User-Agent ".*T H A T \' S  G O T T A  H U R T*"&lt;br /&gt;&lt;br /&gt;#XML RPC exploit tool&lt;br /&gt;SecRule HTTP_User-Agent "xmlrpc exploit*"&lt;br /&gt;&lt;br /&gt;#A friendly little exploit banner for a WP vuln&lt;br /&gt;SecRule HTTP_User-Agent "Wordpress Hash Grabber"&lt;br /&gt;&lt;br /&gt;#Blocks scripts&lt;br /&gt;SecRule HTTP_User-Agent lwp&lt;br /&gt;&lt;br /&gt;#Web leaches&lt;br /&gt;SecRule HTTP_User-Agent "Web Downloader"&lt;br /&gt;SecRule HTTP_User-Agent WebZIP&lt;br /&gt;SecRule HTTP_User-Agent WebCopier&lt;br /&gt;SecRule HTTP_User-Agent Webster&lt;br /&gt;SecRule HTTP_User-Agent WebZIP&lt;br /&gt;SecRule HTTP_User-Agent WebStripper&lt;br /&gt;SecRule HTTP_User-Agent "teleport pro"&lt;br /&gt;SecRule HTTP_User-Agent combine&lt;br /&gt;SecRule HTTP_User-Agent "Black Hole"&lt;br /&gt;SecRule HTTP_User-Agent "SiteSnagger" &lt;br /&gt;SecRule HTTP_User-Agent "ProWebWalker" &lt;br /&gt;SecRule HTTP_User-Agent "CheeseBot" &lt;br /&gt;&lt;br /&gt;#Bogus Mozilla UA lines&lt;br /&gt;SecRule HTTP_User-Agent "Mozilla/(4|5)\.0$"&lt;br /&gt;SecRule HTTP_User-Agent "Mozilla/3\.Mozilla/2\.01$"&lt;br /&gt;&lt;br /&gt;#Bogus IE UA line&lt;br /&gt;SecRule HTTP_User-Agent "Microsoft Internet Explorer/5\.0$"&lt;br /&gt;&lt;br /&gt;#Bogus UA&lt;br /&gt;SecRule HTTP_User-Agent "FooBar/42"&lt;br /&gt;&lt;br /&gt;#Nessus Vuln scanner UA&lt;br /&gt;SecRule HTTP_User-Agent "Mozilla.*Nessus"&lt;br /&gt;&lt;br /&gt;#Nikto vuln scanner UA&lt;br /&gt;SecRule HTTP_User-Agent ".*Nikto"&lt;br /&gt;&lt;br /&gt;#BAd/Bogus UAs&lt;br /&gt;SecRule HTTP_User-Agent "Indy Library"&lt;br /&gt;SecRule HTTP_User-Agent "Faxobot"&lt;br /&gt;SecRule HTTP_User-Agent ".*SAFEXPLORER TL"&lt;br /&gt;&lt;br /&gt;#Spam spinder UAs&lt;br /&gt;SecRule HTTP_User-Agent ".*fantomBrowser"&lt;br /&gt;SecRule HTTP_User-Agent ".*fantomCrew Browser"&lt;br /&gt;&lt;br /&gt;#VB development library used by many spammers, might block legite VBscripts&lt;br /&gt;#comment out if you have problems&lt;br /&gt;SecRule HTTP_User-Agent "Crescent Internet ToolPak"&lt;br /&gt;&lt;br /&gt;#Borland Delphi signature, as above, comment out if it gives you problems&lt;br /&gt;#spammers sometimes use these UAs&lt;br /&gt;SecRule HTTP_User-Agent "NEWT ActiveX\; Win32"&lt;br /&gt;SecRule HTTP_User-Agent "Mozilla.*NEWT"&lt;br /&gt;&lt;br /&gt;#Part of the Microsoft MSINET.OCX, as above, spammers sometimes use this, if&lt;br /&gt;#it causes problems, comment out.  If you are a member of the Microsoft Site &lt;br /&gt;#Builder Network, you probably do NOT want to block this ID.&lt;br /&gt;#SecRule HTTP_User-Agent "Microsoft URL Control"&lt;br /&gt;#SecRule HTTP_User-Agent  "^Microsoft URL"&lt;br /&gt;&lt;br /&gt;#e-mail collectors and spammers&lt;br /&gt;SecRule HTTP_User-Agent "WebBandit"&lt;br /&gt;SecRule HTTP_User-Agent "WEBMOLE"&lt;br /&gt;SecRule HTTP_User-Agent "Telesoft*"&lt;br /&gt;SecRule HTTP_User-Agent "WebEMailExtractor"&lt;br /&gt;SecRule HTTP_User-Agent "CherryPicker*"&lt;br /&gt;SecRule HTTP_User-Agent NICErsPRO&lt;br /&gt;SecRule HTTP_User-Agent "Advanced Email Extractor*"&lt;br /&gt;SecRule HTTP_User-Agent EmailSiphon&lt;br /&gt;SecRule HTTP_User-Agent Extractorpro&lt;br /&gt;SecRule HTTP_User-Agent webbandit&lt;br /&gt;SecRule HTTP_User-Agent EmailCollector&lt;br /&gt;SecRule HTTP_User-Agent "WebEMailExtrac*"&lt;br /&gt;SecRule HTTP_User-Agent EmailWolf&lt;br /&gt;&lt;br /&gt;#Spiders that eat up bandwidth for their customers&lt;br /&gt;#Not a spammer, just a spider, comment out if you like&lt;br /&gt;SecRule HTTP_User-Agent "CopyRightCheck"&lt;br /&gt;SecRule HTTP_User-Agent "CopyGuard"&lt;br /&gt;SecRule HTTP_User-Agent "Digimarc WebReader"&lt;br /&gt;&lt;br /&gt;#MArketing spiders&lt;br /&gt;SecRule HTTP_User-Agent  "Zeus .*Webster Pro*"&lt;br /&gt;&lt;br /&gt;#Poker spam&lt;br /&gt;SecRule HTTP_User-Agent  "8484 Boston Project"&lt;br /&gt;&lt;br /&gt;#collectors&lt;br /&gt;SecRule HTTP_User-Agent  "autoemailspider"&lt;br /&gt;SecRule HTTP_User-Agent  "ecollector"&lt;br /&gt;SecRule HTTP_User-Agent  "grub crawler"&lt;br /&gt;&lt;br /&gt;#referrer spam, not the real weblogs&lt;br /&gt;SecRule HTTP_User-Agent  "^www\.weblogs\.com"&lt;br /&gt;&lt;br /&gt;#spam bots&lt;br /&gt;SecRule HTTP_User-Agent  "DTS Agent"&lt;br /&gt;SecRule HTTP_User-Agent  "POE-Component-Client"&lt;br /&gt;SecRule HTTP_User-Agent  "WISEbot"&lt;br /&gt;SecRule HTTP_User-Agent  "^Shockwave Flash"&lt;br /&gt;SecRule HTTP_User-Agent  "Missigua"&lt;br /&gt;&lt;br /&gt;#comment spam sign&lt;br /&gt;SecRule HTTP_User-Agent  "compatible \; MSIE"&lt;br /&gt;&lt;br /&gt;#Some regexps to catch silly bots&lt;br /&gt;SecRule REQUEST_URI "!/ps(zones\|comp).txt1" chain&lt;br /&gt;SecRule HTTP_User-Agent "^(google|i?explorer?\.exe|(&lt;wbr&gt;&lt;/wbr&gt;MS)?IE( [0-9.]+)?[ ]?(Compatible( Browser)?)?)$"&lt;br /&gt;SecRule HTTP_User-Agent "^(Mozilla( [0-9.]+)?[ ]?\((Windows|Linux|(IE )?Compatible)\))$"&lt;br /&gt;SecRule HTTP_User-Agent "^Mozilla/5\.0 \(X11; U; Linux i686; en-US; rv\:0\.9\.6\+\) Gecko/2001112$"&lt;br /&gt;SecRule HTTP_User-Agent "^Mozilla/[0-9.]+ \(compatible; MSIE [0-9.]+; Windows( NT)?( [0-9.]*)?;[0-9./ ]*\)?$"&lt;br /&gt;SecRule HTTP_User-Agent "^Mozilla/.+[. ]+$"&lt;br /&gt;&lt;br /&gt;#spammer&lt;br /&gt;SecRule HTTP_User-Agent "Butch__2\.1\.1"&lt;br /&gt;SecRule HTTP_User-Agent "agdm79@mail\.ru"&lt;br /&gt;&lt;br /&gt;#Fake Gameboy UA&lt;br /&gt;SecRule HTTP_User-Agent "GameBoy\, Powered by Nintendo"&lt;br /&gt;&lt;br /&gt;#bogus amiga UA&lt;br /&gt;SecRule HTTP_User-Agent "Amiga-AWeb/3\.4"&lt;br /&gt;&lt;br /&gt;#exploit UA&lt;br /&gt;SecRule HTTP_User-Agent "Internet Ninja x\.0"&lt;br /&gt;&lt;br /&gt;#bogus googlebot UA&lt;br /&gt;SecRule HTTP_User-Agent "Nokia-WAPToolkit.* googlebot.*googlebot"&lt;br /&gt;&lt;br /&gt;#recently caught sending spam referrals, from their actual crawler IP&lt;br /&gt;SecRule HTTP_User-Agent "BecomeBot"&lt;br /&gt;&lt;br /&gt;#Suverybot&lt;br /&gt;#SecRule HTTP_User-Agent "SurveyBot"&lt;br /&gt;&lt;br /&gt;#exploit&lt;br /&gt;SecRule HTTP_User-Agent "S\.T\.A\.L\.K\.E\.R\."&lt;br /&gt;SecRule HTTP_User-Agent "NeuralBot/0\.2"&lt;br /&gt;SecRule HTTP_User-Agent "Kenjin Spider"&lt;br /&gt;&lt;br /&gt;#WebvulnScan&lt;br /&gt;SecRule HTTP_User-Agent "WebVulnScan"&lt;br /&gt;&lt;br /&gt;#broken spam tool&lt;br /&gt;SecRule HTTP_User-Agent "Mozilla/4\.0 \(compatible\; MSIE 6\.0\; Windows NT 5\.1$"&lt;br /&gt;&lt;br /&gt;#PHPBB worm UA&lt;br /&gt;SecRule HTTP_User-Agent "INTERNET EXPLOITER SUX"&lt;br /&gt;&lt;br /&gt;#fake UA&lt;br /&gt;SecRule HTTP_User-Agent "Windows-Update-Agent"&lt;br /&gt;&lt;br /&gt;#exploit&lt;br /&gt;SecRule HTTP_User-Agent "Internet-exprorer"&lt;br /&gt;&lt;br /&gt;# Bad Spider&lt;br /&gt;SecRule HTTP_User-Agent "hl_ftien_spider"&lt;br /&gt;&lt;br /&gt;# PMAFind &lt;br /&gt;SecRule HTTP_User-Agent "PMAFind"&lt;/pre&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4057243784218902902-1757281358166129510?l=leechoff.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://leechoff.blogspot.com/2011/01/gotrootcom-modsecurity-rules.html</link><author>noreply@blogger.com (AMINE)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-4057243784218902902.post-6688760346613742872</guid><pubDate>Sat, 29 Jan 2011 17:49:00 +0000</pubDate><atom:updated>2011-01-29T09:49:28.291-08:00</atom:updated><title>Atomic Security Linux Unified Threat Manager?</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;div&gt; &lt;h1 style="margin: 0px; padding: 0px;"&gt;&lt;span class="Apple-style-span" style="border-collapse: collapse; color: #333333; font-family: Verdana, Tahoma, Arial, Calibri, Geneva, sans-serif; font-size: 12px; font-weight: normal;"&gt;[Put a image by Screen shoot of this (&lt;a href="http://www.atomicrocketturtle.com/gallery2/main.php?g2_view=core.DownloadItem&amp;amp;g2_itemId=1650&amp;amp;g2_serialNumber=2" target="_blank"&gt;http://www.&lt;wbr&gt;&lt;/wbr&gt;atomicrocketturtle.com/&lt;wbr&gt;&lt;/wbr&gt;gallery2/main.php?g2_view=&lt;wbr&gt;&lt;/wbr&gt;core.DownloadItem&amp;amp;g2_itemId=&lt;wbr&gt;&lt;/wbr&gt;1650&amp;amp;g2_serialNumber=2&lt;/a&gt;)]&lt;/span&gt;&lt;/h1&gt;&lt;div style="border-collapse: collapse; color: black; font-family: Verdana,Tahoma,Calibri,Geneva,sans-serif; font-size: 12px; line-height: 18px;"&gt;&lt;span&gt;&lt;span style="color: #333333; font-family: Verdana,Tahoma,Arial,Calibri,Geneva,sans-serif; line-height: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: Verdana, Tahoma, Arial, Calibri, Geneva, sans-serif;"&gt;&lt;span style="border-collapse: collapse; font-size: 12px;"&gt;&lt;span style="border-collapse: separate; font-family: Verdana; line-height: 18px;"&gt;Atomic  Secured Linux(tm) is an out-of-the-box Unified Security Suite for  Linux(tm) systems designed to protect your servers against both known  and unknown threats.&lt;a name='more'&gt;&lt;/a&gt; It is distributed through a subscription yum  channel ensuring that ASL is always kept up to date. Unlike other  security solultions, ASL works by combining security at all layers, from  the Kernel all the way up to the application layer to provide the most  complete protection available for Linux servers and helps to ensure that  your system is compliant with commercial and government security  standards. ASL includes the most hardened and secure kernel on the  market, built in vulnerability scanner, self-healing of vulnerabilities,  automated system hardening, userspace and host Intrusion Prevention  Systems (IPS), malware/rootkit detection and elimination, blacklisting  technologies and web application firewalling to protect multiuser and  web application hosting environments like no other solution. ASL is  uniquely effective at addressing emerging threats posed by  vulnerabilities in todays complex systems and applications, such as web  hosting environments, multiuser systems, CRM's, ERPs, forums, shopping  carts, Content Management systems and custom applications.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;Bet for your Linux Security.&amp;nbsp;&lt;a href="http://www.atomicorp.com/" target="_blank"&gt;http://www.&lt;wbr&gt;&lt;/wbr&gt;atomicorp.com&lt;/a&gt;&lt;/div&gt;&lt;div&gt;See some Images:&amp;nbsp;&lt;a href="http://www.atomicrocketturtle.com/gallery2/main.php?g2_itemId=604" target="_blank"&gt;http://www.&lt;wbr&gt;&lt;/wbr&gt;atomicrocketturtle.com/&lt;wbr&gt;&lt;/wbr&gt;gallery2/main.php?g2_itemId=&lt;wbr&gt;&lt;/wbr&gt;604&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4057243784218902902-6688760346613742872?l=leechoff.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://leechoff.blogspot.com/2011/01/atomic-security-linux-unified-threat.html</link><author>noreply@blogger.com (AMINE)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-4057243784218902902.post-4803485603927195398</guid><pubDate>Sat, 29 Jan 2011 17:48:00 +0000</pubDate><atom:updated>2011-01-29T09:48:34.195-08:00</atom:updated><title>How Gotroot.COM Help me?</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;div&gt;&lt;h1 style="border-collapse: collapse; color: inherit; font-family: Verdana,Tahoma,Calibri,Geneva,sans-serif; font-size: 14px; font-weight: bold; line-height: 18px; margin: 0px; padding: 0px;"&gt;&lt;br /&gt;&lt;/h1&gt;&lt;div style="border-collapse: collapse; font-family: Verdana,Tahoma,Calibri,Geneva,sans-serif; font-size: 12px; line-height: 18px;"&gt;&lt;span&gt;&lt;span style="color: #333333; font-family: Verdana,Tahoma,Arial,Calibri,Geneva,sans-serif; line-height: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #333333; font-family: Verdana, Tahoma, Arial, Calibri, Geneva, sans-serif;"&gt;&lt;span style="border-collapse: collapse; font-size: 12px;"&gt;Gotroot.com  is a site about Free Script and Free&amp;nbsp;Security&amp;nbsp;Apps - Those help u to  protect ur host and ur php form Leech or hacking. They also has free  Ebooks which is very&amp;nbsp;important&amp;nbsp;for you. &amp;nbsp;ALso they has forums so u don't  worry about it.&amp;nbsp;discuss&amp;nbsp;with them and rapidleech problem will be solve.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4057243784218902902-4803485603927195398?l=leechoff.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://leechoff.blogspot.com/2011/01/how-gotrootcom-help-me.html</link><author>noreply@blogger.com (AMINE)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-4057243784218902902.post-6131401083463886252</guid><pubDate>Sat, 29 Jan 2011 17:46:00 +0000</pubDate><atom:updated>2011-01-29T09:47:25.907-08:00</atom:updated><title>How do you stop Rapidleech on Hosting?</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span style="border-collapse: collapse; font-size: 12px;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;h1 style="color: inherit; font-family: Verdana,Tahoma,Calibri,Geneva,sans-serif; font-size: 14px; font-weight: bold; line-height: 18px; margin: 0px; padding: 0px;"&gt;&lt;br /&gt;&lt;/h1&gt;&lt;div style="font-family: Verdana,Tahoma,Calibri,Geneva,sans-serif; line-height: 18px;"&gt;&lt;span style="color: #333333; font-family: Verdana, Tahoma, Arial, Calibri, Geneva, sans-serif; line-height: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,Tahoma,Calibri,Geneva,sans-serif; line-height: 18px;"&gt;&lt;span style="color: #333333; font-family: Verdana, Tahoma, Arial, Calibri, Geneva, sans-serif; line-height: normal;"&gt;Here is 3 Ways to -&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,Tahoma,Calibri,Geneva,sans-serif; line-height: 18px;"&gt;&lt;span style="color: #333333; font-family: Verdana, Tahoma, Arial, Calibri, Geneva, sans-serif; line-height: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,Tahoma,Calibri,Geneva,sans-serif; line-height: 18px;"&gt;&lt;span style="color: #333333; font-family: Verdana, Tahoma, Arial, Calibri, Geneva, sans-serif; line-height: normal;"&gt;1. Blocking fsockopen should do the trick - that will at least keep it from running.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;2.&amp;nbsp;&lt;span style="border-collapse: collapse; color: #333333; font-family: Verdana, Tahoma, Arial, Calibri, Geneva, sans-serif; font-size: 12px;"&gt;Mod_security has rules, isnt it? I know that c99 shells are blocked with it. If that's possible, so it's with rapidleech.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="border-collapse: collapse; color: #333333; font-family: Verdana, Tahoma, Arial, Calibri, Geneva, sans-serif; font-size: 12px;"&gt;3.&amp;nbsp;&lt;/span&gt;&lt;span style="border-collapse: collapse; color: #333333; font-family: Verdana, Tahoma, Arial, Calibri, Geneva, sans-serif; font-size: 12px;"&gt;Filter  all the php files. The ones that comply with the rule are deleted.  Then, the ones that comply with part of the rule make the script send  you an email with the path.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="border-collapse: collapse; color: #333333; font-family: Verdana, Tahoma, Arial, Calibri, Geneva, sans-serif; font-size: 12px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4057243784218902902-6131401083463886252?l=leechoff.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://leechoff.blogspot.com/2011/01/how-do-you-stop-rapidleech-on-hosting.html</link><author>noreply@blogger.com (AMINE)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-4057243784218902902.post-2004625645426666661</guid><pubDate>Sat, 29 Jan 2011 12:12:00 +0000</pubDate><atom:updated>2011-01-29T04:12:48.127-08:00</atom:updated><title>we must do somethings</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;we must do somethings about those rapidleech if any one has an idea put it in comments&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4057243784218902902-2004625645426666661?l=leechoff.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://leechoff.blogspot.com/2011/01/we-must-do-somethings.html</link><author>noreply@blogger.com (AMINE)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-4057243784218902902.post-358438935623006153</guid><pubDate>Sat, 29 Jan 2011 11:53:00 +0000</pubDate><atom:updated>2011-01-29T04:08:09.112-08:00</atom:updated><title>hate rapidleech</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;first because they are bad for host like megaupload and fileserve example i need a premium account to download but when i find a public rapidleech i don't need yet to order a premium account.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;seconde if i want to make money with host's files it doesn't work because all people will download with a single premium account so those rapidleech must stopped&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4057243784218902902-358438935623006153?l=leechoff.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://leechoff.blogspot.com/2011/01/i-hate-rapidleech.html</link><author>noreply@blogger.com (AMINE)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-4057243784218902902.post-7352168699450731010</guid><pubDate>Sat, 29 Jan 2011 10:00:00 +0000</pubDate><atom:updated>2011-01-29T03:52:51.584-08:00</atom:updated><title>What is Rapidleech?</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span class="Apple-style-span" style="font-family: sans-serif; font-size: 13px; line-height: 19px;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;h3 style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; color: black; font-size: 17px; font-weight: bold; margin-bottom: 0.3em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0.17em; padding-top: 0.5em;"&gt;&lt;br /&gt;&lt;/h3&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;Rapid Leech is a free server transfer script for use on various popular upload/download sites such as megaupload.com, Rapidshare.com and more than 45 others. The famous Rapidleech script transfers files from Rapidshare, Megaupload, Depositfiles.com, Easy-share.com, etc, via your fast servers connection speed and dumps the file on your server. You may then download these files from your server anytime later.&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4057243784218902902-7352168699450731010?l=leechoff.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://leechoff.blogspot.com/2011/01/rapidleech-is-bad.html</link><author>noreply@blogger.com (AMINE)</author><thr:total>0</thr:total></item></channel></rss>