티스토리 뷰
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' 카테고리의 다른 글
[Lord of SQL injection] dark_eyes (0) | 2021.07.26 |
---|---|
[Lord of SQL injection] iron_golem (0) | 2021.07.23 |
[Lord of SQL injection] xavis (0) | 2021.07.20 |
[Lord of SQL injection] nightmare (0) | 2021.07.19 |
[Lord of SQL injection] zombie_assassin (0) | 2021.07.19 |
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- CSS Injection
- 드림핵 Relative Path Overwrite
- csp
- Windows Fundamentals
- htb Windows Fundametals
- xxe injection
- dreamhack DOM XSS
- webhacking.kr
- php LFI
- csp bypass
- 해커팩토리
- hackerfactory
- blind injection
- LFI vulnerability
- wargame
- DreamHack
- 드림핵 DOM XSS
- dreamhack web-alasql
- WebHacking
- dreamhack padding oracle
- SQL Injection
- 드림핵 padding oracle
- dreamhack CSS Injection
- htb
- alasql
- hack the box
- dreamhack Relative Path Overwrite
- 드림핵
- 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 |
글 보관함