> For the complete documentation index, see [llms.txt](https://docs.cooku222.kr/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cooku222.kr/security/web-hacking/dreamhack/dreamhack-baby-ai.md).

# \[Dreamhack] baby-ai

문제 출처: <https://dreamhack.io/wargame/challenges/1622>

***

#### 문제&#x20;

<figure><img src="https://blog.kakaocdn.net/dna/cfLNes/btsNyjYosE5/AAAAAAAAAAAAAAAAAAAAAO4scUhpqiqP6wJLTAupILZ7TAQoTbrHFm3SHsH7TuvT/img.png?credential=yqXZFxpELC7KVnFOS48ylbz2pIh7yKj8&#x26;expires=1782831599&#x26;allow_ip=&#x26;allow_referer=&#x26;signature=mQVapPMIshAxwKsht0uvyThThAQ%3D" alt="" height="291" width="982"><figcaption></figcaption></figure>

***

<figure><img src="https://blog.kakaocdn.net/dna/4WFzb/btsNwYBb859/AAAAAAAAAAAAAAAAAAAAAE1J5a1DhqLSasurxBabKeNecA27rIsOnVevjSresQmT/img.png?credential=yqXZFxpELC7KVnFOS48ylbz2pIh7yKj8&#x26;expires=1782831599&#x26;allow_ip=&#x26;allow_referer=&#x26;signature=jpATXXzMwsASK2oBIUjBW6I6LkU%3D" alt="" height="555" width="981"><figcaption></figcaption></figure>

#### 시행착오

처음에 보고, command injection 같은 문제라고 생각해서 ls, cat 이런걸 넣어보았다. -> 근데 소스 코드에서 관련 리눅스 명령어를 벤 처리 해놓았음 -> 파일 호출이 안 됨 + 인공지능 llm 의 취약점 중 뭐가 있나.. 생각해보다가\
-> DH{} 태그에 있을테니 DH가 포함된 문자열 불러달라 하니까 불러주더라는,,


---

# 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:

```
GET https://docs.cooku222.kr/security/web-hacking/dreamhack/dreamhack-baby-ai.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.
