To replace Extract, huh?

Asked

Viewed 36 times

0

Analyzing an application with the RIPS tool, I found that the main menu part uses these functions below and is extremely vulnerable:

extract( $_POST );
extract( $_GET );
extract( $_SESSION );

Which is the best way to replace these functions above without interfering with the application ?

  • Would have to do the assignments manually or depending on the code isolate it in a function with the extract() at least this reduces the scope of the variables.

  • have some example that can help me ?

  • the simplest example would be $nome = $_POST['nome'], is a lot of code?

  • yes, has in several files .

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.