Wow, so sad someone would leave a chameleon like that.. :(
The white butt stuff could be sperm plugs, they come out when males poop and sometimes get stuck on their butts for a bit.
I would buys some big plants, like a ficus, so he has some comfortable branches to chill on.
Good luck!