CAP-JPN 試験問題 16

下記のコード スニペットに基づくと、「filename」変数は次のどの攻撃に対して脆弱ですか?
import os
filename = input("Enter the file name:")
path = "/var/www/html/files/" + filename
content = ""
with open(path, 'r') as file:
content = file.read()
print("File content:\n", content)
  • CAP-JPN 試験問題 17

    Null バイト インジェクションは、URL エンコードされた Null バイト文字をユーザー提供データに追加することで、Web アプリケーションの健全性チェック フィルターを回避するために使用されるアクティブなエクスプロイト手法です。次のうち、URL エンコードされた Null バイトの表現はどれですか。
  • CAP-JPN 試験問題 18

    依存性混乱攻撃のコンテキストでは、潜在的なプライベート パッケージを特定するために分析されるファイルは次のどれですか。
  • CAP-JPN 試験問題 19

    以下のスクリーンショットでは、攻撃者はどの脆弱性を悪用しようとしていますか?
    POST /dashboard HTTP/1.1
    Host: example.com
    User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) rv:107.0) Gecko/20100101 Firefox/107.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8 Accept-Language: en-GB,en;q=0.5 Accept-Encoding: gzip, deflate Upgrade-Insecure-Requests: 1 Sec-Fetch-Dest: document Sec-Fetch-Mode: navigate Sec-Fetch-Site: none Sec-Fetch-User: ?1 Cookie: JSESSIONID=7576572ce164646de967c759643d53031 Te: trailers Connection: keep-alive Content-Type: application/x-www-form-urlencoded Content-Length: 81 xml_foo=<ENTITY example SYSTEM "file:///etc/passwd">]><foo>&example;</foo>
    <!DOCTYPE foo [<!ENTITY example SYSTEM "file:///etc/passwd">]><foo>&example;</foo>
    <foo>&example;</foo>
    <title>Project Meeting</title>
    <time>1200</time>
    <location>changed example</location>
    </body>
  • CAP-JPN 試験問題 20

    次の Google Dork のうち、victim-app.com のディレクトリ リストを見つけるために使用できるものはどれですか?