Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| 22 | 23 | 24 | 25 | 26 | 27 | 28 |
Tags
- reversing
- 네트워크
- 모의해킹
- bee-box
- 해킹
- 시스템해킹
- 비박스
- 알고리즘
- 순서도
- CodeEngn
- webhacking
- 소프트웨어
- 소프트웨어보안
- 워게임
- hacking
- 웹해킹
- 리버싱
- 웹
- Web
- dreamhack
- WarGame
- ftz
- TCP
- network
- Webhaking
- 드림핵
- System
- XSS
- 시스템
- 네트워크보안
Archives
- Today
- Total
Without a Break
[WebGoat] Command Injection 본문

'[/bin/sh, -c, cat "/root/.extract/webapps/WebGoat/plugin_extracted/plugin/CommandInjection/resources/AccessControlMatrix.html"]'
밑의 코드를 살펴보면 선택한 view 값이 파란 부분에 들어간다.

버프 스위트로 인터셉트를 켜서 view 버튼을 누른다.
HelpFile에 입력값이 들어가기 때문에, HelpFile을 이용해서 문자열을 추가한다.
'[/bin/sh, -c, cat "/root/.extract/webapps/WebGoat/plugin_extracted/plugin/CommandInjection/resources/AccessControlMatrix.html"";ls]'
"를 넣어 html 뒤의 "와 연결시켜 주고, ;로 명령문을 끝내준 후 실행할 명령어를 추가했다.


'Web > Wargame' 카테고리의 다른 글
| [WebGoat] Stored XSS Attacks (0) | 2024.08.26 |
|---|---|
| [WebGoat] Spoof an Authentication Cookie (0) | 2024.08.26 |
| [WebGoat] Blind String SQL Injection (0) | 2024.08.25 |
| [WebGoat] Blind Numeric SQL Injection (0) | 2024.08.25 |
| [WebGoat] Stage 3: Numeric SQL Injection (0) | 2024.08.25 |