![](http://i1.daumcdn.net/thumb/C148x148.fwebp.q85/?fname=https://blog.kakaocdn.net/dn/be5hX5/btq94sfCa4B/ohYzYgnO4HtehnkbOVz2F0/img.png)
55번째 글. 1. 코드 분석 주석(#)을 통해서 뒤에 있는 조건을 무효화시키고 있다. 2. Exploit #은 한줄만 주석처리를 하기 때문에 개행(line feed)을 통해서 escape 할 수 있다. ?pw=aaa'%0a and 1=2 or id='admin' and 1=1%23 이렇게 주게 되면 당연하지만 주석과 개행 사이의 문자는 무효가 되고 뒤에 오는 조건이 하나의 쿼리로 인식되어 실행이 가능해진다. 그렇기 때문에 일부러 false인 조건을 넣고 앞의 and 연산을 false로 만든 뒤 id='admin'인 조건을 넣어서 쿼리의 결과가 admin이 될 수 있도록 만들어 준다.
writeup/LOS
2021. 7. 20. 15:35
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- CSS Injection
- SQL Injection
- dreamhack web-alasql
- DreamHack
- Windows Fundamentals
- blind injection
- xxe injection
- 드림핵 Relative Path Overwrite
- wargame
- htb Windows Fundametals
- 드림핵
- alasql
- hack the box
- dreamhack CSS Injection
- 해커팩토리
- dreamhack Relative Path Overwrite
- dreamhack padding oracle
- csp
- csp bypass
- 웹해킹
- htb
- WebHacking
- webhacking.kr
- hackerfactory
- php LFI
- dreamhack DOM XSS
- LFI vulnerability
- 드림핵 DOM XSS
- 드림핵 padding oracle
- Lord of SQL injection
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함