Skip to content

Update cron-manager extension - #24426

Merged
raycastbot merged 9 commits into
raycast:mainfrom
TahaZahit:ext/cron-manager
Feb 9, 2026
Merged

raycastbot merged 9 commits into
raycast:mainfrom
TahaZahit:ext/cron-manager

Conversation

@TahaZahit

@TahaZahit TahaZahit commented Jan 13, 2026 •

Copy link
Copy Markdown
Contributor

Description

Screencast

Checklist

Taha Zahit Hakyemez added 2 commits December 31, 2025 11:40
- assets
- shell injection fix
- feat: remove cron manager UI dummy design file
@raycastbot

ghost commented Jan 13, 2026 •

Copy link
Copy Markdown
Collaborator

Congratulations on your new Raycast extension! 🚀

We're currently experiencing a high volume of incoming requests. As a result, the initial review may take up to 10-15 business days.

Once the PR is approved and merged, the extension will be available on our Store.

@TahaZahit
TahaZahit marked this pull request as ready for review January 13, 2026 08:48
@greptile-apps

ghost commented Jan 13, 2026

Copy link
Copy Markdown
Contributor

Greptile Overview

Greptile Summary

This PR introduces a new Cron Manager extension for Raycast that allows users to create, manage, and monitor cron jobs with a visual interface. The extension provides features like job creation with presets, manual execution, logging, and status management.

Key Changes

  • New Extension: Complete implementation of a cron job manager with UI components for listing, creating, editing, and viewing logs
  • Security Fix Mentioned: The CHANGELOG references fixing a "critical shell injection vulnerability" by switching from exec to spawn with stdin in writeCrontab
  • Core Functionality: Reads and writes to system crontab with custom metadata for tracking Raycast-managed jobs
  • User Interface: Includes forms, action panels, and detail views with keyboard shortcuts

Critical Issues Found

Security Vulnerabilities

  1. Shell Injection in runJob: Despite the security fix in writeCrontab, the runJob function in cron.tsx still uses unsafe exec() with user-provided commands, creating a critical shell injection vulnerability
  2. Metadata Injection: Job names containing pipe characters or newlines can corrupt the metadata format in crontab

Platform Compatibility

  1. Windows Support Claims: The package.json lists Windows as a supported platform, but crontab is Unix/Linux/macOS only and will completely fail on Windows

Code Quality Issues

  1. Race Conditions: saveToSystem() calls are not awaited, potentially causing UI/state inconsistencies if writes fail
  2. ID Collisions: Using Date.now() for IDs can cause collisions with rapid operations
  3. Missing Validation: Form allows empty names and commands without validation
  4. ESLint Config Error: Uses non-existent eslint/config import path

Recommendations

The extension shows good effort with a clean UI and useful features, but the critical security vulnerability in runJob must be fixed before merging. Additionally, the Windows platform support should be removed or properly implemented with Task Scheduler integration.

Confidence Score: 1/5

  • This PR has critical security vulnerabilities and must not be merged without fixes
  • The score of 1 reflects multiple critical issues: (1) a shell injection vulnerability in the runJob function that allows arbitrary command execution, (2) false platform compatibility claims that will cause complete failure on Windows, (3) metadata injection risks, and (4) race conditions in state management. While the CHANGELOG mentions fixing a shell injection issue in writeCrontab, the same vulnerability still exists in the runJob function using exec().
  • Pay critical attention to src/cron.tsx (shell injection vulnerability), package.json (platform compatibility), and src/utils/crontabSync.ts (metadata injection risks)

Important Files Changed

File Analysis

Filename Score Overview
extensions/cron-manager/package.json 2/5 Configuration file with critical platform compatibility issue - lists Windows support but crontab is Unix-only
extensions/cron-manager/src/cron.tsx 1/5 Main command file with critical shell injection vulnerability in runJob function using unsafe exec()
extensions/cron-manager/src/utils/crontabSync.ts 3/5 Crontab read/write logic with metadata injection risks and command parsing issues
extensions/cron-manager/src/components/CronForm.tsx 3/5 Form component with ID collision risk using Date.now() and missing validation for empty fields
extensions/cron-manager/eslint.config.js 2/5 ESLint config with incorrect import path that doesn't exist in ESLint 9

ghost left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

8 files reviewed, 8 comments

Edit Code Review Agent Settings | Greptile

Comment thread extensions/cron-manager/src/cron.tsx Resolved
Comment thread extensions/cron-manager/package.json Resolved
Comment thread extensions/cron-manager/README.md Resolved
Comment thread extensions/cron-manager/src/cron.tsx Resolved
@greptile-apps

ghost commented Jan 13, 2026

Copy link
Copy Markdown
Contributor
Additional Comments (1)

extensions/cron-manager/eslint.config.js
Incorrect ESLint import path: eslint/config doesn't exist in ESLint 9. The defineConfig function is not exported from this path. For ESLint 9 flat config, you should export the array directly without wrapping it in defineConfig.

const raycastConfig = require("@raycast/eslint-config");

Then update line 4 to just export the array:

module.exports = [
  ...raycastConfig,
];

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Taha Zahit Hakyemez and others added 3 commits January 13, 2026 11:57
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
- Resolve merge conflicts in src/cron.tsx
- Pull contributions
- Fix security vulnerability, resolve TS errors, and update metadata for release
- Fix ESLint 9 configuration by flattening the config array
- Fix ESLint 9 configuration syntax
@raycastbot

ghost commented Jan 27, 2026

Copy link
Copy Markdown
Collaborator

This pull request has been automatically marked as stale because it did not have any recent activity.

It will be closed if no further activity occurs in the next 7 days to keep our backlog clean 😊

@raycastbot raycastbot added the status: stalled Stalled due inactivity label Jan 27, 2026
@TahaZahit

ghost commented Jan 28, 2026

Copy link
Copy Markdown
Contributor Author

Fixed security vulnerabilities, race conditions, and ESLint 9 config issues. All validation checks are passing locally.

@raycastbot raycastbot removed the status: stalled Stalled due inactivity label Jan 28, 2026

ghost left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, approved 🔥

@raycastbot
raycastbot merged commit ec90607 into raycast:main Feb 9, 2026
@github-actions

ghost commented Feb 9, 2026

Copy link
Copy Markdown
Contributor

@raycastbot

ghost commented Feb 9, 2026

Copy link
Copy Markdown
Collaborator

🎉 🎉 🎉

We've rewarded your Raycast account with some credits. You will soon be able to exchange them for some swag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new extension Label for PRs with new extensions platform: macOS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants