-
Notifications
You must be signed in to change notification settings - Fork 30.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "crypto: add extensions property to X509Certificate"
This reverts commit 7dd4190.
- Loading branch information
1 parent
7dd4190
commit 11d9028
Showing
17 changed files
with
141 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -291,6 +291,8 @@ For information about the governance of the Node.js project, see | |
**Anatoli Papirovski** <<[email protected]>> (he/him) | ||
* [AshCripps](https://github.com/AshCripps) - | ||
**Ash Cripps** <<[email protected]>> | ||
* [atlowChemi](https://github.com/atlowChemi) - | ||
**Chemi Atlow** <<[email protected]>> (he/him) | ||
* [Ayase-252](https://github.com/Ayase-252) - | ||
**Qingyu Deng** <<[email protected]>> | ||
* [bengl](https://github.com/bengl) - | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
import * as common from '../common/index.mjs'; | ||
import * as fixtures from '../common/fixtures.mjs'; | ||
import { EOL } from 'node:os'; | ||
import { strictEqual } from 'node:assert'; | ||
import cp from 'node:child_process'; | ||
|
||
// TODO(LiviaMedeiros): test on different platforms | ||
if (!common.isLinux) | ||
common.skip(); | ||
|
||
const expectedCWD = process.cwd(); | ||
const expectedUID = process.getuid(); | ||
|
||
for (const tamperedCwd of ['', '/tmp', '/not/existing/malicious/path', 42n]) { | ||
Object.prototype.cwd = tamperedCwd; | ||
|
||
cp.exec('pwd', common.mustSucceed((out) => { | ||
strictEqual(`${out}`, `${expectedCWD}${EOL}`); | ||
})); | ||
strictEqual(`${cp.execSync('pwd')}`, `${expectedCWD}${EOL}`); | ||
cp.execFile('pwd', common.mustSucceed((out) => { | ||
strictEqual(`${out}`, `${expectedCWD}${EOL}`); | ||
})); | ||
strictEqual(`${cp.execFileSync('pwd')}`, `${expectedCWD}${EOL}`); | ||
cp.spawn('pwd').stdout.on('data', common.mustCall((out) => { | ||
strictEqual(`${out}`, `${expectedCWD}${EOL}`); | ||
})); | ||
strictEqual(`${cp.spawnSync('pwd').stdout}`, `${expectedCWD}${EOL}`); | ||
|
||
delete Object.prototype.cwd; | ||
} | ||
|
||
for (const tamperedUID of [0, 1, 999, 1000, 0n, 'gwak']) { | ||
Object.prototype.uid = tamperedUID; | ||
|
||
cp.exec('id -u', common.mustSucceed((out) => { | ||
strictEqual(`${out}`, `${expectedUID}${EOL}`); | ||
})); | ||
strictEqual(`${cp.execSync('id -u')}`, `${expectedUID}${EOL}`); | ||
cp.execFile('id', ['-u'], common.mustSucceed((out) => { | ||
strictEqual(`${out}`, `${expectedUID}${EOL}`); | ||
})); | ||
strictEqual(`${cp.execFileSync('id', ['-u'])}`, `${expectedUID}${EOL}`); | ||
cp.spawn('id', ['-u']).stdout.on('data', common.mustCall((out) => { | ||
strictEqual(`${out}`, `${expectedUID}${EOL}`); | ||
})); | ||
strictEqual(`${cp.spawnSync('id', ['-u']).stdout}`, `${expectedUID}${EOL}`); | ||
|
||
delete Object.prototype.uid; | ||
} | ||
|
||
{ | ||
Object.prototype.execPath = '/not/existing/malicious/path'; | ||
|
||
// Does not throw ENOENT | ||
cp.fork(fixtures.path('empty.js')); | ||
|
||
delete Object.prototype.execPath; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters