News for hackers. Stuff that matters.
Re:WorldChat.io: Chat with realtime translation by vfl0 on Tuesday May 21, 2013 @04:56PM (#5746766)
Due to the massive amounts of spamming going on right now I think there should be some sort of chat room system on there which allows you to create a room and send the link.

Or you could even follow a similar idea to Omegle by pairing two people together but make it so it pairs two people who speak in different languages?

Re:WorldChat.io: Chat with realtime translation by octatone2 on Tuesday May 21, 2013 @02:45PM (#5745838)
{{{message}}} in handlebars means that if someone one gets around your server-side sanitization your client side is wide open to XSS ...

also, rate limit the users, this is thing is managing to crash chrome!

Re:WorldChat.io: Chat with realtime translation by anonfunction on Tuesday May 21, 2013 @02:47PM (#5745856)
Working on it, any tips to keep entity encoding in handlebars without the triple stash?
Re:WorldChat.io: Chat with realtime translation by octatone2 on Tuesday May 21, 2013 @02:56PM (#5745899)
Don't encode entities on the server side if you are using handlebars, it will do that for you (that's the point of using {{}} it will make all user input "safe").
Re:WorldChat.io: Chat with realtime translation by Sephr on Tuesday May 21, 2013 @04:32PM (#5746630)
Don't encode entities, just use the DOM (append text nodes).
Re:WorldChat.io: Chat with realtime translation by obviouslygreen on Tuesday May 21, 2013 @03:27PM (#5746180)
I built a proof of concept for something like this for someone quite a while ago... what he had that you desperately need is channels. This is entirely useless with any amount of people (particularly when spammers can't be controlled, which is just how the net is). Excellent idea, but it needs some concept of segmentation to be useful.
Re:WorldChat.io: Chat with realtime translation by anonfunction on Tuesday May 21, 2013 @05:19PM (#5746917)
Totally agree, let's make it happen! http://github.com/mashape/worldchat
Re:WorldChat.io: Chat with realtime translation by ecto on Tuesday May 21, 2013 @04:29PM (#5746618)
I got through with this

  ';alert(String.fromCharCode(88,83,83))//\';alert(String.fromCharCode(88,83,83))//";alert(String.fromCharCode(88,83,83))//\";alert(String.fromCharCode(88,83,83))//--></SCRIPT>">'><SCRIPT>alert(String.fromCharCode(88,83,83))</SCRIPT>
Re:WorldChat.io: Chat with realtime translation by shared4you on Tuesday May 21, 2013 @02:35PM (#5745767)
I choose the "German" flag. Does it mean that I should type in German or others' messages are translated to German? It's not at all clear from the wording: "Choose your username and language to start chatting with the world"... What if I want to type in English but read others' messages in German?
Re:WorldChat.io: Chat with realtime translation by anonfunction on Tuesday May 21, 2013 @02:46PM (#5745846)
Sorry to confuse you, the UX is kinda wonky. Whatever flag you choose is what determines your language for both outgoing and incoming messages. So if you choose German, that is what will determine the "From" language to translate on your outgoing messages and the "To" language for incoming.
Re:WorldChat.io: Chat with realtime translation by ne0phyte on Tuesday May 21, 2013 @02:38PM (#5745798)
Both? It probably means that you write in German and other messages are translated to your language (German).

That's the only thing that would make sense.

Re:WorldChat.io: Chat with realtime translation by anonfunction on Tuesday May 21, 2013 @02:41PM (#5745812)
This is correct. Basically whatever flag you choose is what determines the "From" translation language on your outgoing messages and the "To" language for incoming.
Re:WorldChat.io: Chat with realtime translation by anonfunction on Tuesday May 21, 2013 @02:12PM (#5745551)
Since I made this, I'm glad some people like it (and not surprised some don't) but I'd love to answer some technical questions or hear any bugs / issues / security holes you hackers might have found. Cheers!
Re:WorldChat.io: Chat with realtime translation by C1D on Tuesday May 21, 2013 @02:16PM (#5745584)
It feels like I'm being spammed, there isn't enough time to read the messages and its also getting flooded by people with the usernames flood and flooder.
Re:WorldChat.io: Chat with realtime translation by anonfunction on Tuesday May 21, 2013 @02:17PM (#5745596)
Ya, I tried to implement rate limiting and failed, this was last night at 3am, so let me try again. If you code you might be able to beat me to it: https://github.com/Mashape/worldchat
Re:WorldChat.io: Chat with realtime translation by C1D on Tuesday May 21, 2013 @10:30PM (#5748473)
I'm going out but when I get home I will see what I can do :) EDIT: I think using websockets + node.js would be a better idea.
Re:WorldChat.io: Chat with realtime translation by johnernaut on Tuesday May 21, 2013 @02:14PM (#5745570)
JavaScript in the body of the message box executes 0.o very cool none-the-less.
Re:WorldChat.io: Chat with realtime translation by anonfunction on Tuesday May 21, 2013 @02:18PM (#5745602)
Only for you, it gets filtered before going over the wire. Have fun :)
Re:WorldChat.io: Chat with realtime translation by octatone2 on Tuesday May 21, 2013 @02:47PM (#5745855)
Should still be sanitizing user input, there's no reason to be passing the message as an html variable in handlebars {{{message}}} :/

You trust your server-side sanitization that much?

Re:WorldChat.io: Chat with realtime translation by sk00byd00 on Tuesday May 21, 2013 @03:22PM (#5746133)
Do you trust the client side at all?
Re:WorldChat.io: Chat with realtime translation by octatone2 on Tuesday May 21, 2013 @03:37PM (#5746285)
I trust handlebars with all my user inputs.
Re:WorldChat.io: Chat with realtime translation by canthonytucci on Tuesday May 21, 2013 @02:53PM (#5745889)
TIL Frühstücksfleisch is german for "SPAM"

good job shutting that fellow down. Very cool little app.

edit:

well...maybe some kind of rate limit might help.

Re:WorldChat.io: Chat with realtime translation by bryanashley on Tuesday May 21, 2013 @03:58PM (#5746436)
I wrote a very similar chat application using google translation, tech demo here: http://speak.ly
Re:WorldChat.io: Chat with realtime translation by anonfunction on Tuesday May 21, 2013 @06:31PM (#5747444)
Wow, yours is way better!
Re:WorldChat.io: Chat with realtime translation by scottshea on Tuesday May 21, 2013 @02:39PM (#5745807)
This is not a feature request by any means. I suspect that this and autocorrect would combine for some seriously funny international humor.
Re:WorldChat.io: Chat with realtime translation by anonfunction on Tuesday May 21, 2013 @06:46PM (#5747547)
Re:WorldChat.io: Chat with realtime translation by ne0phyte on Tuesday May 21, 2013 @02:24PM (#5745660)
Re:WorldChat.io: Chat with realtime translation by anonfunction on Tuesday May 21, 2013 @05:23PM (#5746936)
Sorry. To be honest I didn't test on mobile and actually built the site using a 24" thunderbolt display, thanks for the heads up!