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
(→Related Threats) |
|||
Line 1: | Line 1: | ||
{{Template:Vulnerability}} | {{Template:Vulnerability}} | ||
+ | {{Template:Stub}} | ||
+ | |||
+ | |||
+ | [[Category:FIXME|This is the text from the old template. This needs to be rewritten using the new template.]] | ||
+ | |||
+ | |||
+ | Last revision (mm/dd/yy): '''{{REVISIONMONTH}}/{{REVISIONDAY}}/{{REVISIONYEAR}}''' | ||
+ | |||
+ | [[ASDR_TOC_Vulnerabilities|Vulnerabilities Table of Contents]] | ||
+ | |||
+ | [[ASDR Table of Contents]] | ||
+ | __TOC__ | ||
+ | |||
==Description== | ==Description== | ||
+ | |||
PHP as many other languages allow the inclution of files in order to provide or extend the functionality of the current file. | PHP as many other languages allow the inclution of files in order to provide or extend the functionality of the current file. | ||
− | ==Examples == | + | ==Risk Factors== |
+ | |||
+ | TBD | ||
+ | |||
+ | |||
+ | ==Examples== | ||
+ | |||
<?PHP | <?PHP | ||
include '/path/filename.php'; | include '/path/filename.php'; | ||
Line 12: | Line 32: | ||
?> | ?> | ||
− | ==Related | + | ==Related [[Attacks]]== |
− | |||
− | + | * Remote file inclusion using variables from the request POST or GET | |
− | |||
− | |||
− | == | + | ==Related [[Vulnerabilities]]== |
+ | |||
+ | * [[Vulnerability 1]] | ||
+ | * [[Vulnerabiltiy 2]] | ||
+ | |||
+ | ==Related [[Controls]]== | ||
+ | |||
+ | * [[Control 1]] | ||
+ | * [[Control 2]] | ||
+ | |||
+ | |||
+ | ==Related [[Technical Impacts]]== | ||
+ | |||
+ | * [[Technical Impact 1]] | ||
+ | * [[Technical Impact 2]] | ||
+ | |||
+ | |||
+ | ==References== | ||
+ | Note: A reference to related [http://cwe.mitre.org/ CWE] or [http://capec.mitre.org/ CAPEC] article should be added when exists. Eg: | ||
+ | |||
+ | * [http://cwe.mitre.org/data/definitions/79.html CWE 79]. | ||
+ | * http://www.link1.com | ||
+ | * [http://www.link2.com Title for the link2] | ||
+ | |||
+ | [[Category:FIXME|add links | ||
+ | |||
+ | In addition, one should classify vulnerability based on the following subcategories: Ex:<nowiki>[[Category:Error Handling Vulnerability]]</nowiki> | ||
+ | |||
+ | Availability Vulnerability | ||
+ | |||
+ | Authorization Vulnerability | ||
+ | |||
+ | Authentication Vulnerability | ||
+ | |||
+ | Concurrency Vulnerability | ||
+ | |||
+ | Configuration Vulnerability | ||
+ | |||
+ | Cryptographic Vulnerability | ||
+ | |||
+ | Encoding Vulnerability | ||
+ | |||
+ | Error Handling Vulnerability | ||
+ | |||
+ | Input Validation Vulnerability | ||
+ | |||
+ | Logging and Auditing Vulnerability | ||
+ | |||
+ | Session Management Vulnerability]] | ||
+ | |||
+ | __NOTOC__ | ||
− | |||
+ | [[Category:OWASP ASDR Project]] | ||
[[Category:PHP]] | [[Category:PHP]] |
Revision as of 12:27, 30 September 2008
This is a Vulnerability. To view all vulnerabilities, please see the Vulnerability Category page.
This article is a stub. You can help OWASP by expanding it or discussing it on its Talk page.
Last revision (mm/dd/yy): 09/30/2008
Vulnerabilities Table of Contents
Description
PHP as many other languages allow the inclution of files in order to provide or extend the functionality of the current file.
Risk Factors
TBD
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: