It is currently Fri Apr 19, 2024 10:38 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 45 posts ]  Go to page 1, 2, 3  Next
Author Message
Offline
 Post subject: EidoGo Security Vulnerability Alert
Post #1 Posted: Sun Jun 14, 2015 3:39 pm 
Dies with sente

Posts: 82
Liked others: 19
Was liked: 46
Public Security Announcement to WebMasters using EidoGo

EidoGo contains cross-site scripting (XSS) security vulnerabilities

If you are using EidoGo as an embedded SGF player on your website, your site may be susceptible to these security vulnerabilities, particularly if your site supports uploading SGF files that are then displayed to other users via EidoGo. You can read more about this issue in the below GitHub issue report.

https://github.com/jkk/eidogo/issues/27

You can also read more about what cross-site scripting is on this website: http://excess-xss.com

Note: this is the public disclosure following a two-month period after the developer was first privately notified of this issue. One month ago, the webmasters of several websites (including L19x19) were notified to allow them to address this security issue in advance of wider public disclosure.


This post by YeGO was liked by 5 people: Bonobo, Jhyn, RBerenguel, sybob, virre
Top
 Profile  
 
Offline
 Post subject: Re: EidoGo Security Vulnerability Alert
Post #2 Posted: Wed Feb 10, 2016 10:12 am 
Oza
User avatar

Posts: 2221
Location: Germany
Liked others: 8262
Was liked: 924
Rank: OGS 9k
OGS: trohde
Universal go server handle: trohde
Since I see links to EidoGo all the time … is there any news about this?

_________________
“The only difference between me and a madman is that I’m not mad.” — Salvador Dali ★ Play a slooooow correspondence game with me on OGS? :)

Top
 Profile  
 
Offline
 Post subject: Re: EidoGo Security Vulnerability Alert
Post #3 Posted: Wed Feb 10, 2016 3:46 pm 
Gosei

Posts: 1494
Liked others: 111
Was liked: 315
No

_________________
North Lecale

Top
 Profile  
 
Offline
 Post subject: Re: EidoGo Security Vulnerability Alert
Post #4 Posted: Thu Feb 11, 2016 2:48 am 
Judan

Posts: 6725
Location: Cambridge, UK
Liked others: 436
Was liked: 3719
Rank: UK 4 dan
KGS: Uberdude 4d
OGS: Uberdude 7d
It appears the eidogo plugin on L19 has patched this vulnerability:



This post by Uberdude was liked by 2 people: Bonobo, Joaz Banbeck
Top
 Profile  
 
Offline
 Post subject: Re: EidoGo Security Vulnerability Alert
Post #5 Posted: Thu Feb 11, 2016 7:53 am 
Lives with ko

Posts: 202
Location: Santiago, Chile
Liked others: 39
Was liked: 44
Rank: EGF 1d
Universal go server handle: Jhyn
YeGO wrote:
Public Security Announcement to WebMasters using EidoGo


Thank you for the time and efforts you spent for our benefit and your responsible approach to disclosure.

_________________
La victoire est un hasard, la défaite une nécessité.


This post by Jhyn was liked by: Bonobo
Top
 Profile  
 
Offline
 Post subject: Re: EidoGo Security Vulnerability Alert
Post #6 Posted: Fri Feb 12, 2016 3:44 am 
Dies in gote

Posts: 33
Liked others: 3
Was liked: 5
Rank: 3d
KGS: fanfan
I am the author of maxiGos (http://jeudego.org/maxiGos/index.php?lang=en) which is a sgf web player similar to eidogo.

MaxiGos has not this vulnerability.

Maybe this can help people that cannot patch eidogo easily themselves.

_________________
Simplify!


This post by fanfan was liked by: Bonobo
Top
 Profile  
 
Offline
 Post subject: Re: EidoGo Security Vulnerability Alert
Post #7 Posted: Fri Feb 12, 2016 8:05 am 
Judan

Posts: 6146
Liked others: 0
Was liked: 788
How to avoid the vulnerability as the programmer?

Top
 Profile  
 
Offline
 Post subject: Re: EidoGo Security Vulnerability Alert
Post #8 Posted: Fri Feb 12, 2016 8:33 am 
Lives with ko

Posts: 199
Liked others: 6
Was liked: 55
Rank: KGS 3 kyu
Are you asking from the point of view of someone who develops eidogo-like applications, or from the perspective of someone who includes eidogo in their own website? I.e., is this about preventing XSS or about going around it in a case like this?

Top
 Profile  
 
Offline
 Post subject: Re: EidoGo Security Vulnerability Alert
Post #9 Posted: Fri Feb 12, 2016 8:50 am 
Judan

Posts: 6725
Location: Cambridge, UK
Liked others: 436
Was liked: 3719
Rank: UK 4 dan
KGS: Uberdude 4d
OGS: Uberdude 7d
RobertJasiek wrote:
How to avoid the vulnerability as the programmer?

There's a lot of details and quirks, but it basically comes down to encoding things properly: if the user gives you some text don't give it verbatim to a browser which will interpret it as html.
https://www.owasp.org/index.php/XSS_(Cross_Site_Scripting)_Prevention_Cheat_Sheet


This post by Uberdude was liked by 2 people: Bonobo, fanfan
Top
 Profile  
 
Offline
 Post subject: Re: EidoGo Security Vulnerability Alert
Post #10 Posted: Fri Feb 12, 2016 9:57 am 
Dies in gote

Posts: 33
Liked others: 3
Was liked: 5
Rank: 3d
KGS: fanfan
As a programmer, here are a couple of relatively simple things you can do:

1st possibility:
When parsing sgf data, remove html tag if any. The drawback is that some information will be lost. Some strings like <a> will be erased during the process even if they were not actually html tags (in the author mind).

Note that removing <script> tags only is not enough since some javascript can be inserted as value of event attributes in other tags such as img (but not only).

Note that some authors included such (non malicious) tags in sgf properties especially in C property to format the text or to display a link. But in theory, there is nothing in sgf specs that mention that sgf players have to render such html code as html. If you want to keep these tags, you have to use more sophisticated parsing methods.

2nd possibility:
Before displaying sgf data (i.e. when using document.write() or document.getElementById(id).innerHTML=... or any other methods that render html in a page), replace html entities by their html equivalent (i.e < replaced by &lt;, > replaced by &gt;, & replaced by &amp;, ...).

In practice, replacing only < and > probably could do the job. The drawback is that the tags will be displayed as is, and sometimes, this can be unwanted. For instance, if an author used a <b>...</b> tag to add a bold effect on a text, the <b> and </b> will be visible in the text by the end user.

There are many other possibilities. Everything is possible.

EDIT: and of course, never use eval() javascript function on sgf data as is, and remove any data in sgf that does nothing (such as characters before the first parenthesis).

_________________
Simplify!


This post by fanfan was liked by: Bonobo
Top
 Profile  
 
Offline
 Post subject: Re: EidoGo Security Vulnerability Alert
Post #11 Posted: Fri Feb 12, 2016 11:13 am 
Judan

Posts: 6146
Liked others: 0
Was liked: 788
Uberdude, fanfan, thank you.

uPWarrior, I ask to better understand surfing risks, webpage management, responsibility of webpage managers and as a potential programmer.

Top
 Profile  
 
Offline
 Post subject: Re: EidoGo Security Vulnerability Alert
Post #12 Posted: Tue Apr 05, 2016 5:10 am 
Dies with sente

Posts: 82
Liked others: 19
Was liked: 46
Bonobo wrote:
Since I see links to EidoGo all the time … is there any news about this?


EidoGo appears to be an abandoned project. My issue report and pull request (patch submission) still remain open and unacknowledged by the developer.

The last I heard from the developer was on May 5, 2015, where he simply said via email "A pull request on github would be much appreciated. Thanks".

EidoGo.com remains vulnerable.
http://eidogo.com/#AKilSuG4

Several websites (including LifeIn19x19.com) were notified prior to the public disclosure.
The following sites have incorporated the patch to fix the vulnerability:
https://forums.online-go.com/
https://gtl.xmp.net/
http://gokifu.com/

LifeIn19x19.com continues to use the vulnerable version of EidoGo.


This post by YeGO was liked by 2 people: Bonobo, sybob
Top
 Profile  
 
Offline
 Post subject: Re: EidoGo Security Vulnerability Alert
Post #13 Posted: Tue Apr 05, 2016 5:27 am 
Oza

Posts: 2180
Location: ʍoquıɐɹ ǝɥʇ ɹǝʌo 'ǝɹǝɥʍǝɯos
Liked others: 237
Was liked: 662
Rank: AGA 5d
GD Posts: 4312
Online playing schedule: Every tenth February 29th from 20:00-20:01 (if time permits)
Does this just affect material read on the site or does it have potential to corrupt the users machine?

_________________
Still officially AGA 5d but I play so irregularly these days that I am probably only 3d or 4d over the board (but hopefully still 5d in terms of knowledge, theory and the ability to contribute).


This post by DrStraw was liked by: Bonobo
Top
 Profile  
 
Offline
 Post subject: Re: EidoGo Security Vulnerability Alert
Post #14 Posted: Tue Apr 05, 2016 5:56 am 
Lives with ko

Posts: 199
Liked others: 6
Was liked: 55
Rank: KGS 3 kyu
It has the potential to corrupt the users machine, but I would think that unlikely. The potential exists.

A XSS vulnerability allows an attacker to run arbitrary javascript code on the user's browser. This implies that any information on the website can be modified/accessed (e.g. authentication tokens that could allow an attacker to pose as the user on that website), but in principle it shouldn't affect the user's machine itself.

However, vulnerabilities on web browsers sometimes allow permissions to escalate and arbitrary machine code to be executed (e.g., Remote code execution in IE10, Execute Code-vulnerabilities in Chrome, etc.).
While these remote-code executions typically require an user to view a specifically crafted webpage, if an attacker is able to run scripts on a remote host (e.g., lifein19x19), then no amount of common sense can protect the end user.

I think this is unlikely because it would require a) a random attacker to target eidogo, b) a knowledgeable attacker to target a site where XSS is possible (e.g., this site), c) unpatched browsers. I don't think this is a tempting enough target given the amount of work required, but is it possible? I would say definitely.


This post by uPWarrior was liked by 2 people: Bonobo, sybob
Top
 Profile  
 
Offline
 Post subject: Re: EidoGo Security Vulnerability Alert
Post #15 Posted: Tue Apr 05, 2016 2:12 pm 
Oza
User avatar

Posts: 2221
Location: Germany
Liked others: 8262
Was liked: 924
Rank: OGS 9k
OGS: trohde
Universal go server handle: trohde
Thanks for your efforts, YeGo!
YeGO wrote:
EidoGo appears to be an abandoned project. My issue report and pull request (patch submission) still remain open and unacknowledged by the developer.

The last I heard from the developer was on May 5, 2015, where he simply said via email "A pull request on github would be much appreciated. Thanks".
:sad:

If it has been abandoned, couldn’t you then just grab it and make “ZweidoGo” out of it?
(“eins” is German for “one”, “zwei” is German for “two” ;-) )
Would there be moral objections? Or would it rather be technical problems? (I understand nothing of these things.)

Quote:
EidoGo.com remains vulnerable.
http://eidogo.com/#AKilSuG4

Several websites (including LifeIn19x19.com) were notified prior to the public disclosure.
The following sites have incorporated the patch to fix the vulnerability:
https://forums.online-go.com/
https://gtl.xmp.net/
http://gokifu.com/
:tmbup:

Quote:
LifeIn19x19.com continues to use the vulnerable version of EidoGo.
:shock:

Quote:
[sgf … /sgf]
Nicely done :cool:
trusting you, I clicked …
Attachment:
Screen Shot 2016-04-05 at 22.49.18.png
Screen Shot 2016-04-05 at 22.49.18.png [ 16.97 KiB | Viewed 14245 times ]

So, if I understand correctly, this is executable HTML code within the SGF, right?
Code:
<a onclick="alert('vulnerable')">CLICK</a>


For our L19 admins demigods: couldn’t perhaps Ilya Kirillov’s wonderful HTML5 Web Go Board extension/code be something to integrate here? I use it all the time and I LOVE it, and BTW it was there where I found the code (clicked the SGF link, another tab opened with the Web Go Board—and the code as comment at the beginning.
Attachment:
Screen Shot 2016-04-05 at 22.59.46.png
Screen Shot 2016-04-05 at 22.59.46.png [ 15.28 KiB | Viewed 14245 times ]


Thanks for the edutainment :D (if it weren‘t so sad)

_________________
“The only difference between me and a madman is that I’m not mad.” — Salvador Dali ★ Play a slooooow correspondence game with me on OGS? :)

Top
 Profile  
 
Offline
 Post subject: Re: EidoGo Security Vulnerability Alert
Post #16 Posted: Tue Apr 05, 2016 2:54 pm 
Lives in gote

Posts: 422
Liked others: 269
Was liked: 129
KGS: captslow
Online playing schedule: irregular and by appointment
uPWarrior wrote:
It has the potential to corrupt the users machine, but I would think that unlikely. The potential exists.
...
I think this is unlikely because it would require a) a random attacker to target eidogo, b) a knowledgeable attacker to target a site where XSS is possible (e.g., this site), c) unpatched browsers. I don't think this is a tempting enough target given the amount of work required, but is it possible? I would say definitely.


Well, it may be unlikely, but I am not interested in likelyhood and probabilities, and want to know what it means to me in my actual situation.
Chances about recovery from a disease may be true, but if I'm the patient, I wonder what it does TO ME, having a 50/50 chance of recovery or not.
And because I operate in a very delicate line of business, I don't like this very much. AT ALL!

More exotic targets than go players were under attack. But if you don't know the user base of this forum, extensive and in detail, this still sounds to me to be a major thing.


This post by sybob was liked by: LocoRon
Top
 Profile  
 
Offline
 Post subject: Re: EidoGo Security Vulnerability Alert
Post #17 Posted: Tue Apr 05, 2016 2:58 pm 
Lives in gote

Posts: 422
Liked others: 269
Was liked: 129
KGS: captslow
Online playing schedule: irregular and by appointment
Bonobo wrote:
For our L19 admins demigods: couldn’t perhaps Ilya Kirillov’s wonderful HTML5 Web Go Board extension/code be something to integrate here? I use it all the time and I LOVE it, and BTW it was there where I found the code (clicked the SGF link, another tab opened with the Web Go Board—and the code as comment at the beginning.

Thanks for the edutainment :D (if it weren‘t so sad)

Kosmonaut has been very busy developing his web go board, which is very much appreciated. Perhaps because of that, he still has not been able to answer some vulnerability/security questions I asked him long time ago.

Top
 Profile  
 
Offline
 Post subject: Re: EidoGo Security Vulnerability Alert
Post #18 Posted: Tue Apr 05, 2016 3:04 pm 
Lives in gote

Posts: 422
Liked others: 269
Was liked: 129
KGS: captslow
Online playing schedule: irregular and by appointment
Does this vulnerability occur if you just browse this forum?
Or is it necessary that Eidogo runs within the browser (either from within this site or as a separate instance) for this vulnerability to become apparent?
Anyone knows?

Top
 Profile  
 
Offline
 Post subject: Re: EidoGo Security Vulnerability Alert
Post #19 Posted: Tue Apr 05, 2016 3:09 pm 
Lives in gote

Posts: 422
Liked others: 269
Was liked: 129
KGS: captslow
Online playing schedule: irregular and by appointment
uPWarrior wrote:
... then no amount of common sense can protect the end user.

So, this is my last visit here.
Thank you all, bye.

Top
 Profile  
 
Offline
 Post subject: Re: EidoGo Security Vulnerability Alert
Post #20 Posted: Tue Apr 05, 2016 3:21 pm 
Oza

Posts: 2180
Location: ʍoquıɐɹ ǝɥʇ ɹǝʌo 'ǝɹǝɥʍǝɯos
Liked others: 237
Was liked: 662
Rank: AGA 5d
GD Posts: 4312
Online playing schedule: Every tenth February 29th from 20:00-20:01 (if time permits)
sybob wrote:
uPWarrior wrote:
... then no amount of common sense can protect the end user.

So, this is my last visit here.
Thank you all, bye.


What are you worried about if you don't click on any eidogo links?

_________________
Still officially AGA 5d but I play so irregularly these days that I am probably only 3d or 4d over the board (but hopefully still 5d in terms of knowledge, theory and the ability to contribute).

Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 45 posts ]  Go to page 1, 2, 3  Next

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group