Bug 540317

Summary: OpenSSH-server banner displayed incorrectly
Product: [Fedora] Fedora Reporter: Konstantin <k.koshelyaev>
Component: opensshAssignee: Jan F. Chadima <jchadima>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: jchadima, k.koshelyaev, mgrepl, tmraz
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-11-23 02:39:27 EST Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Konstantin 2009-11-22 21:17:28 EST
Description of problem:
Backslashes in banner file are doubled when displayed by SSHD.

Version-Release number of selected component (if applicable):
openssh-server-5.2p1-31.fc12.i686

How reproducible:
Create banner file containing this text: "/ / \ \".
Configure SSHD to use prepared banner.

Steps to Reproduce:
1. Start SSHD.
2. Connect to the server.
3. Enter user name. Check the banner.
  
Actual results:
Backslashed are doubled:
"/ / \\ \\"

Expected results:
Single backslashes:
"/ / \ \"
Comment 1 Tomas Mraz 2009-11-23 02:39:27 EST
The banner messages are escaped not by SSHD but by the ssh client so a rogue server can not send terminal escapes to the client's terminal.