본문 바로가기 메뉴 바로가기

https://h0pp1.github.io/

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

https://h0pp1.github.io/

검색하기 폼
  • 분류 전체보기 (94)
    • writeup (81)
      • webhacking.kr (8)
      • dreamhack (36)
      • hackerfactory (3)
      • LOS (29)
      • HTB (5)
    • study (11)
      • web (5)
      • pentest (6)
  • 방명록

los red_dragon (1)
[Lord of SQL injection] red_dragon

61번째 글. 1. 코드 분석 id의 길이가 7글자를 넘으면 'too long string'이라는 문자열을 출력하고 쿼리 스트링인 no가 숫자이면 그 숫자를 no 변수에 넣고 숫자가 아니면 1을 넣는다. 그리고 반환되는 아이디에 따라서 'Hello id'를 출력한다.(즉 블라인드 인젝션인 것 같다) 마지막으로 admin의 정확한 no를 입력하면 문제가 풀리게 된다. 2. Exploit ?id=%27||no>%23&no=%0a특정값 이렇게 주게 되면 #은 한 줄 주석이기 때문에 개행 문자를 이용해서 escape할 수 있다. 그리고 비교 연산자를 이용해서 blind injection을 할 수 있다. 나는 100000000부터 1000000000까지의 범위를 잡고 이진 탐색 비스무리(?)하게 코드를 실행했다...

writeup/LOS 2021. 8. 5. 15:53
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • LFI vulnerability
  • Lord of SQL injection
  • webhacking.kr
  • alasql
  • WebHacking
  • blind injection
  • SQL Injection
  • 드림핵 DOM XSS
  • csp
  • hackerfactory
  • hack the box
  • 웹해킹
  • 해커팩토리
  • dreamhack web-alasql
  • CSS Injection
  • 드림핵 padding oracle
  • htb
  • dreamhack DOM XSS
  • 드림핵 Relative Path Overwrite
  • dreamhack Relative Path Overwrite
  • dreamhack padding oracle
  • htb Windows Fundametals
  • php LFI
  • wargame
  • 드림핵
  • dreamhack CSS Injection
  • xxe injection
  • Windows Fundamentals
  • DreamHack
  • csp bypass
more
«   2025/05   »
일 월 화 수 목 금 토
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
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바