last30days-skill
- Type
- MCP server
- Scanned
- Nov 17, 2026
- Version
- 488e50d9ea1f
- Files read
- 226
This AI assistant add-on researches recent discussions, news, prediction markets, patents, and job postings across Reddit, X, YouTube, Hacker News, GitHub, and the web. Its biggest risks are that job-page lookups can connect to services on your computer or local network, untrusted search results can slip unsafe links into HTML reports or poorly quoted terminal commands, and the Claude Desktop setup asks for an Apify API key that is actually sent to ScrapeCreators.
What it can reach
- Network
- Sends search queries to public sites and search engines by default (including Reddit, Hacker News, Polymarket, GitHub, Wikidata, USPTO, DuckDuckGo, Startpage, and company job pages), plus optional AI, social, and scraping APIs, webhooks, and HTML report hosting when configured.
- Files
- Reads settings from ~/.config/last30days/.env (and .claude/last30days.env if trusted), saves caches, extracted scripts, databases, and reports under ~/.config/last30days/, ~/.local/share/last30days/, and ~/Documents/Last30Days/, and scans user-selected local folders for .md, .txt, and .pdf files.
- Secrets
- Reads API keys and login tokens from environment variables, .env files, macOS Keychain, the pass password manager, GitHub CLI, Grok, and Bright Data configs, and writes saved keys to ~/.config/last30days/.env.
- Browser
- With setup permission, reads X, Reddit, and Truth Social login cookies from local Chrome/Chromium, Firefox, and Safari profiles or local browser debugging ports, and can launch your default browser or a temporary Chrome login window.
- Shell commands
- Grants the host AI agent terminal access and runs local tools including Python, Node.js, yt-dlp, ffmpeg, pdftotext, openssl, GitHub CLI, Homebrew and npx during setup, optional SSH for YouTube lookups, and optional scraper and password CLIs.
- System
- Copies setup login codes to the macOS clipboard and manages background child processes.
Findings
-
MediumCareers-page discovery can fetch or follow redirects to local and private network addresses (SSRF)
skills/last30days/scripts/lib/jobs.py:1604
When researching any company-shaped topic, the jobs lane automatically fetches guessed company domains, Wikidata P856 website claims, linked careers pages, and URLs returned by web search (_search_for_careers_url). Neither _search_for_careers_url nor _careers_fetch validates that URLs use HTTP(S) and resolve to public IP addresses, and http.get_text is called without the redirect_guard used elsewhere in the codebase (while urllib's default opener also keeps FileHandler and FTPHandler enabled). A malicious web-search result, edited Wikidata entry, or HTTP redirect from an external domain can make the user's machine send GET requests to localhost, RFC 1918 LAN hosts, or cloud metadata endpoints (169.254.169.254).
Fix: Restrict careers-page URLs to http/https, block loopback, link-local, and private IP ranges before connecting and across every redirect via redirect_guard, and remove FileHandler and FTPHandler from the shared urllib opener.
-
MediumScraped job-posting URLs and titles bypass link-scheme and sentinel sanitization
skills/last30days/scripts/lib/render.py:2423
_render_hiring_signals() (and _render_freshness_verdicts()) builds Markdown links directly from scraped fields without calling _markdown_url_link() or _safe_title(). Because render_for_html() embeds _render_hiring_signals() output into HTML briefs and html_render.py relies on _markdown_url_link() to block javascript: URLs, a malicious careers page (such as JSON-LD JobPosting data) can inject clickable javascript: links into local or published HTML reports, or use --> and code fences to break out of the EVIDENCE FOR SYNTHESIS comment block in compact output.
Fix: Format titles, departments, and locations with _safe_title() and render all URLs in _render_hiring_signals() and _render_freshness_verdicts() through _markdown_url_link().
-
LowClaude Desktop MCP manifest solicits APIFY_API_TOKEN for Apify but sends it to ScrapeCreators
The Claude Desktop .mcpb manifest prompts users for APIFY_API_TOKEN and states that it powers TikTok and Instagram Reels search via Apify actors. However, there is no Apify integration in the engine: when SCRAPECREATORS_API_KEY is unset, get_tiktok_token() in skills/last30days/scripts/lib/env.py returns APIFY_API_TOKEN and sends the user's Apify secret in x-api-key headers to https://api.scrapecreators.com, an unrelated third-party service (a legacy fallback noted only in SKILL.md, which Claude Desktop extension users never see).
Fix: Remove apify_api_token from mcp/manifest.json and stop falling back from SCRAPECREATORS_API_KEY to APIFY_API_TOKEN in skills/last30days/scripts/lib/env.py so credentials are never sent across vendors.
-
LowThrowaway Chrome login helper uses a predictable /tmp profile path and unauthenticated local CDP port
skills/last30days/scripts/box_chrome_login.py:194
On Linux and Mac mini hosts, box_chrome_login.py --exec (and its printed shell recipe) creates /tmp/last30days-x-chrome with os.makedirs(..., exist_ok=True) without setting 0700 permissions or checking ownership/symlinks, ignores OSError on creation, and launches Chrome with SAND_CHROME_REMOTE_DEBUG_PORT=18800 while the user signs into x.com. On a multi-user machine or where another unprivileged local process is running, an attacker can pre-create /tmp/last30days-x-chrome or connect to the unauthenticated DevTools Protocol listener on 127.0.0.1:18800 to read the user's live X session cookies.
Fix: Create the temporary Chrome profile inside a 0700 user-owned directory (such as ~/.cache/last30days or tempfile.mkdtemp with mode 0700), verify directory ownership and non-symlink status before launching, and warn users that CDP port 18800 is accessible to any local process while Chrome remains open.
-
LowmacOS Chromium cookie decryption passes the AES key in openssl command-line arguments
skills/last30days/scripts/lib/chrome_cookies.py:133
When browser cookie access is opted into on macOS, _decrypt_v10_value spawns openssl enc with -K <hex_key> for each encrypted Chromium cookie. Passing the derived Safe Storage AES key in argv exposes it to local process-auditing logs and same-UID process inspection.
Fix: Decrypt Chromium v10 cookies in-process (for example via macOS CommonCrypto CCCrypt using Python's stdlib ctypes) instead of passing -K hex_key on the openssl command line.
-
LowSearch-derived URLs and company names interpolated into shell commands without safe quoting
skills/last30days/references/research-runbook.md:636
During pre-research, the agent gathers company names and job-board URLs from public web search results and is instructed to append them to the shell command as --company="{Name}:{site}" and unquoted --jobs-board={URL} (and similarly passes double-quoted "${TOPIC}" in save-html-brief.md and "${LIBRARY_QUERY}" in library-queue.md). Unlike comparison.md, which isolates untrusted values in single-quoted heredocs, an unquoted URL containing & or shell metacharacters or a crafted company name containing $(...) from a prompt-injected search result will be executed by the shell when the agent follows the template.
Fix: Load all search-resolved targeting values, URLs, and topic strings via single-quoted heredocs into shell arrays and pass them as double-quoted variable expansions, matching the pattern in comparison.md.
-
LowLive X login profile stored in predictable /tmp directory with unauthenticated local debugging port
skills/last30days/references/setup-wizard.md:70
On Linux and Mac mini hosts, the X setup and repair instructions create a fixed /tmp/last30days-x-chrome directory with mkdir -p and launch Chrome with a local DevTools Protocol listener on 127.0.0.1:18800 that stays open for live cookie reads (and research-runbook.md and save-html-brief.md likewise write to predictable /tmp paths without mktemp). On a shared machine, another local user or unprivileged local process can pre-create the /tmp directory or query port 18800 to steal the user's X session cookies.
Fix: Store the Chrome profile in a 0700 directory under ~/.config/last30days/ or mktemp -d, use mktemp for all temporary files in skill runbooks, and warn users that any local process can read cookies from an open CDP port.
-
LowUnchecked Oracle job-board API host in careers-page HTML allows cross-host or internal HTTPS requests
skills/last30days/scripts/lib/job_boards/detect.py:90
When inspecting a fetched careers page, _oracle() extracts any hostname from a data-apibaseurl attribute without checking that it matches *.fa.*.oraclecloud.com, belongs to the same site as the careers page, or resolves to a public IP address (unlike _phenom() and sitemap.py). A crafted careers page can cause oracle.read_board() to send HTTPS GET requests on port 443 to localhost, internal corporate hosts, or unrelated third-party servers.
Fix: Require api_host in _oracle() to match _ORACLE_HOST or satisfy _same_site(api_host, host) and resolve exclusively to global IP addresses.
-
LowDevice-flow verification URI opened without scheme or domain validation
skills/last30days/scripts/lib/setup_wizard.py:1466
During ScrapeCreators GitHub signup, _start_device_flow() validates user_code with a strict regex before displaying it, but passes verification_uri from the remote API response directly to webbrowser.open(). If the remote endpoint returns a non-HTTPS URI (such as file:// or a custom OS protocol handler) or a phishing URL, the OS will launch that handler or page while the terminal tells the user it opened GitHub.
Fix: Verify that verification_uri parses as an https:// URL on github.com (for example https://github.com/login/device) before calling webbrowser.open().
-
LowVendored runtime X client excluded from install-time security scans
skills/last30days/.skillignore:14
Both .skillignore files exclude scripts/lib/vendor/ from Hermes install-time security scans while still shipping and executing that code at runtime with the user's X session cookies (AUTH_TOKEN and CT0). Excluding active runtime code that handles authentication tokens creates a blind spot for automated supply-chain and install-time review.
Fix: Remove scripts/lib/vendor/ from .skillignore and skills/last30days/.skillignore so install-time scanners inspect all code that runs at runtime.
