← back to browse
goat event grade F

welcome

No description

0
views
0
likes
0
installs
analysis — static scan, nothing executed
0 grade F
Dangerous — do not install without a full manual review
Security 84
Privacy 0
Quality 100
Maintenance 92
Community 0
critical Possible credential exfiltration 4×

The file reads session data or secrets and also talks to the network. Verify nothing sensitive is being sent out.

L153const ACCESS_TOKEN = process.env.FB_ACCESS_TOKEN || "";
L169if (ACCESS_TOKEN) {
L172`?width=500&height=500&access_token=${ACCESS_TOKEN}`;
high Touches account session data 4×

References appState / cookies / access tokens. Stealing these is the classic way Messenger bot accounts get hijacked.

L153const ACCESS_TOKEN = process.env.FB_ACCESS_TOKEN || "";
L169if (ACCESS_TOKEN) {
L172`?width=500&height=500&access_token=${ACCESS_TOKEN}`;
medium Deletes files

Calls fs.rm / unlink / rmdir. Check what path it deletes and whether a user can influence it.

L145fs.unlink(welcomeImagePath).catch(() => {});
medium Reads secrets from environment variables

Accesses process.env values that look like tokens, passwords, API keys or database URLs.

L153const ACCESS_TOKEN = process.env.FB_ACCESS_TOKEN || "";
low Filesystem access

Reads or writes files on the machine running the bot.

L7const fs = require("fs-extra");
low Environment variable access

Reads process.env. Fine on its own; worth a look if the values are sent anywhere.

L153const ACCESS_TOKEN = process.env.FB_ACCESS_TOKEN || "";
low Network access

Makes HTTP/WebSocket requests. Check where the data goes.

L9const axios = require("axios");
capabilities — what this file can do, regardless of intent
Network Filesystem Shell Env vars Dynamic code Session data Installs packages Process control
dependencies

axios, canvas, fs-extra

checks
Exports a command/module
Handles errors (try/catch or .catch)
Readable, not minified
Has explanatory comments
No deprecated dependencies
Reasonable size (< 200 KB)
raw source — loaded on demand
Loading source…

View raw file · View analysis as JSON