Skip to main content

Questions tagged [node.js]

Node.js is an event-based, non-blocking, asynchronous I/O framework that uses Google's V8 JavaScript Engine.

1 vote
2 answers
86 views

Does npm (Node.js package manager) provide cryptographic authentication and integrity validation?

Does the npm package manager cryptographically validate its payload's authentication and integrity for all packages after downloading them and before installing them? I see a lot of guides providing ...
Michael Altfield's user avatar
1 vote
0 answers
105 views

How to exploit Object.assign in Express/Mongoose application?

I have a legacy Express/Mongoose application laying around and found a potentially dangerous line of code in it: Object.assign with user input as second argument. I thought it would be a nice exercise ...
cis's user avatar
  • 417
-2 votes
1 answer
181 views

Freaked out because of powers of Node.js

My friend and I are making games on RPG Maker and sharing them together. He also makes plugins from ChatGPT. I asked him for a script for a game crash (horror scene) and they asked "can this ...
Лев Хобот's user avatar
0 votes
1 answer
108 views

How risky is running a random nodejs application?

As a web developer, I frequently create minimal reproductions of whatever issue I'm facing, as a Github repo, and post a link to it in the Stack Overflow question or Github Issue thread that I'm ...
dwjohnston's user avatar
1 vote
1 answer
98 views

Is using req.path as a file path in an Express route vulnerable?

Let's say we have this simple Express application const express = require('express') const app = express(); app.get("/public/*", (req, res) => { res.sendFile(req.path); }); app....
cis's user avatar
  • 417
1 vote
1 answer
184 views

Security considerations when using Apache with SSL enabled and Node.JS without SSL

So I have a peculiar setup to work with. The main server is your standard off-the-mill Apache server with SSL enabled bound to a public domain (NOT localhost!). My Node.JS server runs on localhost:...
bblizzard's user avatar
  • 111
5 votes
1 answer
409 views

How does AWS Lambda support eol node.js versions

AWS Lambda's support for Node.js and Node.js end of life do not coincide, instead AWS Lambda continues to support the runtime for a few months after the official end of life for a specific Node.js ...
ndenarodev's user avatar
7 votes
1 answer
1k views

What was the concern that caused the warning in GitHub Actions documentation about setting NODE_OPTIONS?

In the documentation on GitHub Actions there is a note, Due to security restrictions, GITHUB_ENV cannot be used to set the NODE_OPTIONS environment variable. What exploit were they trying to ...
Evan Carroll's user avatar
  • 3,217
1 vote
1 answer
97 views

NodeJS 23 on AWS Lightsail

I use NodeJS on AWS Lightsail and want to upgrade to version 23. I have been using a version packaged by bitnami that boasts "security by default", e.g. with some ports closed. It supports ...
ginjaemocoes's user avatar
0 votes
0 answers
85 views

benefit to reading sensitive file chunks via a "middleman" shell script?

tldr: is using a script spawned by my main process, which reads only a chunk of a sensitive file then passing the result to my main process - of any benefit? in contrast to loading the file in my ...
nicholaswmin's user avatar
1 vote
1 answer
139 views

How can authenticity be ensured for Node.js packages when using a public registry like npmjs.com?

I was thinking about how to ensure the authenticity of Node.js packages that are installed from a public registry like npmjs.com. The only mechanisms (optionally) in place to my understanding are: ...
Bob Ortiz's user avatar
  • 7,715
0 votes
1 answer
263 views

how to protect a string (secret key) in my env file in node.js project?

I have a node.js project which implement in nest.js framework. there is some apiKey and secretKey in my env file, I want to protect these keys from anyone, even host administrator. so I compile my ...
aref razavi's user avatar
0 votes
1 answer
104 views

Running and unknown nodeJS/react app

I made a mistake - i was reached out for work regarding a project. Accidentally built it and ran it locally and it was obviously a bunch of nonsense code designed to look like a normal react project ...
Cody Popham's user avatar
0 votes
1 answer
300 views

Predicting math.random after math.floor

I know math.random() in javascript can be predicted if you know the exact outputs of it, but if I only know what it gives after doing math.floor(100 / (1.0001 - Math.random())), how would I use this ...
user318151's user avatar
0 votes
1 answer
140 views

relation passphrase and password-based key derivation

I am not totally sure how the following concepts are related, could someone please explain? password-based key derivation passphrase that can be passed to crypto.generateKeyPairSync (in Node.js) ...
yolooow's user avatar
  • 15

15 30 50 per page
1
2 3 4 5
12