CAPEC-251
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
CWE-94
HIPAA-164.306(a)
164.308(a)
ISO27001-A.14.2.5
OWASP 2013-A1
OWASP 2017-A1
PCI v3.2-6.5.1
WASC-33

Code Evaluation via Local File Inclusion (PHP)

Severity:
Critical
Summary

Invicti identified a Code Evaluation via Local File Inclusion (PHP).

Impact

An attacker can execute arbitrary PHP code by abusing the Local File Inclusion vulnerability on the server.

Remediation
  • If possible, do not permit file paths to be appended directly. Make them hard-coded or selectable from a limited hard-coded path list via an index variable.
  • If you definitely need dynamic path concatenation, ensure you only accept required characters such as "a-Z0-9" and do not allow ".." or "/" or "%00" (null byte) or any other similar unexpected characters.
  • It is important to limit the API to allow inclusion only from a directory and directories below it. This ensures that any potential attack cannot perform a directory traversal attack.
Required Skills for Successful Exploitation
Actions To Take
Vulnerability Index

You can search and find all vulnerabilities

Select Vulnerability
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.

Featured resources

Blog

Strengthening enterprise application security: Invicti acquires Kondukto

Blog

Modern AppSec KPIs: Moving from scan counts to real risk reduction

Blog

Friends don’t let friends shift left: Shift smarter with DAST-first AppSec

Blog

Vibe talking: Dan Murphy on the promises, pitfalls, and insecurities of vibe coding

No items found.