Skip to content

Cap terminal CSI cell operations - #1403

Open
acts-1631 wants to merge 1 commit into
mobile-shell:masterfrom
acts-1631:fix-terminal-csi-cell-dos
Open

Cap terminal CSI cell operations#1403
acts-1631 wants to merge 1 commit into
mobile-shell:masterfrom
acts-1631:fix-terminal-csi-cell-dos

Conversation

@acts-1631

Copy link
Copy Markdown

CSI ICH and DCH accept counts up to 65535 and perform one vector operation
per requested cell. A remote program that displays attacker-controlled
terminal content can use repeated CSI sequences to keep mosh-server busy,
despite operations beyond the remaining columns having no visible effect.

Limit both operations to the remaining columns. This preserves rendering while
bounding work by terminal width.

CSI ICH and DCH accept parameters up to 65535, but operations past
the end of a row do not change the rendered terminal. A remote program
that emits repeated sequences can keep mosh-server busy processing
redundant vector changes.

Limit both operations to the number of remaining columns. This
preserves output while bounding work by terminal width.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant