~/talk

Node.js Applicative DoS Through MongoDB Injection

Talkat Node+JS Interactive 2018 · on Thursday, 2018-10-11· at 15:20· West Ballroom B· [security, nodejs]
slides:none on file

Shows a practical exploit: sending a malicious query object that uses MongoDB $where with sleep to make the server execute a millisecond sleep per document, causing every connection in the app’s pool to block. Tests use ApacheBench to run parallel requests against a collection of ~10,000 documents; with the default pool size 5 all legitimate queries stall (measured requests taking minutes). Mongoose offers no automatic protection; recommended fixes are strict input schemas (Joi/celebrate) and rejecting unknown query operators.

AI-written summary · about

  1. 0:00Introduction to injections
  2. 1:52SQL injection fundamentals
  3. 4:45MongoDB architecture
  4. 6:53NoSQL injection techniques
  5. 8:54Denial of service concepts
  6. 11:58Exploiting pool exhaustion
  7. 14:56Demonstrating a MongoDB DoS
  8. 19:57Prevention and mitigation
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.