I heard of the attacks Cross Site Scripting (XSS: An attack where an attacker injects malious client side code (For example: JavaScript) into a web application.) and Cross Site Request Forgery (CSRF: An attack where an attacker tricks an already authenticated user of a web application into sending a forge request to that vulnerable web app.) Mostly in a CSRF attack the hacker will create a site which when someone visits it or do some action a request will be sent in the background. But, what if the attacker uses a site with a XSS vulnerability and adds the request code to that site so the attacker is using someone else's site as the trigger for the forge request.
I will like to know can this happen and is there any good reason to do this?