3 ms·
Actually, at work I am currently engaged in a bit of a war to convince people that outputting HTML is not easy and in fact is quite challenging to get correct m
by jerf 16y ago
Actually, at work I am currently engaged in a bit of a war to convince people that outputting HTML is not easy and in fact is quite challenging to get correct manually. Because people who think outputting HTML is as simple as printing out the tags write cross-site scripting attacks by the dozens. Arbitrary command injections and SQL injections follow just behind.
Outputting something that looks like HTML enough to please a browser is easy. Outputting correct HTML that isn't a CERT entry waiting to happen is actually very hard.
Though this still boils down to an argument that you ought to know what you're doing at the base level of what's going on, when I see people just slamming out HTML in string concatenations and variable insertions I generally consider that evidence that they only think they know what's going on, not that they actually do. If you aren't using some sort of safe+sane HTML generation wrapper you're suicidally betting on having superhuman levels of discipline if you expect to not write security holes.
- enduser 16y agoWhile one can't count on superhuman levels of discipline, correctness (i.e. discipline) is still a trait to look for. Rapid development goes faster if programmers are not rapidly iterating over their logical/structural mistakes.