Git Product home page Git Product logo

Comments (3)

HelloCoCooo avatar HelloCoCooo commented on June 7, 2024

Code snippet of javassist.bytecode.ConstPool.addUtf8Info in javassist:javassist:3.12.0.GA (shadowed but expected to invoke method):

public int addUtf8Info(String utf8) {	//line 899
  Utf8Info info = (Utf8Info)strings.get(utf8);
  if (info != null)
    return info.index;
  else {
    info = new Utf8Info(utf8, numOfItems);
    strings.put(utf8, info);
    return addItem(info);
  }
}

Code snippet of javassist.bytecode.ConstPool.addUtf8Info in org.javassist:javassist:3.18.2-GA (loaded version):

public int addUtf8Info(String utf8) {	//line 1066
  return addItem(new Utf8Info(utf8, numOfItems));
}

As a result, these conflicting method included in javassist:javassist:3.12.0.GA deals with different cases, which changes the control flows and data flows. So being forced to use these methods in org.javassist:javassist:3.18.2-GA may lead to inconsisitent semantic behaviors.

from fastjsonexploit.

HelloCoCooo avatar HelloCoCooo commented on June 7, 2024

Using the following test case to run on these two versions of methods separately starting from the entry method gadget.getBasicDataSource1ExpCode() in your project, then we can find the return value of getBasicDataSource1ExpCode() is changed.

Test for FastjsonExploit.txt

Please check whether the changes of this variable value will affect your semantic behaviors.

from fastjsonexploit.

c0ny1 avatar c0ny1 commented on June 7, 2024

@HelloCoCooo Yes, I will refer to it!

from fastjsonexploit.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.