The United Nations on Friday accused Nepal's army of torturing people detained in its war against Maoist rebels.