CAPEC-193
PHP Remote File Inclusion
In this pattern the adversary is able to load and execute arbitrary code remotely available from the application. This is usually accomplished through an insecurely configured PHP runtime environment and an improperly sanitized "include" or "require" call, which the user can then control to point to any web-accessible file. This allows adversaries to hijack the targeted application and force it to execute their own instructions.
Soyutlama
Detailed
Tipik ciddiyet
High
Saldırı ihtimali
High
Saldırıyı anla
Bu saldırı kalıbı nedir?
Uygulama akışı
Saldırı adım adım nasıl ilerler?
Explore
Survey application
Kullanılan teknikler
- Use a spidering tool to follow and record all links. Make special note of any links that include parameters in the URL.
- Use a proxy tool to record all links visited during a manual traversal of the web application. Make special note of any links that include parameters in the URL. Manual traversal of this type is frequently necessary to identify forms that are GET method forms rather than POST forms.
- Use a browser to manually explore the website and analyze how it is constructed. Many browser's plugins are available to facilitate the analysis or automate the URL discovery.
Experiment
Attempt variations on input parameters
Kullanılan teknikler
- Use a list of probe strings to inject in parameters of known URLs. The probe strings are variants of PHP remote file inclusion payloads which include a reference to the adversary controlled remote PHP script.
- Use a proxy tool to record results of manual input of remote file inclusion probes in known URLs.
Exploit
Run arbitrary server-side code
Kullanılan teknikler
- Develop malicious PHP script that is injected through vectors identified during the Experiment Phase and executed by the application server to execute a custom PHP script.
Gereksinimler
Saldırının gerçekleşmesi için ne gerekir?
Ön koşullar
- Target application server must allow remote files to be included in the "require", "include", etc. PHP directives
- The adversary must have the ability to make HTTP requests to the target web application.
Gerekli beceri
- Low: To inject the malicious payload in a web page
- Medium: To bypass filters in the application
Gerekli kaynak
- None: No specialized resources are required to execute this type of attack.
Etki
Başarılı saldırı neye yol açar?
Etkilenen alanlar: Integrity
Etkilenen alanlar: Confidentiality
Etkilenen alanlar: Authorization
Etkilenen alanlar: Accountability, Authentication, Authorization, Non-Repudiation
Etkilenen alanlar: Access Control, Authorization
Savunma
Nasıl önlenir ve etkisi azaltılır?
Gerçek dünya