I don't know if this is safe for chameleons, but I know with ringworms on humans and worms that are directly below the skin, if you place nailpolish over it it will suffocate the worms.
Ringworm is a dermatophyte (fungus), not even a worm. That's an old wivestale that doesn't actually work btw.