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

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 phantom (1)
[Lord of SQL injection] phantom

64번째 글. 1. 코드 분석 쿼리 스트링을 통해서 joinemail에 값을 전달하면 no가 0이고 내 아이피 주소가 함께 DB에 입력된다. no=1 또는 ip가 내 아이피이면 테이블에 데이터가 출력된다. no=1인 email의 주소를 알게 되면 문제가 풀리게 된다. 2. Exploit 일단 괄호를 필터링하지 않으므로 우리는 원하는 값을 insert 할 수 있다. 또한 이전 문제들과 다르게 DML이 필터링 되지 않기 때문에 서브 쿼리를 통해서 no=1의 email을 가져와서 내 아이피만 넣어주면 쉽게 풀 수 있다. ?joinmail=asd1234'), (2,'내 아이피',(select email from prob_phantom as p where no=1))%23 여기서 주의할 것은 같은 테이블을 참조하..

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

Blog is powered by Tistory / Designed by Tistory

티스토리툴바