News for hackers. Stuff that matters.
Re:Show HN: Drop-In Chat – Chatify your app by owenversteeg on Monday August 04, 2014 @01:30AM (#8130482)
WARNING: DO NOT TRY TO CHAT WITH PEOPLE - BAD THINGS WILL HAPPEN - READ BELOW

Uhh, it's possible to inject Javascript into this. There are two people that already did this. One is harmless and alerts "Wufff!" and the other redirects you to pornhub.

[edit] Now there's another that redirects you to lemonparty.

[edit 2] Now there's another that redirects you here. It's fun watching this play out live, with the nice vs. the mean HNers.

Re:Show HN: Drop-In Chat – Chatify your app by fmavituna on Monday August 04, 2014 @05:02AM (#8130887)
Maybe not everyone knows this, it's called XSS. There is a good cheat sheet to protect against issues like this from OWASP : https://www.owasp.org/index.php/XSS_(Cross_Site_Scripting)_P...

Shameless plug: We develop a tool that detects vulnerabilities such as this automatically (even in JavaScript based web apps) - https://www.netsparker.com/netsparker/

There is also a free community edition which would possibly detect this vulnerability : https://www.netsparker.com/communityedition/

Re:Show HN: Drop-In Chat – Chatify your app by Flam on Monday August 04, 2014 @01:59AM (#8130550)
This is a common mistake tons of developers do.

Pro-tip: Escape all user input either when it's going into the system or when it's going back out to be displayed!

Re:Show HN: Drop-In Chat – Chatify your app by ahochhaus on Monday August 04, 2014 @11:50PM (#8135424)
Drop-In Chat had a few different XSS flaws. They should all be fixed now. Thanks for finding them and pointing them out!

Sorry for the slow security fix, I was traveling after leaving YC Hacks. Please do let me know if you find anything else wrong.

Re:Show HN: Drop-In Chat – Chatify your app by misiti3780 on Sunday August 03, 2014 @09:49PM (#8129889)
Does anyone know a good open-source version of this type of functionality. I have a client now that wants me to add this to their site but the data cannot go through a third-party company.

My stack is django-based but I am open to any solution that works well.

Re:Show HN: Drop-In Chat – Chatify your app by jcbrand on Monday August 04, 2014 @04:24AM (#8130800)
I wrote an open source XMPP-based chat client: https://conversejs.org

There is a Django add-on for it as well: https://pypi.python.org/pypi/django-conversejs

In the latest unreleased version (0.8), you only have to load converse.min.js and converse.min.css in your HTML.

The 0.8 release should go out within the next few weeks.

Re:Show HN: Drop-In Chat – Chatify your app by ahochhaus on Sunday August 03, 2014 @09:53PM (#8129903)
If you are willing to build on go, we open sourced the "wc" (WebChannel) library which handles all of the messages for dropinchat.

http://gopkg.in/samegoal/wc.v0

Also, out of curiosity, if dropinchat provided a virtual appliance so that you didn't need to send the messages off network would that address your security concerns?

Re:Show HN: Drop-In Chat – Chatify your app by rakoo on Monday August 04, 2014 @04:48AM (#8130857)
Try Jappix mini (https://mini.jappix.com/). Uses XMPP instead of reinventing the wheel once again.

Also, if you need a generic chat, try Candy (https://candy-chat.github.io/candy/). Again, XMPP-based.

Re:Show HN: Drop-In Chat – Chatify your app by blindwaves on Monday August 04, 2014 @01:15AM (#8130445)
You can take a look at Mozilla's TogetherJS (https://togetherjs.com/). It has a chat functionality and you can host it on your own.
Re:Show HN: Drop-In Chat – Chatify your app by ioddly on Sunday August 03, 2014 @10:06PM (#8129939)
Very nice, I'll be keeping an eye on this. I'm sure you guys have a million other things to do, but don't forget handling multiple tabs by the same user.

e: Ah, and somebody's already trying to inject javascript. You rascals ;)

Re:Show HN: Drop-In Chat – Chatify your app by ahochhaus on Sunday August 03, 2014 @10:14PM (#8129957)
Thanks for the feedback. Please keep it coming if you think of anything else. We will be prioritizing what to work on.
Re:Show HN: Drop-In Chat – Chatify your app by waitingkuo on Sunday August 03, 2014 @11:33PM (#8130185)
I do need a messaging service for my product! Can it be used in production currently? I'm also curious about whether you provide the video conference api in the future or not? That would be useful!
Re:Show HN: Drop-In Chat – Chatify your app by ahochhaus on Monday August 04, 2014 @11:54PM (#8135432)
Hi waitingkuo. Thanks for the encouragement. Currently I wouldn't recommend using Drop-In Chat in a production context as the code is too new and not really stable. When we get to the point we think the product is ready for production use we'll make an announcement.

At this point we do not have plans to add video conferencing support.

Re:Show HN: Drop-In Chat – Chatify your app by lostsock on Sunday August 03, 2014 @07:33PM (#8129538)
I don't have a use for this right now but it looks like a nice and simple solution.

Not that I necessarily think I would need to but is it possible for the webmaster to get logs of the chats?

Re:Show HN: Drop-In Chat – Chatify your app by ahochhaus on Sunday August 03, 2014 @07:35PM (#8129550)
One of the app authors here. We did this for YC hacks and ran out of time (30 hours). At this point we don't store the chats for anything but we plan on adding that soon. At that point, the admin should be able to search.

Please let us know if we can do anything to improve the app for a possible use case for you.

Re:Show HN: Drop-In Chat – Chatify your app by lostsock on Sunday August 03, 2014 @07:39PM (#8129557)
The only thing I can think of right now would be a way to theme it. Just being able to change the colour of the solid bar would be nice.
Re:Show HN: Drop-In Chat – Chatify your app by ahochhaus on Sunday August 03, 2014 @08:01PM (#8129602)
Thanks! We will add CSS styling to the configuration options in the DIC variable. Let us know if you think of anything else.
Re:Show HN: Drop-In Chat – Chatify your app by Walkman on Sunday August 03, 2014 @08:23PM (#8129657)
A public chat channel where everybody can write and read would be nice!
Re:Show HN: Drop-In Chat – Chatify your app by ahochhaus on Sunday August 03, 2014 @08:28PM (#8129674)
Thanks Walkman. That is a good idea. We had thought of group chats and chat rooms but a public "broadcast to all" option is interesting too. Kind of like a default room that everyone is in. Is that what you are saying?
Re:Show HN: Drop-In Chat – Chatify your app by Walkman on Sunday August 03, 2014 @08:31PM (#8129684)
I thought about channels, but the first would be a "public" channel where everybody joins by default and it cannot be deleted.
Re:Show HN: Drop-In Chat – Chatify your app by ahochhaus on Sunday August 03, 2014 @08:42PM (#8129710)
Makes sense, thanks for the clarification.
Re:Show HN: Drop-In Chat – Chatify your app by ahochhaus on Tuesday August 05, 2014 @12:12AM (#8135478)
Sorry for the XSS problems. They are fixed now so it is safe to visit and test again if you like. Thanks owenversteeg for warning everyone.
Re:Show HN: Drop-In Chat – Chatify your app by slig on Sunday August 03, 2014 @08:56PM (#8129740)
This is awesome. I've been searching for a SaaS chat widget like this for years.

Any ideas on pricing?

Re:Show HN: Drop-In Chat – Chatify your app by ahochhaus on Sunday August 03, 2014 @09:02PM (#8129753)
For the time being we are going to keep this completely free to gauge interest. At some point we would likely charge, but at this point don't have solid plans about what the pricing would look like. Sorry I can't be more precise.
Re:Show HN: Drop-In Chat – Chatify your app by svaldez on Sunday August 03, 2014 @11:04PM (#8130113)
Is this similar to http://gochat.us/ ?
Re:Show HN: Drop-In Chat – Chatify your app by misrab on Sunday August 03, 2014 @09:05PM (#8129769)
Hehe built something like this as a small project a while ago for fun...interlude.im
Re:Show HN: Drop-In Chat – Chatify your app by ahochhaus on Sunday August 03, 2014 @09:30PM (#8129847)
Hi, I just checked out interlude. Cool project.

I think the intent of our app is slightly different than yours. Our hope was to allow users of authenticated web applications to chat with one another. Our demo is misleading in this regard as all visitors to dropinchat.com get dropped into a single "chat group" (we din't want users to need to register in order to try it out). We think that apps this product might work well with are enterprise style collaborative applications (where users are already authenticated).

Re:Show HN: Drop-In Chat – Chatify your app by misrab on Sunday August 03, 2014 @09:34PM (#8129856)
Fair enough :) Good luck!
Re:Show HN: Drop-In Chat – Chatify your app by danbucholtz on Monday August 04, 2014 @01:57PM (#8133091)
Very cool app. Needs a little bit of maturing but a really good first step!
Re:Show HN: Drop-In Chat – Chatify your app by ahochhaus on Monday August 04, 2014 @11:51PM (#8135427)
Thanks for the encouragement. What we have is certainly just a first step. We will continue to keep making incremental improvements now that YC Hacks is over.
Re:Show HN: Drop-In Chat – Chatify your app by scrollaway on Sunday August 03, 2014 @08:29PM (#8129679)
What does this use in the backend? Is this xmpp-based? Is it open source?
Re:Show HN: Drop-In Chat – Chatify your app by ahochhaus on Sunday August 03, 2014 @08:34PM (#8129687)
The back end is golang. The client server messaging protocol is BrowserChannel/WebChannel.

https://code.google.com/p/libevent-browserchannel-server/wik...

We open sourced the BrowserChannel library here:

https://github.com/samegoal/wc

And have a chat room demo app here:

https://github.com/samegoal/wcchat

The code we used for this particular site isn't Open Source yet. We are still trying to figure out what we want to do with it before we make that decision.

Re:Show HN: Drop-In Chat – Chatify your app by scrollaway on Sunday August 03, 2014 @10:31PM (#8130013)
Good luck with it. I hope you open source it.

Would you be able to give a rationale on why you chose against xmpp?

Re:Show HN: Drop-In Chat – Chatify your app by ahochhaus on Tuesday August 05, 2014 @12:04AM (#8135449)
Hi scrollaway. Thanks for the support.

XMPP seems really great in a context of needing to inter-operate with other servers. However, for our use-case all communication was in a silo of a single site so this was not a major benefit to Drop-In Chat.

Our team wants broad broad browser support (for legacy corporate deployments) and a well-tested client side module. BrowserChannel, which is used for gmail chat, is very widely deployed and well tested.

Maybe I'm missing something, but even if we went with XMPP, wouldn't Drop-In Chat still need a way to stream messages from the server to the client? If so, we would still need to rely on a transport mechanism like websockets/XHR streaming/forever iframes for the in-browser real time message delivery. BrowserChannel/WebChannel bundles up this abstraction nicely and hides all the ugliness of dealing with browser quirks for streaming message delivery.

Re:Show HN: Drop-In Chat – Chatify your app by scrollaway on Wednesday August 06, 2014 @01:55PM (#8143829)
Sure, but BrowserChannel is only relevant on the client. What about the server? Using XMPP would allow for external clients to connect for example.
Re:Show HN: Drop-In Chat – Chatify your app by ahochhaus on Thursday August 07, 2014 @11:13AM (#8148091)
I agree. If at some point dropinchat.com allowed for messaging between networks XMPP support would be great to add. At this point we only allowing for messaging other drop in chat users so no such protocol is needed. My only point was that we didn't "reinvent the wheel" by not using XMPP. Instead we just don't allow cross network messaging yet.
Re:Show HN: Drop-In Chat – Chatify your app by chatango on Sunday August 03, 2014 @09:03PM (#8129755)
Do you guys know about https://chatango.com ? It's a more mature product, also based on Go backend. Founder here, so please ask any questions.
Re:Show HN: Drop-In Chat – Chatify your app by ahochhaus on Sunday August 03, 2014 @09:36PM (#8129860)
I looked at chatango and I think the intended use case is a bit different than dropinchat. Drop-in chat provides user-to-user instant messaging. As best I can tell, chatango (primarily?) provides broadcast style communication. Is this correct?
Re:Show HN: Drop-In Chat – Chatify your app by chatango on Sunday August 03, 2014 @10:46PM (#8130057)
Chatango is primarily focused on group chats, but you can send private messages as well. Dropinchat.com mentions "chat groups". Are they only for user-to-user messages?
Re:Show HN: Drop-In Chat – Chatify your app by ahochhaus on Tuesday August 05, 2014 @12:09AM (#8135468)
At this point dropinchat.com does not support sending messages to more than one user. However, we do plan to add that feature as our team has time.

The documentation on dropinchat.com mentions "groups" as a set of users which are allowed to see one another and message back and forth. Our team thinks this use case might be helpful, for example, for a website administrator to limiting communication between members on a given organizational team or individuals in a certain building, etc.

Re:Show HN: Drop-In Chat – Chatify your app by jpkeisala on Monday August 04, 2014 @04:15AM (#8130784)
Frontpage talks about chat and opportunity to get wife from Asia. Maybe you should consider go down a bit with ads?
Re:Show HN: Drop-In Chat – Chatify your app by rubiquity on Sunday August 03, 2014 @09:53PM (#8129901)
Oh it's written in Go? That's so cool! Can you tell us more? Maybe do a Show HN some time.
Re:Show HN: Drop-In Chat – Chatify your app by parad0x1 on Sunday August 03, 2014 @09:04PM (#8129761)
Shameless advertising much?

Also joined 2 mins ago.

[deleted]
Re:Show HN: Drop-In Chat – Chatify your app by parad0x1 on Sunday August 03, 2014 @09:06PM (#8129777)
More shameful as it's hijacking it.
Re:Show HN: Drop-In Chat – Chatify your app by dustintran on Sunday August 03, 2014 @09:16PM (#8129805)
Shameless hijacking and also just not as good..