Skip to content

CCMD CHAIN BUG FIX

Choose a tag to compare

@iamdecatalyst iamdecatalyst released this 20 Nov 07:42

CCMD v1.1.6 Release Notes

Release Date: November 20, 2025
Type: Bug Fix Release


Screenshot_1296 Screenshot_1297

Summary

This release fixes critical bugs in argument passing and command chaining security that affected password-protected commands.


Bug Fixes

1. Argument Passing Bug (Critical)

Issue: Commands with placeholders only received the first argument, ignoring the rest.

Example:

# Before: sudo apt update → Only "apt" was passed, "update" lost
# Result: sudo apt (missing update argument)

# After: sudo apt update → All arguments passed correctly
# Result: sudo apt update

Files Changed: ccmd/core/parser.py:148

2. Command Chaining Password Bypass (Security)

Issue: Password-protected commands in chains bypassed authentication.

Example:

# Chain with sudo: go home >>> sudo apt update >>> echo done
# Before: sudo executed WITHOUT asking for CCMD password
# After: Properly asks for CCMD master password

Files Changed: ccmd/core/executor.py:292


Technical Details

Parser Fix

# Before (only first arg)
parameters[param_name] = args[0]

# After (all args)
parameters[param_name] = ' '.join(args)

Executor Fix

# Before (bypassed security)
return self.execute(formatted_action, ...)

# After (proper security checks)
return self.execute_with_security(formatted_action, command_def=cmd_def, ...)

Upgrade Instructions

From PyPI

pip install --upgrade ccmd

From Source

git pull origin ccmd
python3 run.py --install
source ~/.bashrc

Verification

After upgrading, verify the fixes:

# Check version
ccmd version

# Test argument passing (should run full update)
sudo apt update

# Test chaining with password-protected command
# Should ask for CCMD password before executing sudo

Breaking Changes

None. This is a backward-compatible bug fix release.


Credits

  • Developer: De Catalyst (@Wisyle)
  • License: MIT

Links