|
|
|
|
|
by yairchu
4996 days ago
|
|
Doesn't it cause a "Javascript eval injection" vulnerability? I don't know Javascript so I may be wrong here, but: * Suppose someone uses this library to create a "MariaSQL Explorer App", where you give the app connection credentials and it connects to the database and shows you the data etc. * A malicious attacker tells a user "have a look at my database" and the user goes to the attacker's database. * The attacker's database (or spoof of one) has a column called 'dummy": MALICIOUS_CODE(), "colname'. notice the '"' chars inside column name. * The MALICIOUS_CODE() runs in the user's node.js app. Perhaps it sends the attacker the passwords to other databases from the app's keychain or something.. * Profit |
|
Besides, that's just an example snippet.