I have a website where I have three scripts, django, wordpress and question2answer installed in different subdirectories, uses different databases. All authentication is handled by django and django creates login cookies for wordpress and question2answer(bridge) and logs into entire site without any hacks on wordpress and question2answer side.
What i want to know is generally if one of these gets hacked, then will my other databases and subfolders will be protected. like will the hack be contained within the subdirectory and database or will it be site wide hack.(I mean what is the case in most hack incidents)
one approach to solve this is to move them to subdomains and point to different servers with remote sql allowing database access from django. But some people are of the opinion that moving to subdomains causes problem like we have to work twice as hard for seo building since they are different subdomains? (What is the truth?)