telegram-channel-parser
Audited by Socket on Sep 14, 2026
3 alerts found:
Anomalyx3The code appears to implement legitimate Telegram scraping and caching functionality, with no clear malware indicators. The main security concerns are arbitrary code execution from sourcing a tampered .env file, shell injection risk from the eval expression, and possible cache path traversal through insufficiently validated channel input. These are meaningful security risks in environments where configuration or command-line inputs can be influenced by an attacker, but the fragment does not demonstrate intentional malicious behavior.
No evidence of intentional malware, supply-chain sabotage, credential theft, persistence, or unauthorized system access is present. The principal security risk is potential XSS because post.text is rendered with dangerouslySetInnerHTML without visible sanitization. Ensure post.text is sanitized with a trusted HTML sanitizer or render it as escaped text. Validate or restrict mediaUrl origins if privacy and outbound-request controls are required.
The script is a posting-schedule reporting utility with no clear malicious intent. However, it contains a real command-injection vulnerability: unvalidated post date data is embedded in a shell command executed from awk. Treat cached or fetched post data as untrusted and fix the date conversion before use. Review common.sh and fetch_channel_pages separately for additional behavior.