docs: qualify redirect dependency patch and residual audit scope
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
# Redirect header dependency patch
|
||||
|
||||
Baseline A3 `a1149f0d`, isolated codex/follow-redirects-patch, E:/Storage/Projects/Active/temp docs/jobjakt-local-build/next-security-patch. Source `d60a333`.
|
||||
|
||||
Locked follow-redirects1.16.1 matches [GHSA-mrwp-f3q8-3g9p](https://github.com/advisories/GHSA-mrwp-f3q8-3g9p). The reviewed advisory describes custom-header leakage when the caller supplies sensitiveHeaders from another JavaScript realm; it names1.16.2 as patched. It explicitly does not establish an Axios1.20.0 exploit because Axios normalises this option. Do not claim a demonstrated Jobjakt/Axios exploit or production credential disclosure from this dependency finding.
|
||||
|
||||
Official registry latest1.16.3 satisfies Axios's existing^1.16.0 range, requires Node>=4 and has no install hook. The lock change affects exactly one package entry (1.16.1→1.16.3 and its resolved URL/integrity), no unrelated dependency updates/additions/removals or new override. Package.json only adds the permanent `test:redirect-security` command; no dependency declarations change.
|
||||
|
||||
## Reproduction and verification
|
||||
|
||||
- Original installed1.16.1: same-realm control passed, cross-realm case FAILED and forwarded the synthetic custom key. Two ephemeral loopback HTTP servers only; built-in Authorization/Cookie and harmless-header assertions retained. No real credentials, internet target or production service.
|
||||
- Ordinary npm install unexpectedly left installed1.16.1 despite lock1.16.3; a second test still FAILED. This result is retained and is not patched-version evidence. A fresh isolated `npm ci --ignore-scripts` then installed verified1.16.3. No allowScripts policy changed or hooks approved. The package is pure JavaScript; other installation environments remain unqualified.
|
||||
- PASSED: both same/cross-realm tests on verified1.16.3, including `npm run test:redirect-security`; each proves custom/auth/cookie stripping with unrelated header retained. The repeated command overlaps the two cases, not four tests. Tests remain outside JSDOM intentionally and are explicitly runnable via npm.
|
||||
- PASSED: ordinary Next16.4.6 compile/TypeScript/static export after fresh locked install, scoped test lint and source diff check. Initial CommonJS test lint failed under existing no-require-imports; converted to ES modules without a suppression/config change. Earlier build after ordinary install is not used to qualify installed1.16.3.
|
||||
- Full fresh npm audit FAILED exit1:49 findings,7 moderate/42 high/0 critical; neither next nor follow-redirects appears. Prior full audit50 is historical and separately retained. `npm audit --omit=dev --package-lock-only` PASSED exit0 with zero returned production-tree findings. Omission of dev dependencies is a separate scope, not suppression or whole supply-chain clearance.
|
||||
- NOT RUN: full frontend Jest rerun (Node-only transitive patch and explicit regression), backend, hosted CI, browser/provider/model/native-device/AT, real-service exploit, integrated security/recovery/release. Previous A3 browser evidence is source-bound and not newly executed here. Canonical Career Profile, revisions, tenant/session/permission enforcement, routes, UI/document language and PDF rendering have no source changes.
|
||||
|
||||
## Evidence and continuation
|
||||
|
||||
[Receipts](evidence/SOURCE_RECEIPTS.json) bind committed package/lock/test and UTF8/LF-readable artifacts to exact native gzip hashes; native Windows UTF16 logs remain recoverable. Failed tests/setup/install mismatch are retained alongside final results. Publish/ref-verify this isolated branch before non-production A3 integration; rollback is reverting only this patch and locked reinstall, which restores the known affected dependency and is not a security-qualified release.
|
||||
|
||||
Remaining49 development-tool findings require compatible triage; do not apply suggested major downgrade fixes blindly. Formal independent integrated security and release gates remain open. No orchestrator, main merge or deployment.
|
||||
@@ -0,0 +1,102 @@
|
||||
{
|
||||
"baseline": "a1149f0d6cdfef32f7cf8bdf04f67a3385f3ef85",
|
||||
"sourceCommit": "d60a333",
|
||||
"sourceSha256Lf": {
|
||||
"job-tracker-ui/package.json": "8b31e44c10b77b6d1e007af04c757c0577f12972ff3f6c7079bbc4c446a0d415",
|
||||
"job-tracker-ui/package-lock.json": "ac90fbdc79e2e0f23d54748814b41a03f5dcaf8fd27291b3dcb73b2603a83e72",
|
||||
"job-tracker-ui/test/follow-redirects-security.test.mjs": "f33363739c99fb7006293ca2ae19fa506aeb08dcbc320f536c0fc669aef92189"
|
||||
},
|
||||
"nativeReceipts": [
|
||||
{
|
||||
"path": "follow-redirects-registry.json",
|
||||
"lfSha256": "3d9dd3256280469bae9781fc2cf3fdf932d9ff7f2b8c53898af0f9d9c6c41b3e",
|
||||
"rawSha256": "9257982f28c6d55b40ddd6208597e05e263a538997566a1c05b8985e4d81f050",
|
||||
"gzipSha256": "5f99cc8d47e17c623e2b04facda9b4fd0a3e6cdc925f789032b6bc395294a378",
|
||||
"nativeEncoding": "utf-16"
|
||||
},
|
||||
{
|
||||
"path": "follow-redirects-lock.txt",
|
||||
"lfSha256": "7d0e66bc51364e81a602cab4493c2ad32b8e4b125c0df727399601cb8f1c9793",
|
||||
"rawSha256": "634652dc869bd7f757f7279b4bd91a57fd6a8e8ed92beebcba71905f3aca2852",
|
||||
"gzipSha256": "a1c8a3e00c2a1f522f6f5bbe36934bf40ee65541417bbe9207868e5d84bdb155",
|
||||
"nativeEncoding": "utf-16"
|
||||
},
|
||||
{
|
||||
"path": "follow-redirects-install.txt",
|
||||
"lfSha256": "191ef5e32d3a79f662dcc90257c52efc410989642d5d669acbd1c55b471c2bd7",
|
||||
"rawSha256": "194e0969886c36eb30cb7ae96d766ae285e752879ade5e6d746ae95a6fbc4e61",
|
||||
"gzipSha256": "5466c0daa828b743d89bbf5e72084f8e45f973046e69a8309ac5a6aa0967551f",
|
||||
"nativeEncoding": "utf-16"
|
||||
},
|
||||
{
|
||||
"path": "follow-redirects-ci.txt",
|
||||
"lfSha256": "63fb535d7ca7453b7003cb2ef2d254326e1ada716cecce34edf71c2af44e4bf0",
|
||||
"rawSha256": "a8cf1fbc4c742b349c93389582732a68fdbf69edde639dfe4d93940ed219c138",
|
||||
"gzipSha256": "8981b5576c06532ac58c5d300fb0c42682c663549386c5804a1db23fa046ab04",
|
||||
"nativeEncoding": "utf-16"
|
||||
},
|
||||
{
|
||||
"path": "follow-redirects-red.txt",
|
||||
"lfSha256": "96fde0e478c4fca61a9eb6be81d321352c767b9594e171671f8425851880b4c3",
|
||||
"rawSha256": "bf7f9911e3a070c4a69767bb14b4c2f8863855bc0415e02bde0ea081108bfdd6",
|
||||
"gzipSha256": "c95d21895c27d9816afb4a8f3664b20c9dc802f9364f1ca6d4a151647206211e",
|
||||
"nativeEncoding": "utf-16"
|
||||
},
|
||||
{
|
||||
"path": "follow-redirects-green.txt",
|
||||
"lfSha256": "8db9b6ccfa357290489bc1558fb84992a30358c085861734b0a719579096acbd",
|
||||
"rawSha256": "5901db728d7a9835585ff01cf35f97c328c18b081782b1ac9055b555ea5950ea",
|
||||
"gzipSha256": "1f6b023aa68c56b5bd81e851937f1d97053c0d06871ad4a0066107f593bc467d",
|
||||
"nativeEncoding": "utf-16"
|
||||
},
|
||||
{
|
||||
"path": "follow-redirects-final.txt",
|
||||
"lfSha256": "450d571b74a8a2ef52c48cc4f9eb0b1889d78529d8b710bb31c8fd1a07df78e0",
|
||||
"rawSha256": "fcb0d1f10c6fef4ad51e6e55c96596508ec31128541adb1e28defc55de9fd4c9",
|
||||
"gzipSha256": "7b3394af0f599762e6dac9e8b05b216ef56739ebe8a3e628718a1754455b2298",
|
||||
"nativeEncoding": "utf-16"
|
||||
},
|
||||
{
|
||||
"path": "follow-redirects-npm-test.txt",
|
||||
"lfSha256": "9d97ed5a80937a0e62b42f5b33942e66b6219d25d9458603a77d1562f80b12ad",
|
||||
"rawSha256": "615c81ad366d5edcc06102220a58d49c92e13288f45bd7eca78f00b8719b6626",
|
||||
"gzipSha256": "177a3b3f14aabc9ad89eddaf244039ee9577a6fcf95a1292440813479135c6bb",
|
||||
"nativeEncoding": "utf-16"
|
||||
},
|
||||
{
|
||||
"path": "follow-redirects-lint.txt",
|
||||
"lfSha256": "238b7fd677c10e300456ebe05b641493c2742be074b854d26c939d1bfb9f2a9f",
|
||||
"rawSha256": "cf8be1ae66675fad960d46e5a8e22a957b7efdb339cbd44342013843b5b90abc",
|
||||
"gzipSha256": "bc72301f8ddadbbd6335b42f4629e64b79b18c089699d57635a47f9c73c9eb81",
|
||||
"nativeEncoding": "utf-16"
|
||||
},
|
||||
{
|
||||
"path": "follow-redirects-lint-final.txt",
|
||||
"lfSha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
||||
"rawSha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
||||
"gzipSha256": "46b50c321b39e89a491b6727a01628c34245605a30beb3e7414c5e01cff90e6e",
|
||||
"nativeEncoding": "utf-8-sig"
|
||||
},
|
||||
{
|
||||
"path": "follow-redirects-audit-final.json",
|
||||
"lfSha256": "3a0a9216e78c397edbf13fefab34ddf4a0699c5a5216ec7f9c4f03844cc00ea7",
|
||||
"rawSha256": "f6f846f07055a9e11122890d4ae058cc4f4df5da47d8ed4ea8470b76c9797cfc",
|
||||
"gzipSha256": "782e4022836b1e1b15a299cc309f3b2cd11cf5005766d0dbbdf2db77eb347774",
|
||||
"nativeEncoding": "utf-16"
|
||||
},
|
||||
{
|
||||
"path": "follow-redirects-production-audit.json",
|
||||
"lfSha256": "829f64097662d170832a64a3561fb0003dc1a256c786183a62c628a5eca5ae87",
|
||||
"rawSha256": "e94fb9832f8d478495dcb94ef6fa199aa8f2ad732e71dbfdd92189c9bbd0c0fb",
|
||||
"gzipSha256": "bc408ecce14c68ac81b8aeadc46a234a4ca28a080d3f0b6e1d1710bf862729ea",
|
||||
"nativeEncoding": "utf-16"
|
||||
},
|
||||
{
|
||||
"path": "follow-redirects-build-final.txt",
|
||||
"lfSha256": "a8770abaa8d8f214b0d79de16e8d298bc2eb68cf7e1c6c396f66806017a563e4",
|
||||
"rawSha256": "e504a97ac00fa48857cb5f72e74c55e8999a78a221bb846c10ca29e395c4aea5",
|
||||
"gzipSha256": "9acc0cd1a8fa8051d80ad20a79f7554ba9bcb01d09d80dc1bc800462dfba22c2",
|
||||
"nativeEncoding": "utf-16"
|
||||
}
|
||||
]
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
Binary file not shown.
@@ -0,0 +1,23 @@
|
||||
|
||||
> job-tracker-ui@0.1.0 build
|
||||
> node --max-old-space-size=4096 ./node_modules/next/dist/bin/next build
|
||||
|
||||
▲ Next.js 16.4.6 (Turbopack)
|
||||
✓ Running next.config.js took 45ms
|
||||
|
||||
Creating an optimized production build ...
|
||||
✓ Compiled successfully in 531ms
|
||||
Running TypeScript ...
|
||||
Finished TypeScript in 9.7s ...
|
||||
Collecting page data using 4 workers ...
|
||||
Generating static pages using 4 workers (0/3) ...
|
||||
✓ Generating static pages using 4 workers (3/3) in 2.1s
|
||||
Finalizing page optimization ...
|
||||
|
||||
Route (app)
|
||||
┌ ○ /
|
||||
└ ○ /_not-found
|
||||
|
||||
|
||||
○ (Static) prerendered as static content
|
||||
|
||||
Binary file not shown.
@@ -0,0 +1,31 @@
|
||||
node.exe : npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check
|
||||
out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more
|
||||
comprehensive and powerful.
|
||||
At line:1 char:1
|
||||
+ & "C:\Program Files\nodejs/node.exe" "C:\Program Files\nodejs/node_mo ...
|
||||
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
+ CategoryInfo : NotSpecified: (npm warn deprec...e and powerful.:String) [], RemoteException
|
||||
+ FullyQualifiedErrorId : NativeCommandError
|
||||
|
||||
npm warn deprecated glob@7.2.3: Old versions of glob are not supported, and contain widely publicized security
|
||||
vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be
|
||||
purchased (at exorbitant rates) by contacting i@izs.me
|
||||
npm warn deprecated whatwg-encoding@3.1.1: Use @exodus/bytes instead for a more spec-conformant and faster
|
||||
implementation
|
||||
npm warn deprecated glob@10.5.0: Old versions of glob are not supported, and contain widely publicized security
|
||||
vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be
|
||||
purchased (at exorbitant rates) by contacting i@izs.me
|
||||
npm warn deprecated eslint@9.39.5: This version is no longer supported. Please see https://eslint.org/version-support
|
||||
for other options.
|
||||
|
||||
added 825 packages, and audited 826 packages in 1m
|
||||
|
||||
49 vulnerabilities (7 moderate, 42 high)
|
||||
|
||||
To address issues that do not require attention, run:
|
||||
npm audit fix
|
||||
|
||||
To address all issues (including breaking changes), run:
|
||||
npm audit fix --force
|
||||
|
||||
Run `npm audit` for details.
|
||||
Binary file not shown.
@@ -0,0 +1,10 @@
|
||||
✔ cross-origin redirect strips synthetic custom credentials (same realm) (62.7169ms)
|
||||
✔ cross-origin redirect strips synthetic custom credentials (cross realm) (9.0835ms)
|
||||
ℹ tests 2
|
||||
ℹ suites 0
|
||||
ℹ pass 2
|
||||
ℹ fail 0
|
||||
ℹ cancelled 0
|
||||
ℹ skipped 0
|
||||
ℹ todo 0
|
||||
ℹ duration_ms 209.6076
|
||||
Binary file not shown.
@@ -0,0 +1,32 @@
|
||||
✔ cross-origin redirect strips synthetic custom credentials (same realm) (55.4976ms)
|
||||
✖ cross-origin redirect strips synthetic custom credentials (cross realm) (13.2845ms)
|
||||
ℹ tests 2
|
||||
ℹ suites 0
|
||||
ℹ pass 1
|
||||
ℹ fail 1
|
||||
ℹ cancelled 0
|
||||
ℹ skipped 0
|
||||
ℹ todo 0
|
||||
ℹ duration_ms 193.9889
|
||||
|
||||
✖ failing tests:
|
||||
|
||||
test at test\follow-redirects-security.test.cjs:9:3
|
||||
✖ cross-origin redirect strips synthetic custom credentials (cross realm) (13.2845ms)
|
||||
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
|
||||
+ actual - expected
|
||||
|
||||
+ 'synthetic-only-key'
|
||||
- undefined
|
||||
|
||||
at TestContext.<anonymous> (E:\Storage\Projects\Active\temp docs\jobjakt-local-build\next-security-patch\job-tracker-ui\test\follow-redirects-security.test.cjs:36:14)
|
||||
at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
|
||||
at async Test.run (node:internal/test_runner/test:1389:7)
|
||||
at async Test.processPendingSubtests (node:internal/test_runner/test:960:7) {
|
||||
generatedMessage: true,
|
||||
code: 'ERR_ASSERTION',
|
||||
actual: 'synthetic-only-key',
|
||||
expected: undefined,
|
||||
operator: 'strictEqual',
|
||||
diff: 'simple'
|
||||
}
|
||||
Binary file not shown.
@@ -0,0 +1,12 @@
|
||||
|
||||
up to date, audited 826 packages in 5s
|
||||
|
||||
50 vulnerabilities (7 moderate, 43 high)
|
||||
|
||||
To address issues that do not require attention, run:
|
||||
npm audit fix
|
||||
|
||||
To address all issues (including breaking changes), run:
|
||||
npm audit fix --force
|
||||
|
||||
Run `npm audit` for details.
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,11 @@
|
||||
|
||||
E:\Storage\Projects\Active\temp docs\jobjakt-local-build\next-security-patch\job-tracker-ui\test\follow-redirects-security.test.cjs
|
||||
1:14 error A `require()` style import is forbidden @typescript-eslint/no-require-imports
|
||||
2:16 error A `require()` style import is forbidden @typescript-eslint/no-require-imports
|
||||
3:14 error A `require()` style import is forbidden @typescript-eslint/no-require-imports
|
||||
4:18 error A `require()` style import is forbidden @typescript-eslint/no-require-imports
|
||||
5:12 error A `require()` style import is forbidden @typescript-eslint/no-require-imports
|
||||
6:19 error A `require()` style import is forbidden @typescript-eslint/no-require-imports
|
||||
|
||||
✖ 6 problems (6 errors, 0 warnings)
|
||||
|
||||
Binary file not shown.
@@ -0,0 +1,12 @@
|
||||
|
||||
up to date, audited 826 packages in 12s
|
||||
|
||||
49 vulnerabilities (7 moderate, 42 high)
|
||||
|
||||
To address issues that do not require attention, run:
|
||||
npm audit fix
|
||||
|
||||
To address all issues (including breaking changes), run:
|
||||
npm audit fix --force
|
||||
|
||||
Run `npm audit` for details.
|
||||
Binary file not shown.
@@ -0,0 +1,14 @@
|
||||
|
||||
> job-tracker-ui@0.1.0 test:redirect-security
|
||||
> node --test test/follow-redirects-security.test.mjs
|
||||
|
||||
✔ cross-origin redirect strips synthetic custom credentials (same realm) (63.9319ms)
|
||||
✔ cross-origin redirect strips synthetic custom credentials (cross realm) (12.8107ms)
|
||||
ℹ tests 2
|
||||
ℹ suites 0
|
||||
ℹ pass 2
|
||||
ℹ fail 0
|
||||
ℹ cancelled 0
|
||||
ℹ skipped 0
|
||||
ℹ todo 0
|
||||
ℹ duration_ms 212.9772
|
||||
Binary file not shown.
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"auditReportVersion": 2,
|
||||
"vulnerabilities": {},
|
||||
"metadata": {
|
||||
"vulnerabilities": {
|
||||
"info": 0,
|
||||
"low": 0,
|
||||
"moderate": 0,
|
||||
"high": 0,
|
||||
"critical": 0,
|
||||
"total": 0
|
||||
},
|
||||
"dependencies": {
|
||||
"prod": 168,
|
||||
"dev": 680,
|
||||
"optional": 68,
|
||||
"peer": 0,
|
||||
"peerOptional": 0,
|
||||
"total": 886
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
@@ -0,0 +1,32 @@
|
||||
✔ cross-origin redirect strips synthetic custom credentials (same realm) (49.4386ms)
|
||||
✖ cross-origin redirect strips synthetic custom credentials (cross realm) (8.4154ms)
|
||||
ℹ tests 2
|
||||
ℹ suites 0
|
||||
ℹ pass 1
|
||||
ℹ fail 1
|
||||
ℹ cancelled 0
|
||||
ℹ skipped 0
|
||||
ℹ todo 0
|
||||
ℹ duration_ms 157.5345
|
||||
|
||||
✖ failing tests:
|
||||
|
||||
test at test\follow-redirects-security.test.cjs:9:3
|
||||
✖ cross-origin redirect strips synthetic custom credentials (cross realm) (8.4154ms)
|
||||
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
|
||||
+ actual - expected
|
||||
|
||||
+ 'synthetic-only-key'
|
||||
- undefined
|
||||
|
||||
at TestContext.<anonymous> (E:\Storage\Projects\Active\temp docs\jobjakt-local-build\next-security-patch\job-tracker-ui\test\follow-redirects-security.test.cjs:36:14)
|
||||
at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
|
||||
at async Test.run (node:internal/test_runner/test:1389:7)
|
||||
at async Test.processPendingSubtests (node:internal/test_runner/test:960:7) {
|
||||
generatedMessage: true,
|
||||
code: 'ERR_ASSERTION',
|
||||
actual: 'synthetic-only-key',
|
||||
expected: undefined,
|
||||
operator: 'strictEqual',
|
||||
diff: 'simple'
|
||||
}
|
||||
Binary file not shown.
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"version": "1.16.3",
|
||||
"dist.integrity": "sha512-toOSoqN6d51Wjf1aOFJYcoVv1aND9rj/CwjLU0Vz40oDuSpWDayCeKe4JpL5NL0WdFvoOOCI3BRo69HahjbR1A==",
|
||||
"engines": {
|
||||
"node": ">=4.0"
|
||||
},
|
||||
"scripts": {
|
||||
"lint": "eslint *.js test",
|
||||
"test": "nyc mocha"
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Reference in New Issue
Block a user