This site is the archived OWASP Foundation Wiki and is no longer accepting Account Requests.
To view the new OWASP Foundation website, please visit https://owasp.org

Difference between revisions of "PHP File Inclusion"

From OWASP
Jump to: navigation, search
(Description)
m (Description)
Line 8: Line 8:
 
==Description==
 
==Description==
 
PHP, as many other languages, allows the inclution of files in order to provide or extend the functionality of the current file.
 
PHP, as many other languages, allows the inclution of files in order to provide or extend the functionality of the current file.
If this aspect is compromised, the file itself might be as well thereby undermining the integrity of such program.
+
If this aspect is compromised, the file itself might be as well, thereby undermining the integrity of such program.
  
 
==Risk Factors==
 
==Risk Factors==

Revision as of 03:42, 30 January 2016

This article is a stub. You can help OWASP by expanding it or discussing it on its Talk page.


This is a Vulnerability. To view all vulnerabilities, please see the Vulnerability Category page.


Last revision (mm/dd/yy): 01/30/2016

Vulnerabilities Table of Contents

Description

PHP, as many other languages, allows the inclution of files in order to provide or extend the functionality of the current file. If this aspect is compromised, the file itself might be as well, thereby undermining the integrity of such program.

Risk Factors

None detected at this moment.

Examples

<?PHP 
include '/path/filename.php';
include_once 'path/filename.class.php';
require '../path/filename.inc';
require_once 'filename.inc.php';
?>

Related Attacks

  • Remote file inclusion using variables from the request POST or GET


Related Vulnerabilities

Related Controls


Related Technical Impacts


References

Note: A reference to related CWE or CAPEC article should be added when exists. Eg: