ssongk
ssongk
ssongk
전체 방문자
오늘
어제

공지사항

  • resources
  • 분류 전체보기 (626)
    • CTF (24)
    • background (79)
      • fuzzing (5)
      • linux (29)
      • linux kernel (15)
      • windows (2)
      • web assembly (1)
      • embedded (0)
      • web (13)
      • crypto (9)
      • mobile (1)
      • AI (1)
      • etc.. (3)
    • write-up(pwn) (171)
      • dreamhack (102)
      • pwn.college (4)
      • pwnable.xyz (51)
      • pwnable.tw (3)
      • pwnable.kr (5)
      • G04T (6)
    • write-up(rev) (32)
      • dreamhack (24)
      • reversing.kr (8)
    • write-up(web) (195)
      • dreamhack (63)
      • LOS (40)
      • webhacking.kr (69)
      • websec.fr (3)
      • wargame.kr (6)
      • webgoat (1)
      • G04T (7)
      • suninatas (6)
    • write-up(crypto) (19)
      • dreamhack (16)
      • G04T (1)
      • suninatas (2)
    • write-up(forensic) (53)
      • dreamhack (5)
      • ctf-d (47)
      • suninatas (1)
    • write-up(misc) (13)
      • dreamhack (12)
      • suninatas (1)
    • development (31)
      • Linux (14)
      • Java (13)
      • Python (1)
      • C (2)
      • TroubleShooting (1)
    • 자격증 (8)
    • 이산수학 (1)
    • 정보보안 (0)
hELLO · Designed By 정상우.
ssongk

ssongk

[Lord of SQLInjection] cthulhu write-up
write-up(web)/LOS

[Lord of SQLInjection] cthulhu write-up

2022. 11. 4. 12:57

문제 화면 및 소스 코드입니다.

 

무조건 참인 조건 ' or 1=1# 을 넣어주자

권한 부족으로 거부당합니다.

 

문제에서 나온 ModSecurity Core Rule Set v3.1.0을 구글에서 찾아보면

https://github.com/SpiderLabs/owasp-modsecurity-crs/issues/1181

 

Bypass the latest CRS v3.1.0 rules of SQL injection · Issue #1181 · SpiderLabs/owasp-modsecurity-crs

Type of Issue False Negative Description Per #1167, I wanna raise more FNs in this thread. Before getting into other FNs, I want to give out more information to #1167 so as to help the maintainers ...

github.com

위 사이트에서 페이로드를 제공해줍니다.

해당 페이로드를 사용해주면

문제가 풀립니다!


페이로드를 쪼개서 테스트 해봅시다.

'조건1 or 조건2 or 조건3' 의 형태로 구성되는데 

조건1 부분인 '-1'<@=1의 결과는 null 입니다.

조건2 부분은 1이 나오므로 참(true) 입니다.

조건3 부분은 pw에 들어가는 값이 없으므로 null 입니다.

 

or의 특성 상 true가 1개라도 나오면 true이므로 쿼리의 결과가 참이됩니다.

'write-up(web) > LOS' 카테고리의 다른 글

[Lord of SQLInjection] godzilla write-up  (0) 2022.11.07
[Lord of SQLInjection] death write-up  (0) 2022.11.04
[Lord of SQLInjection] alien write-up  (0) 2022.11.04
[Lord of SQLInjection] zombie write-up  (0) 2022.10.05
[Lord of SQLInjection] ouroboros write-up  (0) 2022.10.02
    'write-up(web)/LOS' 카테고리의 다른 글
    • [Lord of SQLInjection] godzilla write-up
    • [Lord of SQLInjection] death write-up
    • [Lord of SQLInjection] alien write-up
    • [Lord of SQLInjection] zombie write-up
    ssongk
    ssongk
    벌레 사냥꾼이 되고 싶어요

    티스토리툴바