Fix erlang ssh cve

From XuShuwenn/RedAct · View interactive version

Fix erlang ssh cve is an AI agent skill from the GitHub repository XuShuwenn/RedAct. Investigate and fix Erlang/OTP SSH server vulnerability allowing arbitrary command execution via crafted SSH protocol messages.

How to use this skill

Skill file

Erlang/OTP SSH Server CVE Fix

When to Use

Input

Input

Execution Protocol

Vulnerability

Crafted SSH protocol messages allow:

Fix Requirements

  1. Investigate which SSH message causes the attack
  2. Fix the bug in source code
  3. Server should maintain normal SSH behavior
  4. Block unauthorized message types
  1. Produce an actual source-code patch in the provided Erlang files; do not stop at analysis or a written report

5a. Once the vulnerable path is sufficiently confirmed, pivot immediately from diagnosis to implementation: open the exact target handler/dispatcher, make the .erl edit, read it back, and continue to final verification.

5b. Do not finish with only analysis, a vulnerability report, or patch advice; completion requires an actual source edit in /app/workspace/otp_src_27.3.2, readback of the modified region, and a visible git diff hunk.

  1. Verify the full exploit path from unauthenticated input to command execution before patching
  2. Keep the fix as narrow as the demonstrated vulnerable message/state combination while preserving normal authenticated SSH behavior
  3. Inspect edited Erlang control flow for syntax, clause ordering, fallback behavior, and return-shape consistency before finishing
  4. Do not claim a fix was applied unless you performed an explicit write/edit to a source file in /app/workspace/otp_src_27.3.2 and verified the modified region by reading it back
  5. If the task or system instructions require an exact completion token or action line, treat it as mandatory output correctness and emit it exactly as the last line

Approach

Tips

Final Check

Final Check

Final Check

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.