Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
rajesh_s
Contributor

Disable CBC mode cipher encryption and enable CTR or GCM cipher mode

Jump to solution

In R77.30  i need  enable the CTR or GCM cipher mode  encryption instead of CBC cipher encryption, Please  some one help me to fix this issue.

1 Solution

Accepted Solutions
PhoneBoy
Admin
Admin

You can change the enabled SSH ciphers in the following files:

  • /etc/ssh/ssh_config
  • /etc/ssh/sshd_config

Look for the Ciphers line and remove the appropriate entries from that line.

Restart the ssh daemon with the command: service sshd restart 

View solution in original post

12 Replies
PhoneBoy
Admin
Admin

Please clarify which part of the product you're asking about as there are several places that use these ciphers and the answer is different for each one.

0 Kudos
rajesh_s
Contributor

Hi Demeon,

Thanks for your response 

The SSH server is configured to support Cipher Block Chaining (CBC) encryption. This may allow an attacker to recover the plaintext message from the ciphertext.

 

0 Kudos
PhoneBoy
Admin
Admin

You can change the enabled SSH ciphers in the following files:

  • /etc/ssh/ssh_config
  • /etc/ssh/sshd_config

Look for the Ciphers line and remove the appropriate entries from that line.

Restart the ssh daemon with the command: service sshd restart 

View solution in original post

rajesh_s
Contributor

HI Demeon,

I found the chipper keys  " Ciphers aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes2 "

That is only keys i found in ssh configuration, If i remove those keys, Will i able to access the gateway via ssh?.

0 Kudos
PhoneBoy
Admin
Admin

Assuming you've got ciphers listed that are supported by your SSH client, yes. 

0 Kudos
Bryce_Myers
Collaborator

Do you know of a way to modify this ciphers on Gaia Embedded?

0 Kudos
PhoneBoy
Admin
Admin

Not that I'm aware of.

G_W_Albrecht
Legend
Legend
0 Kudos
G_W_Albrecht
Legend
Legend

R77.20.80 for Small and Medium Business Appliances removed unsafe ciphers/HMACs from SSH server supported ciphers/HMACs: hmac-sha1-96, hmac-md5.

Looks like the ciphers are compiled into the dropbear SSH server binary for Embedded systems!

0 Kudos
johnnyhinton777
Explorer

DESCRIPTION

The SSH server is configured to support either Arcfour or Cipher Block Chaining (CBC) mode cipher algorithms. SSH can be configured to use Counter (CTR) mode encryption instead of CBC. The use of Arcfour algorithms should be disabled.

RISK

A weak cipher has been detected.

RECOMMENDATION

Configure the SSH server to disable Arcfour and CBC ciphers

 

What is the configuration to disable CBC and enable CTR?

 

Here is what I have on the router now: 

HTTP secure server ciphersuite: 3des-ede-cbc-sha des-cbc-sha rc4-128-md5
rc4-128-sha aes-128-cbc-sha aes-256-cbc-sha dhe-aes-128-cbc-sha
dhe-aes-256-cbc-sha ecdhe-rsa-3des-ede-cbc-sha ecdhe-rsa-aes-256-cbc-sha
ecdhe-rsa-rc4-128-sha

 

0 Kudos
PhoneBoy
Admin
Admin

It would be exactly the same configuration as you would do on a standard OpenSSH, which I assume would start by removing anything that mentions CBC in the name.
The version of OpenSSH in use prior to R80.40 is fairly old, so it may not support newer ciphers that may be suggested.

0 Kudos
rajesh_s
Contributor

 There was no ciphers key in sshd_config file, Just i had below mentioned cipher keys in sshd_config file.

Ciphers aes128-ctr,aes192-ctr,aes256-ctr

MACs hmac-sha1,hmac-ripemd160.

Thanks a lot for your help.

0 Kudos