ysoserial VS Logback

Compare ysoserial vs Logback and see what are their differences.

ysoserial

A proof-of-concept tool for generating payloads that exploit unsafe Java object deserialization. (by frohoff)

Logback

The reliable, generic, fast and flexible logging framework for Java. (by qos-ch)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
ysoserial Logback
13 20
7,291 2,893
- 0.7%
0.0 8.7
29 days ago 5 days ago
Java Java
MIT License GNU General Public License v3.0 or later
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

ysoserial

Posts with mentions or reviews of ysoserial. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-12-23.
  • anybody got ysoserial to work in kali 2022 running java v17?
    1 project | /r/oscp | 24 Jun 2023
  • Java deserialization payloads in log4j (Unified starting point)
    3 projects | /r/hackthebox | 23 Dec 2022
    So I've finished the unified box in stage 2 of the starting point and have tons of questions about the box. In the box they use veracode-research/rogue-jndi to exploit the log4j vulnerability. But when I test it with deserialize payload generated by frohoff/ysoserial it's not running. I've try to look at the java log in the challenge container but can't find anything that java complain or error out. Is it because the ysoserial payload too complex that it running but fail at some point and don't throw error or maybe the author just hard code so that only the payload from rogue-jndi work? can it's because of the java version/framework/library/weirdness? Do I need to test both kind of payload if I want to exploit log4j in the future or just stick with pimps/JNDI-Expoit-Kit or cckuailong/JNDI-Injection_Exploit-Plus (my senior recommendation when exploiting log4j).
  • An Unsafe Deserialization Vulnerability and Types of Deserialization
    2 projects | dev.to | 10 Dec 2022
    GitHub - Ysoserial
  • Great Time at JavaZone 2022
    3 projects | dev.to | 14 Sep 2022
    A gadget lets you run load a different class upon serialization. This will fail later when we downcast but during the read process we can load a different class where we can do arbitrary code execution. HashMap is a class that overrides the readObject and can be used as part of an exploit chain. ysoserial helps us create a chain of serialization to produce an exploit based on known serialization weaknesses. You can run this project and generate payload ser files that you can pass to exploit potential vulnerabilities.
  • PoC tool for creating payloads that exploit unsafe Java object deserialization
    1 project | news.ycombinator.com | 28 Aug 2022
  • Is Java as safe as we believe?
    1 project | dev.to | 20 Apr 2022
    gadget chain attack: is a type of exploit where an attacker uses a series of "gadgets" — small pieces of code that perform a specific function — to execute a larger, more complex attack. By chaining together these gadgets, an attacker can gain control of a target system or perform other malicious actions. You can use ysoserial to create a serialize payload java -jar path/to/ysoserial.jar CommonsCollections4 'whoami'
  • Is Haskell a Good Choice for Software Security?
    2 projects | news.ycombinator.com | 17 Dec 2021
    > A similar issue has occurred with Java (and other languages, see https://frohoff.github.io/appseccali-marshalling-pickles/). Java provided a suberbly user-friendly way of serializing any object to disk and recovering it back in its original form. The only unfortunate problem was that there was no way to say which object you are expecting! This allows attackers to send you objects that, upon deserialization in your program, become nasties that wreak havoc and steal data.

    Not correct. You can certainly inspect before instantiation:

    https://docs.oracle.com/javase/7/docs/platform/serialization...

  • Log4j 2.15.0 – Previously suggested mitigations may not be enough
    7 projects | news.ycombinator.com | 16 Dec 2021
    Mmh, I don't think so. Beside logging most other libraries will already sanitize user input since it is a more commonly known attack vector for those kind of libraries. I would compare the vulnerability to https://github.com/frohoff/ysoserial.
  • Analysis of the 2nd Log4j CVE published earlier (CVE-2021-45046 / Log4Shell2)
    11 projects | news.ycombinator.com | 14 Dec 2021
    Exactly. eg. https://github.com/frohoff/ysoserial#usage

    Note the classes aren't at fault or doing anything wrong (even though you could imagine other mitigations they could use), they are just conveniently there to use if you have a vulnerability that lets you de-serialize untrusted data.

  • RCE 0-day exploit found in log4j, a popular Java logging package
    9 projects | /r/programming | 9 Dec 2021
    This has been known for a zillion years and has caused a zillion CBEs, so at this point there are off-the-shelf tools like ysoserial that take your payload and wrap it into an object that kabooms when deserialized, with like 20 different choices of methods depending on what dangerous objects are available on the target's classpath for deserialization.

Logback

Posts with mentions or reviews of Logback. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-02-22.
  • JHipster 8 - Analisando o código da nossa primeira aplicação monolítica - Parte 1/3
    1 project | dev.to | 28 Apr 2024
  • Logging in your API
    13 projects | dev.to | 22 Feb 2023
    Java -> Logback, Log4j2, JDK (Java Util Logging), Slf4j, e.t.c.
  • Spring Boot logging with Loki, Promtail, and Grafana (Loki stack)
    5 projects | dev.to | 6 Jan 2023
    This is a GitHub link to my demo app. It’s simple Spring Boot web app used to debugging various stuff. There are many ways to configure JSON logging in Spring Boot. I decided to use Logback because it is easy to configure and one of the most widely used logging library in the Java Community. To enable JSON logging we need to add below dependencies.
  • 5 Best Logging Solutions for Java
    2 projects | dev.to | 5 Oct 2022
    Logback(https://logback.qos.ch/) is another non-commercial Java logging framework. It labels itself as a successor to the previously discussed Log4j framework.
  • Log4j: The Pain Just Keeps Going and Going
    8 projects | news.ycombinator.com | 20 Jul 2022
    > Then apache decides to put new people on log4j, do a backward incompatible v2 design that nevertheless is worse than slf4j. Why?

    slf4j itself isn't a logging framework. It's a facade to logging frameworks.

    Simple Logging Facade for Java ( https://www.slf4j.org )

    It needs a logging framework behind it - log4j, log4j2, logback, commons, JUL.

    The question is "why do log4j2?"

    Logback went from the log4j1.x path ( https://logback.qos.ch )

    Log4j2 has a lot of features that weren't present when the project started ( https://en.wikipedia.org/wiki/Log4j#Apache_Log4j_2 ).

    There is a licensing difference between Logback (LGPL) and Log4jx (Apache Commons).

  • E2E-Testing in CI Environment With Testcontainers
    3 projects | dev.to | 21 Jun 2022
    Also, I'd like you to pay attention to the log consumer. You see, when the E2E scenario fails, it's not always obvious why. Sometimes to understand the source of the problem you have to dig into containers' logs. Thankfully the log consumer allows us to forward a container's logs to any SLF4J logger instance. In this project, containers' logs are forwarded to regular text files (you can find the Logback configuration in the repository). Though it's much better to transfer logs to external logging facility (e.g. Kibana).
  • 🛡️ This is how we maintain & release Secured Software on Github 🤖
    6 projects | dev.to | 9 May 2022
  • Creating an interface
    1 project | /r/javahelp | 5 May 2022
  • How to Check if a Java Project Depends on A Vulnerable Version of Log4j
    8 projects | dev.to | 20 Dec 2021
    This shows that the MariaDB JDBC driver uses Logback as a logging framework. Although Logback is not affected by Log4Shell, it has a related vulnerability (of much lesser severity, no need to panic) fixed in version 1.2.8 and 1.3.0-alpha11. I checked the version used by the connector and found that it used 1.3.0-alpha10. Even though Logback is included as a test dependency in the MariaDB driver, I sent a pull request on GitHub to update it. I encourage you to do the same in any open-source project you find and that includes a vulnerable dependency.
  • Migrating off of Log4j 2.x
    3 projects | dev.to | 19 Dec 2021
    Dependencing on the project, changing the logger might range from easy peasy to a multi-week task. I'm ready to bet that in many (most?) cases, it'd actually be quite easy, so let's explore how to do it, using Logback as the target (there aren't that many alternatives actually).

What are some alternatives?

When comparing ysoserial and Logback you can also consider the following projects:

jsoniter - jsoniter (json-iterator) is fast and flexible JSON parser available in Java and Go

Apache Log4j 2 - Apache Log4j 2 is a versatile, feature-rich, efficient logging API and backend for Java.

log4shell-ldap - A tool for checking log4shell vulnerability mitigations

Logbook - An extensible Java library for HTTP request and response logging

log4shell-tools - Tool that runs a test to check whether one of your applications is affected by the recent vulnerabilities in log4j: CVE-2021-44228 and CVE-2021-45046

Logstash - Logstash - transport and process your logs, events, or other data

tinylog - tinylog is a lightweight logging framework for Java, Kotlin, Scala, and Android

PHP Serializer - A Java library for serializing objects as PHP serialization format.

FizzBuzz Enterprise Edition - FizzBuzz Enterprise Edition is a no-nonsense implementation of FizzBuzz made by serious businessmen for serious business purposes.

Arthas - Alibaba Java Diagnostic Tool Arthas/Alibaba Java诊断利器Arthas

graylog - Free and open log management