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

Block one more gadget type (jodd-db, CVE-2018-12022) #2052

Closed
cowtowncoder opened this issue May 29, 2018 · 2 comments
Closed

Block one more gadget type (jodd-db, CVE-2018-12022) #2052

cowtowncoder opened this issue May 29, 2018 · 2 comments
Labels
CVE Issues related to public CVEs (security vuln reports)
Milestone

Comments

@cowtowncoder
Copy link
Member

cowtowncoder commented May 29, 2018

There is a potential remote code execution (RCE) vulnerability, if user is

  1. handling untrusted content (where attacker can craft JSON)
  2. using "Default Typing" feature (or equivalent; polymorphic value with base type of java.lang.Object
  3. has jodd-db (https://jodd.org/db/) jar in classpath
  4. allows connections from service to untrusted hosts (where attacker can run an LDAP service)

(note: steps 1 and 2 are common steps as explained in https://medium.com/@cowtowncoder/on-jackson-cves-dont-panic-here-is-what-you-need-to-know-54cd0d6e8062)

To solve the issue, one type from Jodd database component is blacklisted to avoid their use as "serialization gadgets".

Original vulnerability discoverer:
吴桂雄 Wuguixiong

Fixed in:

  • 2.9.6 and later
  • 2.8.11.2
  • 2.7.9.4
  • 2.6.7.3
@cowtowncoder cowtowncoder added the CVE Issues related to public CVEs (security vuln reports) label May 29, 2018
cowtowncoder added a commit that referenced this issue Jun 1, 2018
…gadgets, but they seem suspicious enough to block tentatively
@Boaz20
Copy link

Boaz20 commented Jun 6, 2018

@cowtowncoder - what was your finding here is it really an issue and if yes - are you planning to fix it in the upcoming 2.9.6 release?

@cowtowncoder cowtowncoder changed the title CVE (id to be allocated): LDAP-backed data source gadgets CVE-2018-12022: Block polymorphic deserialization of types from Oracle JDBC driver Jun 8, 2018
@cowtowncoder
Copy link
Member Author

cowtowncoder commented Jun 8, 2018

Fix committed earlier as:

https://github.com/FasterXML/jackson-databind/commit/7487cf7eb14be2f65a1eb108e8629c07ef45e0a1

and is included in versions:

  • 2.7.9.4
  • 2.8.11.2
  • 2.9.6

once released.

@cowtowncoder cowtowncoder changed the title CVE-2018-12022: Block polymorphic deserialization of types from Oracle JDBC driver CVE-2018-12022: Block polymorphic deserialization of types from Jodd-db library Jun 8, 2018
cowtowncoder added a commit that referenced this issue Jun 8, 2018
@test88d test88d mentioned this issue Apr 8, 2019
This was referenced Jun 25, 2019
@cowtowncoder cowtowncoder changed the title CVE-2018-12022: Block polymorphic deserialization of types from Jodd-db library Block one more gadget type (jodd-db, CVE-2018-12022) Sep 12, 2019
ablekhman added a commit to atlassian/jackson-1 that referenced this issue Oct 23, 2019
@cowtowncoder cowtowncoder added this to the 2.9.6 milestone Dec 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CVE Issues related to public CVEs (security vuln reports)
Projects
None yet
Development

No branches or pull requests

2 participants