> 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/lord-of-sql-injection/lord-of-sqlinjection-cobolt.md).

# \[Lord Of SQLInjection] cobolt

<img src="https://blog.kakaocdn.net/dna/AoL8C/btsMBYas1YS/AAAAAAAAAAAAAAAAAAAAAPkMjD9NrDgYELDWb0Q_ocuvADi3WdUgS8G4C9tQdFg3/img.png?credential=yqXZFxpELC7KVnFOS48ylbz2pIh7yKj8&#x26;expires=1782831599&#x26;allow_ip=&#x26;allow_referer=&#x26;signature=0BgHRbIbLlEPhL5WotmRV7hfhqs%3D" alt="" height="568" width="779">

→ 해당 브라우저로 접속하면 바로 이런 코드가 나온다.

→ gremlin 문제와 매우 유사하나 md5로 암호화된 채 쿼리가 전송된다는 점에서 차이를 지닌다.

```
if($result['id'] == 'admin') solve("cobolt");
```

해당 코드를 보면 id는 admin이어야하고, pw=md5('{$\_GET\[pw]}')의 암호화 자체가 무시되어야하므로

```
[도메인 값]?id=admin' or '1'='1
```

이렇게 평문을 작성해서 브라우저 접속하면 인코딩 되어 페이로드에 접속할 수 있고

<figure><img src="https://blog.kakaocdn.net/dna/bHhw4d/btsMCyWooF5/AAAAAAAAAAAAAAAAAAAAAMG9Ok8MYqIutl5x3kDGS8_0UeQBG-uUslHFT6C8lw0X/img.png?credential=yqXZFxpELC7KVnFOS48ylbz2pIh7yKj8&#x26;expires=1782831599&#x26;allow_ip=&#x26;allow_referer=&#x26;signature=U7qUN%2FRMSzgQrraAFPeh52rR80k%3D" alt="" height="516" width="708"><figcaption></figcaption></figure>

→ 클리어한 화면을 볼 수 있다.

\ <br>


---

# 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/lord-of-sql-injection/lord-of-sqlinjection-cobolt.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.
