EidoGo Security Vulnerability Alert

Tell the community about tournaments, new go sites, software updates, etc.
Kirby
Honinbo
Posts: 9553
Joined: Wed Feb 24, 2010 6:04 pm
GD Posts: 0
KGS: Kirby
Tygem: 커비라고해
Has thanked: 1583 times
Been thanked: 1707 times

Re: EidoGo Security Vulnerability Alert

Post by Kirby »

Okay, fixed the URLs. AFAIK, the security vulnerability is addressed, and the URLs still show up properly when you have a URL location. I believe the behavior is the same as before for all eidogo options on the site (sgf, sgf-problem, sgf-small tags, etc.).

I've tested this out a little bit, and haven't found anything unusual. If anybody finds any other bugs in the player, let me know, and I will try to fix it.
be immersed
uPWarrior
Lives with ko
Posts: 199
Joined: Mon Jan 17, 2011 1:59 pm
Rank: KGS 3 kyu
GD Posts: 0
Has thanked: 6 times
Been thanked: 55 times

Re: EidoGo Security Vulnerability Alert

Post by uPWarrior »

Good job Kirby.
Kirby
Honinbo
Posts: 9553
Joined: Wed Feb 24, 2010 6:04 pm
GD Posts: 0
KGS: Kirby
Tygem: 커비라고해
Has thanked: 1583 times
Been thanked: 1707 times

Re: EidoGo Security Vulnerability Alert

Post by Kirby »

FYI, this morning when I try to access page 1 of this thread, I get a timeout. Other pages appear to work fine. Last night, when I checked the EidoGo vulnerability, I was able to access page 1, so not sure what's up.

Hopefully, the problem goes away, but I'll take a more detailed look when I get home tonight.
be immersed
DrStraw
Oza
Posts: 2180
Joined: Tue Apr 27, 2010 4:09 am
Rank: AGA 5d
GD Posts: 4312
Online playing schedule: Every tenth February 29th from 20:00-20:01 (if time permits)
Location: ʍoquıɐɹ ǝɥʇ ɹǝʌo 'ǝɹǝɥʍǝɯos
Has thanked: 237 times
Been thanked: 662 times
Contact:

Re: EidoGo Security Vulnerability Alert

Post by DrStraw »

I accessed it okay.
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).
xed_over
Oza
Posts: 2264
Joined: Mon Apr 19, 2010 11:51 am
Has thanked: 1179 times
Been thanked: 553 times

Re: EidoGo Security Vulnerability Alert

Post by xed_over »

Kirby wrote:FYI, this morning when I try to access page 1 of this thread, I get a timeout. Other pages appear to work fine. Last night, when I checked the EidoGo vulnerability, I was able to access page 1, so not sure what's up.

Hopefully, the problem goes away, but I'll take a more detailed look when I get home tonight.

This is probably the age old problem of too many posts per page -- try reducing the number of posts per page to something like 10 -- or see if you can debug and fix the bug (perhaps DB related, cause it seems to go away for a while after the hosting company restarts their shared DB (only a guess on my part)).
Kirby
Honinbo
Posts: 9553
Joined: Wed Feb 24, 2010 6:04 pm
GD Posts: 0
KGS: Kirby
Tygem: 커비라고해
Has thanked: 1583 times
Been thanked: 1707 times

Re: EidoGo Security Vulnerability Alert

Post by Kirby »

xed_over wrote:
Kirby wrote:FYI, this morning when I try to access page 1 of this thread, I get a timeout. Other pages appear to work fine. Last night, when I checked the EidoGo vulnerability, I was able to access page 1, so not sure what's up.

Hopefully, the problem goes away, but I'll take a more detailed look when I get home tonight.

This is probably the age old problem of too many posts per page -- try reducing the number of posts per page to something like 10 -- or see if you can debug and fix the bug (perhaps DB related, cause it seems to go away for a while after the hosting company restarts their shared DB (only a guess on my part)).


OK. I'll take a look. Glad that it's not a problem with everybody.

Another thing I noticed is that the vulnerability after half applying their patch (I modified it a little bit) seems to be gone with Chrome and IE, but I still saw it using the Edge browser that comes with Windows 10.

Not sure why, yet, but again, it'll be sometime tonight before I look.
be immersed
User avatar
Bonobo
Oza
Posts: 2224
Joined: Fri Dec 23, 2011 6:39 pm
Rank: OGS 13k
GD Posts: 0
OGS: trohde
Universal go server handle: trohde
Location: Lüneburg Heath, North Germany
Has thanked: 8262 times
Been thanked: 924 times
Contact:

Re: EidoGo Security Vulnerability Alert

Post by Bonobo »

Kirby, what about perhaps checking this related github thread and getting in touch with yewang (same user as YeGo here, I assume) and perhaps others there?
“The only difference between me and a madman is that I’m not mad.” — Salvador Dali
Kirby
Honinbo
Posts: 9553
Joined: Wed Feb 24, 2010 6:04 pm
GD Posts: 0
KGS: Kirby
Tygem: 커비라고해
Has thanked: 1583 times
Been thanked: 1707 times

Re: EidoGo Security Vulnerability Alert

Post by Kirby »

Bonobo wrote:Kirby, what about perhaps checking this related github thread and getting in touch with yewang (same user as YeGo here, I assume) and perhaps others there?


Yeah, I might do that. Looking at the diff of the files, it looks like they just did two things in the patch:
1. Replace some characters that can be used for code injection (e.g. ">", "<") with the equivalent html codes.
2. Replaced calls to eval with JSON.parse, IIRC.

There were other differences unrelated to the patch, since the base version was different from what we use on this site. So I only applied the two changes they had here (then there was the issue of links being expanded in the game info, which I fixed separately). So intuitively, I don't know why it would make a difference between browsers if #1 is being done, above. But I'll take a closer look tonight.

If it's still a problem, I might end up contacting them.
be immersed
Kirby
Honinbo
Posts: 9553
Joined: Wed Feb 24, 2010 6:04 pm
GD Posts: 0
KGS: Kirby
Tygem: 커비라고해
Has thanked: 1583 times
Been thanked: 1707 times

Re: EidoGo Security Vulnerability Alert

Post by Kirby »

Sorry, scratch that. After double checking, the vulnerability seems fixed even with the edge browser I was seeing the problem on earlier. So maybe my browser just had the old javascript cached.

So as far as I know, the vulnerability is really fixed. But I'll still take a look at the long page loads tonight (probably an unrelated issue).
be immersed
User avatar
Bonobo
Oza
Posts: 2224
Joined: Fri Dec 23, 2011 6:39 pm
Rank: OGS 13k
GD Posts: 0
OGS: trohde
Universal go server handle: trohde
Location: Lüneburg Heath, North Germany
Has thanked: 8262 times
Been thanked: 924 times
Contact:

Re: EidoGo Security Vulnerability Alert

Post by Bonobo »

Thanks for your work, Kirby!
“The only difference between me and a madman is that I’m not mad.” — Salvador Dali
sybob
Lives in gote
Posts: 422
Joined: Thu Oct 02, 2014 1:56 pm
GD Posts: 0
KGS: captslow
Online playing schedule: irregular and by appointment
Has thanked: 269 times
Been thanked: 129 times

Re: EidoGo Security Vulnerability Alert

Post by sybob »

Curiosity kills the cat.
I just logged in after my last post. My account was not yet deleted.

I now read it has been properly addressed in the meantime.
Thank you all. I can now again spend numerous hours browsing this forum again :wink:

(And it is just a coincidence that my virusscanner intercepted a malicious mail just two minutes ago.)
KOCMOHABT
Lives with ko
Posts: 160
Joined: Sun Dec 21, 2014 4:06 am
Rank: 4d
GD Posts: 0
KGS: KOCMOHABT
Has thanked: 127 times
Been thanked: 175 times

Re: EidoGo Security Vulnerability Alert

Post by KOCMOHABT »

Offtop: If admins of this site would like to embed my board here just pm me [url]kocmohabt.baduk@gmail.com[/url]. As example of embedding http://gokifu.com/s/pb.y. Thank you.
banet
Beginner
Posts: 5
Joined: Thu Apr 14, 2016 8:51 am
GD Posts: 0

Re: EidoGo Security Vulnerability Alert

Post by banet »

Check out the site http://go.ba.net based on eidogo code but with the xss security vulnerability patched.

Boards can be embedded like this

<iframe src=http://go.ba.net/playgo/go-embed.html?sgf=example.sgf>
</iframe>
YeGO
Dies with sente
Posts: 82
Joined: Mon Feb 23, 2015 8:41 pm
GD Posts: 0
Has thanked: 19 times
Been thanked: 46 times

Re: EidoGo Security Vulnerability Alert

Post by YeGO »

banet wrote:Check out the site http://go.ba.net based on eidogo code but with the xss security vulnerability patched.


In your other announcement thread, you said that the vulnerabilities were only "mostly" patched (whatever that means), and based on a quick look, it appears that your javascript is still using eval in a few places to apparently do JSON parsing. Are you sure that you've patched up the XSS vulnerabilities properly?

Also, there seems to be little purpose to linking to your site via an iframe just to use something that is essentially EidoGo, which is already integrated into L19x19. In fact, this could create further security problems, if your site does something malicious or contains unfixed security issues that allows others to do malicious things.

Since your site is based on EidoGo, which is licensed under AGPL requiring derivative works to be open-source under AGPL as well, have you made your modified source code available somewhere (which would be required to comply with the AGPL)?
banet
Beginner
Posts: 5
Joined: Thu Apr 14, 2016 8:51 am
GD Posts: 0

Re: EidoGo Security Vulnerability Alert

Post by banet »

We used the eidogo ui javascript only. We run a different database, and added the SGF xss safety filter at the db level.
Post Reply