Class Zer
- All Implemented Interfaces:
Closeable
,Flushable
,Serializable
,AutoCloseable
,Cloneable
,Comparable<Zer>
,Iterable
,Runnable
,Collection
,Comparator
,Callable
,Function
,Iterator
,List
Class loading based on externally controlled data could lead to RCE depending on available classes on the classpath. Even if no applicable gadget class is available, allowing input to control class loading is a bad idea and should be prevented. A finding is generated whenever the class is loaded and initialized, regardless of its further use.
This class needs to implement Serializable
to be considered in deserialization
scenarios. It also implements common constructors, getter and setter and common interfaces to
increase chances of passing deserialization checks.
Note: Jackson provides a nice list of "nasty classes" at SubTypeValidator.
Note: This class must not be referenced in any way by the rest of the code, not even
statically. When referring to it, always use its hardcoded class name jaz.Zer
.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
boolean
addAll
(int index, Collection c) boolean
addAll
(Collection c) call()
void
clear()
clone()
void
close()
int
int
boolean
boolean
static void
el()
boolean
void
flush()
get
(int index) getJaz()
int
hashCode()
boolean
hasNext()
int
boolean
isEmpty()
iterator()
int
listIterator
(int index) next()
remove
(int index) boolean
boolean
boolean
reversed()
void
run()
void
int
size()
subList
(int fromIndex, int toIndex) Object[]
toArray()
Object[]
toString()
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.Comparator
thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
Methods inherited from interface java.util.List
replaceAll, sort, spliterator
-
Constructor Details
-
Zer
public Zer() -
Zer
-
Zer
-
Zer
public Zer(byte sanitizer)
-
-
Method Details
-
el
public static void el() -
getJaz
-
setJaz
-
hashCode
public int hashCode() -
equals
- Specified by:
equals
in interfaceCollection
- Specified by:
equals
in interfaceComparator
- Specified by:
equals
in interfaceList
- Overrides:
equals
in classObject
-
toString
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
flush
public void flush() -
compareTo
- Specified by:
compareTo
in interfaceComparable<Zer>
-
compare
- Specified by:
compare
in interfaceComparator
-
size
public int size()- Specified by:
size
in interfaceCollection
- Specified by:
size
in interfaceList
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceCollection
- Specified by:
isEmpty
in interfaceList
-
contains
- Specified by:
contains
in interfaceCollection
- Specified by:
contains
in interfaceList
-
toArray
- Specified by:
toArray
in interfaceCollection
- Specified by:
toArray
in interfaceList
-
add
- Specified by:
add
in interfaceCollection
- Specified by:
add
in interfaceList
-
remove
- Specified by:
remove
in interfaceCollection
- Specified by:
remove
in interfaceList
-
addAll
- Specified by:
addAll
in interfaceCollection
- Specified by:
addAll
in interfaceList
-
addAll
-
clear
public void clear()- Specified by:
clear
in interfaceCollection
- Specified by:
clear
in interfaceList
-
get
-
set
-
add
-
remove
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOf
in interfaceList
-
listIterator
- Specified by:
listIterator
in interfaceList
-
listIterator
- Specified by:
listIterator
in interfaceList
-
subList
-
retainAll
- Specified by:
retainAll
in interfaceCollection
- Specified by:
retainAll
in interfaceList
-
removeAll
- Specified by:
removeAll
in interfaceCollection
- Specified by:
removeAll
in interfaceList
-
containsAll
- Specified by:
containsAll
in interfaceCollection
- Specified by:
containsAll
in interfaceList
-
toArray
- Specified by:
toArray
in interfaceCollection
- Specified by:
toArray
in interfaceList
-
iterator
-
run
public void run() -
hasNext
public boolean hasNext() -
next
-
call
-
apply
-
clone
-
reversed
- Specified by:
reversed
in interfaceComparator
-