those are nasty.. get some rail covers it will be cheaper then if you were to repair it properly.
you could just buy some touchup paint and give it the slumlord swing like most people do. Lol.
either way, you should put something on them, to protect the metal from rust and the surrounding paint from further damage.
carwax,paint,rail covers, anything like that.