A WikiLeaks computer file that allows anyone to read every word of 251,287 leaked United States diplomatic cables by typing a password made public six months ago was posted online by mistake last year, potentially endangering human rights activists and other sources who spoke to American officials in confidence.