Interface developers and security
You live in a new era, when demanding that people register on your site is no longer enough. There's far too many other sites out that that you're already a member of, you don't need another one. You need to trust people.
You also want people to contribute to your sites with content somehow. Text is not enough, you want all kinds of "rich" content, and you want people to be able to place them how they want on your page. I mean, we live in a new era after all.
Problem is, this new era thingie talk makes people forget the basics. Even though this is the future, and we're all bored with "just" hypertext, we can't allow random people to add HTML to our sites. Why? Ask myspace about the Samy worm from 2005, a little piece of clever front-end code that took their servers flying. What did they do wrong? They tried to let untrusted people embed HTML on their profile pages.
But they even had this clever filter, which cleaned the code first! Well, long story short, using a div with the style attribute set to a background image that points to a javascript url actually execute the javascript in IE6. Didn't think of that did you? So what about the fact that both IE6 and IE7 execute vbscripts in urls prefixed with "vbscript:", just like with javascript. Didn't know that? Ohhh. Perhaps then you shouldn't be trying to let unknown people embed HTML on your site?
Many of these security issues stem from the fact that ordinary well-educated computer scientists don't know enough about interface development, HTML, CSS and javascript, and discount them as being something that "anyone" could do. "Even my aunt made this puppy site in like 3 days, how hard can it be?!".
I've always thought that interface development have an undeserved reputation of being easier than "real programming"; something that you can let rookies work with, something that no "real" programmer would ever want. "No, I want to work with hard stuff, not that webby stuff".
If you are in a position where people actually think that, perhaps security could be the way to lift interface development to its proper status. So why not read up on Cross Site Scripting (XSS), look at examples of vulnerabilities, and pick a couple of examples of big sites that are vulnerable. While you're at it, why not read up on Cross-site request forgery (CSRF) too?
These are real issues that someone needs to take into account when building websites. My guess is that the fancy computer scientists will have a very long way to go before grasping this stuff. "Why does IE6 parse 'java script:' as if there where no space in the middle?". You know who's not surprised? Every damn interface developer out there.
So. Go out there, and teach them silly math people how it's done, and what your HTML, CSS and javscript-knowledge is worth. Show them that logic isn't the way we do things around here, that anything can happen when IE6 boots. And… whatever you do… think very hard before letting people embed HTML on your site.
Comments
By: Robert Nyman (#1)
By: Ajit Burad (#2)
By: Emil Stenström (#3)
By: Krijn Hoetmer (#4)
By: Emil Stenström (#5)
By: Lewis Litanzios (#6)
I check out the W3C's browser stats on almost every new project I undertake for clients these days, and dread the cross-browser work I 'have' to do for the likes of IE (Surprisingly Opera renders really poorly these days too).
It's just nice to see that almost 1-in-2 people on the internet now are using Firefox :]
Good post, again, Emil.
By: Emil Stenström (#7)
Concerning cross-browsers stuff: my last project was actually one where I didn't have to build for IE6, which made it a lot less painful for everyone involved. I hope everyone could have that pleasure, always.
By: Pelle (#8)
By: Lewis Litanzios (#9)
Code to standards and everything will be OK.
On a side note: Disappointed to see you cut my last post out here Emil. I know it contained a link to my 'new' folio, and you probably interpreted it as spam, but I was really after some feedback. Believe it or not I care what you think :/
PS. Really interesting, that article, on the Samy worm - do you understand all that code? I don't.
By: Emil Stenström (#10)
About the folio link: I removed the link because I thought it was out of context. Comments are about comments to a main article. As this site is growing (over 2000 RSS subscribers!) I'm thinking of adding an optional part where other people can post their articles or sites, and ask for feedback. A request for feedback on a portfolio would fit perfectly there.
By: Lewis Litanzios (#11)
Fair point regarding the comments. It's your blog, you do what you want with it. I think a feedback/general comments section tagged onto the end of every post would be a good addition (if not a potentially time consuming one for you Emil :P).
Have a good day mate!
By: Emil Stenström (#12)
By: Mark De Verno (#13)