Description of problem:
Whenever I boot I see a connection to twitter servers even though I didn't add any online accounts ( and I don't have twitter ). I don't like nor want the web services.
Version-Release number of selected component (if applicable):
ALL THE TIME
Steps to Reproduce:
2.look at the connections
3.grep for "socialweb"
1 connection to some twitter server
tcp 28 0 10.10.18.71:48311 184.108.40.206:443 CLOSE_WAIT 1529/libsocialweb-c
It might be great for people who use those services, but I don't want my system to have anything related to twitter/facebook or other crap, even more when it tries to make connections without my approval. It's also weird that gnome-shell depends on this stuff !
I would rate this as a security issue by two aspects:
* It's a hidden Twitter "bug" that gives Twitter information on every successful Fedora 16 user login to gnome shell in default installation. Without any consent given by the user or any indication that any such notification is taking place.
* no verification of the SSL connection is attempted, leaving the exchange wide-open to mitm attacks which I suspect may open up for possible twitter session theft if there is an twitter network account.
In addition there is a separate minor bug where the twitter client apparently forgets to close the connection, leaving it in CLOSE_WAIT state until logout.
Example data sent to api.twitter.com, extracted by a trivial mitm attack using openssl s_server with a dummy self-signed certificate for a completely different service and iptables nat to redirect the traffic there:
GET /friends/ids.xml?screen%5Fname= HTTP/1.1
Authorization: OAuth realm="", oauth_nonce="3721916599", oauth_consumer_key="7MXEzcmLr0ro5buVLd37Dw", oauth_signature="nEWrwNMAnzn8OqtBw5L5ZbKXyXY%3D", oauth_version="1.0", oauth_timestamp="1320754869", oauth_signature_method="HMAC-SHA1"
A temporary workaround is to
chmod 0 /usr/lib64/libsocialweb/services/libtwitter.so
to prevent the twitter client from loading.
libsocialweb doesn't run on its own, it gets started by something else via dbus on request. Looking through the deps on a standard gnome-desktop I suspect this is folks as its the only thing that links against it directly. Whether this is then requested by something that then uses folks such as gnome-contacts, gnome-online-accounts or empathy one of the gnome team would need to confirm
fact remains that the twitter service is doing a unasked and silent transaction with twitter each time it gets started with no obvious way to disable.
looking at the code it seems it tries to avoid this by cheking for a NULL API key, but for some reason it still tries even when there is no twitter account configured. (empty but not NULL? or is there some default public api key?)
service/twitter/twitter.c line 512
(In reply to comment #1)
> I would rate this as a security issue by two aspects:
> * It's a hidden Twitter "bug" that gives Twitter information on every
> successful Fedora 16 user login to gnome shell in default installation. Without
> any consent given by the user or any indication that any such notification is
> taking place.
> * no verification of the SSL connection is attempted, leaving the exchange
> wide-open to mitm attacks which I suspect may open up for possible twitter
> session theft if there is an twitter network account.
This truly is a security issue. It's a very bad programming custom to open
untrusted remote connection without user's approval by default (upon service
I have stolen this bug to be a 'Security Response' product one. Thank you
for notifying us about this.
This issue affects the version of the libsocialweb package, as shipped with Fedora release of 14, 15, and 16. Please schedule an update (once final upstream patch known).
Created libsocialweb tracking bugs for this issue
Affects: fedora-all [bug 752459]
This issue was assigned the name CVE-2011-4129.
Hi, thanks for bringing this to my attention.
As Henrik highlighted there are two issues:
* A bug where the views will try and fetch content from the web service even if they aren't configured.
I fixed this for twitter in:
Many of the backends were derived from twitter so also need an audit to check if they have correct behavior - i'll do that and fix those today and make a new release.
* Secondly we should enforce that the SSL certificate is valid - i've done that by fixing librest:
I'll be making a new librest release today too.
There is a new librest release that forces trusted certificates - http://ftp.gnome.org/pub/GNOME/sources/rest/0.7/rest-0.7.12.tar.xz
> Many of the backends were derived from twitter so also need an audit to check
> if they have correct behavior - i'll do that and fix those today and make a new
Hi Rob, do you have status on a updated libsocialweb?
Peter, I just uploaded a 0.25.20 to the gnome servers - should be a available in a few minutes.
(In reply to comment #13)
> Peter, I just uploaded a 0.25.20 to the gnome servers - should be a available
> in a few minutes.
Rob: thanks, much appreciated
rest-0.7.12-1.fc16, libsocialweb-0.25.20-1.fc16 has been pushed to the Fedora 16 stable repository. If problems still persist, please make note of it in this bug report.
rest-0.7.12-1.fc15, libsocialweb-0.25.20-1.fc15 has been pushed to the Fedora 15 stable repository. If problems still persist, please make note of it in this bug report.