That is a casting core plug just like in an engine which in that case is sometimes called a freeze plug. This is a cup that is expanded in a hole machined in the casting. To replace you would have to take everything apart and typically would replace the seals, etc. all at the same time. Also sleeve the cylinder if required. Or as an alternate buy a complete new master cylinder which I believe are available.