ronin-rb / ronin-vulns

Tests URLs for Local File Inclusion (LFI), Remote File Inclusion (RFI), SQL injection (SQLi), and Cross Site Scripting (XSS), Server Side Template Injection (SSTI), and Open Redirects.
https://ronin-rb.dev
GNU Lesser General Public License v3.0
62 stars 16 forks source link

Probably handle when `Ronin::Vulns::RFI.scan` is given a URL with no path extension #62

Closed postmodern closed 11 months ago

postmodern commented 11 months ago

If a URL with no path extension (ex: .php) is given to Ronin::Vulns::RFI.scan then @script_lang and @test_script_url will both be nil, and an empty String will be sent as the payload value, which does nothing. Instead, we should attempt testing every test payload URL in TEST_SCRIPT_URLS. If one of the test script URLs succeeds, then also set @script_lang.

postmodern commented 11 months ago

Fixed in 4b454eb.