GNOME Bugzilla – Bug 760866
XML special characters (e.g. ampersand) in connection name are not properly escaped/sanitized
Last modified: 2016-01-20 19:38:26 UTC
XML special characters (for example an ampersand) occurring in connection names are not properly escaped/sanitized when the list of all available connections is rendered in nm-connection-editor. This is especially problematic with wifi SSIDs, as quite a lot of SSIDs do actually contain such characters. In practice, the most problematic character is probably the ampersand, but all XML characters in strings should be probably sanitized before throwing them at GTK. I suspect that this could also be exploited to inject arbitrary GTK3 XML code into other user's sessions on multi-user systems, but I have not further investigated this.
Fixed two potential issues: master: https://git.gnome.org/browse/network-manager-applet/commit/?id=0d98aebd80b1ec8da4b55744c3b69932d1c8b97d https://git.gnome.org/browse/network-manager-applet/commit/?id=6f19339a098094920578425699c38e1ab7c1f90f nma-1-0: https://git.gnome.org/browse/network-manager-applet/commit/?id=c64c87049ff8611bc24f7fafe03ba73af126d542 https://git.gnome.org/browse/network-manager-applet/commit/?id=dee34d0ae5bc12f9826b714f0070e1c8108f1eb0 I didn't see other missing escapes, thus closing the bug as fixed. If you find other places (or if you mean other places), please reopen. Thanks!
Thanks for the quick fix! :-)