![](http://i1.daumcdn.net/thumb/C148x148/?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
- 드림핵
- csp bypass
- htb Windows Fundametals
- blind injection
- hackerfactory
- alasql
- dreamhack DOM XSS
- dreamhack CSS Injection
- hack the box
- 웹해킹
- php LFI
- xxe injection
- wargame
- dreamhack Relative Path Overwrite
- WebHacking
- LFI vulnerability
- SQL Injection
- 해커팩토리
- dreamhack web-alasql
- htb
- Lord of SQL injection
- 드림핵 DOM XSS
- dreamhack padding oracle
- Windows Fundamentals
- csp
- CSS Injection
- DreamHack
- webhacking.kr
- 드림핵 padding oracle
- 드림핵 Relative Path Overwrite
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
글 보관함