This is just a wild guess, I've never seen it in snakes, but I have in lizards, a fecal burn. Where they drag their tails through crap, and it becomes stuck between the scales where the acids and bacteria start to inflame then infect the tissue.
I lost a Uromastyx to this about 14 years ago after the injury went septic.