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 | 29 | 
| 30 | 
                            Tags
                            
                        
                          
                          - 모의해킹
- 순서도
- 시스템해킹
- network
- 웹
- dreamhack
- ftz
- WarGame
- 비박스
- 알고리즘
- hacking
- 해킹
- webhacking
- 네트워크보안
- 웹해킹
- 리버싱
- CodeEngn
- 소프트웨어보안
- System
- XSS
- 네트워크
- TCP
- Web
- 워게임
- reversing
- 시스템
- bee-box
- 드림핵
- 소프트웨어
- Webhaking
                            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 | 
 
           
                   
                   
                  