Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement serialVersionUID + prefix to payload options #189

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

fl0l0u
Copy link

@fl0l0u fl0l0u commented Jun 29, 2022

  1. Implements Option to override serialVersionUID #182 by overwriting final payload bytes.
    Attempts to implement a cleaner override using Unsafe or Reflection failed on Object with undefined serial.
    Usage -s org.apache.commons.beanutils.BeanComparator=-3490850999041592962
  2. Adding feature for prepending arbitrary data to payload.
    Example payload generated with -p writeUTF=foo -p writeBoolean=true will reach gadget chain deserialization on following code:
String componentId = ois.readUTF();
boolean cancelAction = ois.readBoolean();
ComponentAction action = (ComponentAction) ois.readObject();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant