Package: wpasupplicant Version: 2.10 Dear Maintainer, wpa_supplicant has 
problems loading a configs that contains a network with an SSID/PSK that 
contains double quotes followed by hash. steps to reproduce: 1a. create the 
config: ctrl_interface=/run/wpa_supplicant network={ ssid="my"#SSID" 
psk="securePsk" } 1b. start wpa_supplicant and do "wpa_cli list_networks": 

> ~/wpa_supplicant-2.10/wpa_supplicant# wpa_cli list_networks
 Selected interface 'wlan0'
 network id / ssid / bssid / flags
 0 my any <------- wrong SSID

2a. create the config: ctrl_interface=/run/wpa_supplicant network={ 
ssid="my"awsome#SSID" psk="securePsk" } 2b. start wpa_supplicant gives the 
following errors in log: 1692607987.076948: Successfully initialized 
wpa_supplicant 1692607987.077262: Line 3: failed to parse ssid '"my"awsome'. 
<------ wrong SSID 1692607987.077302: Line 3: failed to parse ssid 
'"my"awsome'. 1692607987.109757: Line 5: failed to parse network block. 
1692607987.109836: Failed to read or parse configuration 
'/etc/wpa_supplicant/wpa_supplicant.conf'. 3a. create the config: 
ctrl_interface=/run/wpa_supplicant network={ ssid="mySSID" 
psk="secure"awsome#Psk" } 3b. start wpa_supplicant gives the following errors 
in log: 1692608589.796979: Successfully initialized wpa_supplicant 
1692608589.797357: Line 4: Invalid passphrase length 6 (expected: 8..63) 
'secure"awsome'. <------ wrong PSK 1692608589.797399: Line 4: failed to parse 
psk '"secure"awsome'. 1692608589.797439: Line 5: failed to parse network block. 
1692608589.797496: Failed to read or parse configuration 
'/etc/wpa_supplicant/wpa_supplicant.conf'. 

The problem did not occure with wpa_supplicant v2.8-devel.

The problem does not occure if the hash sign is followed by double quotes.

I am using:

Linux Kali 6.3.0-kali1-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.3.7-1kali1 
(2023-06-29) x86_64 GNU/Linux

Linux Raspberry-Pi-2 5.10.103-v7l+ #1529 SMP Tue Mar 8 12:24:00 GMT 2022 armv7l 
GNU/Linux
  • Bug#1053264: wpasupplicant: config parser has problem ... Johannes Brallentin

Reply via email to