Cryptanalysis of a quadratic knapsack cryptosystem