** Description changed:

  Binary package hint: gnome-system-tools
  
  1) Ubuntu 8.04.1
  2) gnome-system-tools v2.22.0-0ubuntu9
  3) The pre-shared key is encrypted with the SSID and saved into the 
/etc/network/interfaces.
  4) Some pre-shared keys are discarded with no error messages indicating that 
something wrong occurred.
  
  When entering a PSK containing spaces and/or special characters, it was
  never saved to the /etc/network/interfaces file. This is due to the
  program passing the information directly to wpa_passphrase without
  escaping the special characters, or encasing the entire PSK in single
  quotes to stop the shell from parsing it.
  
  Something similar to the following pseudo code should be implemented:
- $SSID ~= s/'/\\'/g
- $PSK ~= s/'/\\'/g
- wpa_passphrase '$SSID' '$PSK'
+ $SSID ~= s/(['"$&<>|\\ ])/\\$1/g
+ $PSK ~= s/(['"$&<>|\\ ])/\\$1/g
+ wpa_passphrase $SSID $PSK
  
  
- The current workaround is to manually add the single quotes when entering the 
information into the program.
+ Reproducing the error:
+ Enter any special characters for the PSK: ', ", $, &, <, >, |, \, space

** Description changed:

  Binary package hint: gnome-system-tools
  
  1) Ubuntu 8.04.1
  2) gnome-system-tools v2.22.0-0ubuntu9
  3) The pre-shared key is encrypted with the SSID and saved into the 
/etc/network/interfaces.
  4) Some pre-shared keys are discarded with no error messages indicating that 
something wrong occurred.
  
  When entering a PSK containing spaces and/or special characters, it was
  never saved to the /etc/network/interfaces file. This is due to the
  program passing the information directly to wpa_passphrase without
  escaping the special characters, or encasing the entire PSK in single
  quotes to stop the shell from parsing it.
  
  Something similar to the following pseudo code should be implemented:
  $SSID ~= s/(['"$&<>|\\ ])/\\$1/g
  $PSK ~= s/(['"$&<>|\\ ])/\\$1/g
  wpa_passphrase $SSID $PSK
  
  
  Reproducing the error:
- Enter any special characters for the PSK: ', ", $, &, <, >, |, \, space
+ 1. Start network-admin.
+ 2. Select the wireless connection.
+ 3. Disable roaming.
+ 4. Enter any special characters for the PSK: ', ", $, &, <, >, |, \, space

-- 
Network Administration Tool does not escape PSK
https://bugs.launchpad.net/bugs/248290
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to