https://ulisesgascon.com
Vulnerabilities are flaws in a computer system that weaken the overall security of the system.
― Wikipedia
const query = `SELECT * FROM users WHERE name = ${data.name}';`
const express = require('express')
const bodyParser = require('body-parser')
const app = express()
const port = 3000
app.post('/', bodyParser.urlencoded({
extended: true, limit: 100000000
}), (req, res) => {
res.send("Hello");
});
app.listen(port, () => {
console.log(`Example app listening on port ${port}`)
})
const Query = `SELECT * FROM users WHERE name = ${data.name}';`
const express = require('express')
const bodyParser = require('body-parser')
const app = express()
const port = 3000
app.post('/', bodyParser.urlencoded({
extended: true, limit: 100000000
}), (req, res) => {
res.send("Hello");
});
app.listen(port, () => {
console.log(`Example app listening on port ${port}`)
})
❌ Developer: CWE-89 'SQL Injection'
❌ Express fault: CVE-2024-45590
Impact
Patches
body-parser <1.20.3
is vulnerable to denial of service when url encoding is enabled. a malicious actor using a specially crafted payload could flood the server with a large number of requests, resulting in denial of service.
this issue is patched in 1.20.3
Severity
High 7.5/10
🛡️ A threat model is a structured approach to identifying, understanding, and mitigating security risks in a system.
Key Components
Sounds familiar?
Image from NCSC
Prototype Pollution Attacks 🧬
Lack of Default Security Features 🛑
Malicious Third-Party Packages 📦
Large Files Overloading Resources ⚠️
Dreams are extremely important. You can't do it unless you imagine it.
- George Lucas