It’s assembly glue.
If it flaked off and things work, forget it.
IF you had electronic skills and IF it was a worthy unit, recap may be a good move but there is no reason to do that because of this.
FWIW, in the 100s of units I’ve worked on, I have never seen electrolyte “leak” and look like that.
I only know of a couple units that used a liquid electrolyte capacitor with enough fluid to actually flow out. 999/1000 capacitors that have “leaked” (vented) are not visible while installed. Big filter cap vent holes can be seen but board mount caps hide the situation.
Physical leaking is pretty rare.
Venting is more common and shows up as some white corrosion on the legs or in the vent hole on large caps.
DC leaking is the most common thing and/or ESR problems. Old caps can’t hold the DC they are supposed to, and the circuit starts to fail it’s duty.