Welcome to HCM,
It seems that your son might have Diaper rash
and among these rashes there might be some infection giving rise to a lump.
Apply some antihistamine cream on the part.
If require give some antihistamine syrup for few days.
Keep local part dry and healthy.
Do not keep one diaper for long time and frequently go on changing.
ok and bye.