Everyone agrees we should give to charity but not that many people do. In the same way everyone agrees we should write secure software but I’ve seen again and again web applications that you could break with a Swiss army knife and a bent paper clip. I think part of the problem that security advice seems overwhelming and hectoring. Reading the recent list of CWE/SANS Top 25 Most Dangerous Programming Errors is like been nagged at by your office manager. I can’t disagree but I can’t take in anymore.
The best way to know and appreciate something is to see it. CTW-259 warns of hardcoded passwords. It was only when I downloaded reflector that I realised how much of a problem this was.
Consider this fragment of a class
The best way to know and appreciate something is to see it. CTW-259 warns of hardcoded passwords. It was only when I downloaded reflector that I realised how much of a problem this was.
Consider this fragment of a class
public class TestClass
{
private string _password = "supersecretpasswordnoonecansee";
private int _testInt;
/// <summary>
/// Test Int
/// </summary>
public int TestInt
{
get { return _testInt * 6; }
}
//etc....
}
That password is secure as houses when complied. Well once it’s loaded into Reflector and disassembled then probably not 
That took me about 30 seconds to break. Reflector is a free download so it’s not even costly for the hacker. Bit more costly for the victim though.