Class Zer
- All Implemented Interfaces:
Closeable,Flushable,Serializable,AutoCloseable,Cloneable,Comparable<Zer>,Iterable,Runnable,Collection,Comparator,Callable,Function,Iterator,List,SequencedCollection
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanbooleanaddAll(int index, Collection c) booleanaddAll(Collection c) call()voidclear()clone()voidclose()intintbooleanbooleanstatic voidel()booleanvoidflush()get(int index) getJaz()inthashCode()booleanhasNext()intbooleanisEmpty()iterator()intlistIterator(int index) next()remove(int index) booleanbooleanbooleanreversed()voidrun()voidintsize()subList(int fromIndex, int toIndex) Object[]toArray()Object[]toString()Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.Comparator
thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongMethods inherited from interface java.util.Iterator
forEachRemaining, removeMethods inherited from interface java.util.List
addFirst, addLast, getFirst, getLast, removeFirst, removeLast, 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:
equalsin interfaceCollection- Specified by:
equalsin interfaceComparator- Specified by:
equalsin interfaceList- Overrides:
equalsin classObject
-
toString
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
flush
public void flush() -
compareTo
- Specified by:
compareToin interfaceComparable<Zer>
-
compare
- Specified by:
comparein interfaceComparator
-
size
public int size()- Specified by:
sizein interfaceCollection- Specified by:
sizein interfaceList
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection- Specified by:
isEmptyin interfaceList
-
contains
- Specified by:
containsin interfaceCollection- Specified by:
containsin interfaceList
-
toArray
- Specified by:
toArrayin interfaceCollection- Specified by:
toArrayin interfaceList
-
add
- Specified by:
addin interfaceCollection- Specified by:
addin interfaceList
-
remove
- Specified by:
removein interfaceCollection- Specified by:
removein interfaceList
-
addAll
- Specified by:
addAllin interfaceCollection- Specified by:
addAllin interfaceList
-
addAll
-
clear
public void clear()- Specified by:
clearin interfaceCollection- Specified by:
clearin interfaceList
-
get
-
set
-
add
-
remove
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList
-
listIterator
- Specified by:
listIteratorin interfaceList
-
listIterator
- Specified by:
listIteratorin interfaceList
-
subList
-
retainAll
- Specified by:
retainAllin interfaceCollection- Specified by:
retainAllin interfaceList
-
removeAll
- Specified by:
removeAllin interfaceCollection- Specified by:
removeAllin interfaceList
-
containsAll
- Specified by:
containsAllin interfaceCollection- Specified by:
containsAllin interfaceList
-
toArray
- Specified by:
toArrayin interfaceCollection- Specified by:
toArrayin interfaceList
-
iterator
-
run
public void run() -
hasNext
public boolean hasNext() -
next
-
call
-
apply
-
clone
-
reversed
- Specified by:
reversedin interfaceComparator- Specified by:
reversedin interfaceList- Specified by:
reversedin interfaceSequencedCollection
-