cgi script

Hello,
we have an extranet where every user has a password and a username. Some powerusers must have the possibility to access data of all the users without knowing their password. The powerusers must know the username. We want to use a form for this where a poweruser just gives the username. Then a new browserwindow must be opened with all the data from that specific user.
Is there a possibility to bypass some security issues with a cgi-script that is not written in perl or c?
The website is built with frames

Thanks