Antville Project

Login/Logout - its not a bug its a feature

This is more or less a design and cross-site-scripting issue: The login page should be a standalone page and not modifyable within the skins of a blog. Everybody with proper knowledge in DHTML, Javascript is able to logout a user and maybe forcing a subscriber to relogin on the modified blog. Redirect the username and password to another server and redirect it back to antville. If the login-page (template, snippet) is not changeable, it would be no problem at all within the login-skin. It is still possible within all skins to login, logout, and redirect, but it should not be possible within the login-skin.

In this case antville needs to step back to a central sign-on that is trustworthy.

Solution: skins/edit?proto=membermgr&name=login should be not modifyable within a blogs skin.

My point of view is, the login-procedure should be somewhat trusted and not changeable/accessable within a users skin.

Suggested workaround: never ever login on another blog. If you don't have a blog, thats mmhhh say: bad luck - or a lesson in trust - you can use mine. (o;

comment    

 
hns, November 17, 2002 at 6:37:43 PM CET

Re: Login/Logout - its not a bug its a feature

Yes, we know. It's a risk vs. feature tradeoff. There is a safe login at the server level, but we want to provide integral look and feel for antville weblogs, meaning users should not have to leave a weblog to perform anything involving that weblog.

All in all, your proposal to not allow editing the login skin seems like the best compromise solution for a site like antville.org. I've implemented it in a hotfix (Robert, do you want that it CVS, too?).

Mind that it's not 100% secure either, because people will always be able to display a fake login form that non-expert users will mistake for the real thing. You do have to have some amount of trust in your users if you do this kind of flexible hosting. And we've been very lucky with our users, if I may say so. (I just checked the existing modified login skins ;-)

Thanks for the reminder.

link  

 
robert, November 17, 2002 at 7:45:01 PM CET

Re: Re: Login/Logout - its not a bug its a feature

thanks for the hotfix, hns (please commit it to cvs). nevertheless i think we have to tighten the login-procedure in antville, and possibly some features have to vanish. and thanks to nosleep for your posting.

link  

 
nosleep, November 17, 2002 at 8:21:22 PM CET

Re: Re: Login/Logout - its not a bug its a feature

Thank you for the quick response. Cross site scripting has been an issue with many applications which use the cgi, and a faked login on another server is a different approach as a customized one the same server - imho. Since antville allows users to modify and enhance the look and feel of their blogs its quite impossible to overcome this issue (scanning the modified skins is an issue even if you use heuristic or other ways to detect them). One option is to deny custom forms - even worse. Another option is a SSL/TLS secured central login (even bad, you can still spoof certificates, people are still not aware of that, it won't help either). A nice try would be a form with a one-way hashed value as hidden tag inside a server generated login form (that isn't customizeable) i.e. <% logmein %> and the hash value is checked within the login to overcome spoofing and issue an alert if the value is missing - I have to put on my thinking cap to make it bulletproof. I am still to lazy to check out the source and step into more details of antville (I still have some issues about search-engine optimization, and the whole page-creation process but I am sure you guys don't like to hear this (o;), my apologies for that.

Its always hard to implement trust in an open enviroment where subscribers are able to modify many paramters. I will think about it, maybe there is a way to implement it or to put it in other words: Insisting on perfect safety is for people who don't have the balls to live in the real world. -- Mary Shafer, NASA Ames Dryden

link  

 
nex, November 17, 2002 at 8:38:53 PM CET

Re: Re: Login/Logout - its not a bug its a feature

IMO that approach isn't any good. it's nice of nosleep to document the issue and of you to try to prevent abuse, but you simply can't prevent a weblog creator who's allowed to integrate HTML without restrictions from fooling his visitors. restricting features will definitely annoy blog owners who lose control over their creations, but it won't help protecting innocent visitors, because a workaround that will still fool many of them can always be implemented.

a better approach would be educating the users. for example, making them log in at the "safe server-level login" by default and putting a message there that warns them of loging in anywhere else, and/or generally putting a little explanation on the login pages. because no matter what you do, it's always up to the user to check the url when logging in. anyone can clone the exact look of the "safe login", except fot the exact url. what you can do is pay attention to reports of malicious behaviour, ban malicious users and try to reverse any damage they've done. what you certainly can not do is provide a significant security improvement without employing siginificantly more secure technology (like kerberos or something, which cannot be properly integrated with the present-day browsing look&feel anyway).

update: in reply to nosleeps new comment: you provided some very good and usable ideas there, but in order to make them work several more restrictions would have to be implemented. one of them would have to be banning links to other sites, because i can always put a clone of part of my blog on another site.

link  

 
nosleep, November 17, 2002 at 9:44:16 PM CET

Re: Re: Login/Logout - its not a bug its a feature

Delivering clue to users is a possible solution, you are very right. I am still trying to solve a social issue with a technical solution. And yes, I like it. (o; Kerberos isn't a solution and won't integrate into antville, thats clear even without knowledge about the source. I am thinking about a solution that does not interfere with antville and makes it not possible to spoof a login on a malcious blog thats all, thats not easy, maybe a simple cookie with a fixed location in the URI or another token helps to solve the issue, maybe I should get the source. I am still thinking on it.

Nobody can protect you from someone that clones your blog and spoofs your blog externally, thats not the goal, the goal is to make it impossible to use custom forms within the login procedure, thats all. External spoofing is not to overcome. I find this problem quite intresting, maybe there is no solution - but I don't think so at the moment.

link  


... comment
 
mutant, November 19, 2002 at 10:06:09 PM CET

i dunno

if i's related to this thread, but since it appeared today for the first time and definetly is related to login: since this morning the cookie thing seems to be broken. everytime i close my browser, i'm logged out and have to login again next time i start antville... koerser also has this problem and no, we didn't tinker with the cookie management in our browsers(at least i didn't..).

link  

 
seewolf, November 19, 2002 at 10:11:28 PM CET

same thing

at home and in the office.

link  

 
Chronistin, November 19, 2002 at 10:19:23 PM CET

experienced this too...

but it may have been just a couple of restarts. it's all working fine now.

link  

 
seewolf, November 20, 2002 at 3:20:49 PM CET

No, Ms. Chronistin

Cookie doesn't work.

link  

 
robert, November 21, 2002 at 2:00:14 AM CET

you're right

we had to do some changes regarding the the remember-me feature. tomorrow i'll explain why it doesn't work anymore under certain circumstances. sorry, but i'm too tired now.

link  


... comment


The Antville Server Fund has been a great success. Thanks to everybody who contributed!
online for 8549 Days
last updated: 1/4/11, 10:22 AM
status
Youre not logged in ... Login
menu
November 2024
SunMonTueWedThuFriSat
12
3456789
10111213141516
17181920212223
24252627282930
July
recent
zfuture's house here is zfuture's
house
by zfuture (7/31/03, 2:59 AM)
i understand your concerns however,
i hardly can think of a solution. certainly, if the...
by tobi (7/29/03, 9:47 AM)
Found several more similar sites
listed This is getting to be quite a concern to...
by cobalt123 (7/27/03, 7:56 PM)
Second Post Alert on Referrer
bug livecatz I put this into "help" and now here:...
by cobalt123 (7/26/03, 7:14 PM)
well it's not easy to
find from here, anyway. think we should include a link,...
by tobi (7/24/03, 11:25 AM)
So finally I found
the helma Bugzilla - stupid me.
by mdornseif (7/24/03, 10:28 AM)
clock not that it's particularly
earthshattering but the antclock is running slow by about 15...
by kohlehydrat (7/23/03, 8:25 PM)
but blogosphere.us isn't can't really
be rated as spam can it?
by kohlehydrat (7/23/03, 8:08 PM)
More referrer spam www.webfrost.com
by Irene (7/23/03, 7:55 PM)
How to log skin names
I accessed to console?? Hi, I would like to know...
by winson (7/23/03, 4:12 PM)

Click here to get an XML version of this weblog.

Made with Antville
powered by
Helma Object Publisher