> I've already made some comments about rewriting it and the response was basically "ok".
This means that the person in charge of the code is probably aware of its shortcomings.
> The person in charge of this project was working on it alone
This suggests that probably the codebase started out in a neat form and became messy over time due to understaffing/bad planning/feature creep. There is only so much he/she could do as an overworked single dev having to manage a large system.
Your senior is probably very happy to have another dev helping with this. I wish I had someone helping me. Take it as an opportunity, dealing with legacy is a challenge but you can grow a lot as a developer!