Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save thesp0nge/5a0f73b2102aed1769e669af518a27fc to your computer and use it in GitHub Desktop.
Save thesp0nge/5a0f73b2102aed1769e669af518a27fc to your computer and use it in GitHub Desktop.
spot_the_vuln_4
FileInputStream fileIn = new FileInputStream("data.ser");
ObjectInputStream in = new ObjectInputStream(fileIn);
Object obj = in.readObject();
in.close();
if (obj instanceof MyClass) {
MyClass myObj = (MyClass) obj;
// Operazioni su myObj
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment