{"id":845,"name":"getfbstate","author":"NTKhang","framework":"goat","overall":65,"grade":"C","level":"risky","verdict":"Risky — serious capabilities found, review before installing","scores":{"security":84,"privacy":69,"quality":80,"maintenance":82,"community":0},"counts":{"critical":0,"high":1,"medium":1,"low":1},"alerts":[{"id":"bot-credentials","severity":"high","category":"privacy","title":"Touches account session data","description":"References appState / cookies / access tokens. Stealing these is the classic way Messenger bot accounts get hijacked.","count":22,"locations":[{"line":12,"snippet":"vi: \"Lấy fbstate hiện tại\","},{"line":13,"snippet":"en: \"Get current fbstate\""},{"line":17,"snippet":"en: \"   {pn}: get fbstate (appState)\\n\""},{"line":18,"snippet":"+ \"   {pn} [cookies|cookie|c]: get fbstate with cookies format\\n\""},{"line":19,"snippet":"+ \"   {pn} [string|str|s]: get fbstate with string format\\n\","}]},{"id":"fs-destructive","severity":"medium","category":"security","title":"Deletes files","description":"Calls fs.rm / unlink / rmdir. Check what path it deletes and whether a user can influence it.","count":1,"locations":[{"line":64,"snippet":"}, event.senderID, () => fs.unlinkSync(pathSave));"}]},{"id":"fs-access","severity":"low","category":"security","title":"Filesystem access","description":"Reads or writes files on the machine running the bot.","count":1,"locations":[{"line":1,"snippet":"const fs = require(\"fs-extra\");"}]}],"capabilities":[{"id":"network","label":"Network","active":false},{"id":"filesystem","label":"Filesystem","active":true},{"id":"shell","label":"Shell","active":false},{"id":"env","label":"Env vars","active":false},{"id":"eval","label":"Dynamic code","active":false},{"id":"credentials","label":"Session data","active":true},{"id":"install","label":"Installs packages","active":false},{"id":"process","label":"Process control","active":false}],"checks":[{"label":"Exports a command/module","ok":true},{"label":"Handles errors (try/catch or .catch)","ok":false},{"label":"Readable, not minified","ok":true},{"label":"Has explanatory comments","ok":false},{"label":"No deprecated dependencies","ok":true},{"label":"Reasonable size (< 200 KB)","ok":true}],"dependencies":{"builtin":[],"external":["fs-extra"],"local":[]},"domains":[],"scannedAt":"2026-11-05T13:14:11.522Z"}