I gave chatgpt a try and it blew up my mind already. I entered a code with multiple vulnerabilities and asked to scan it and provide me a code snippet with all the vulnerabilities and their fixes. Here's the result.