#[non_exhaustive]pub enum Category {
CodeExecution,
CryptoFailure,
DenialOfService,
FileDisclosure,
FormatInjection,
MemoryCorruption,
MemoryExposure,
PrivilegeEscalation,
ThreadSafety,
Other(String),
}
Expand description
RustSec Vulnerability Categories
The RustSec project maintains its own categorization system for vulnerabilities according to our criteria for acceptable advisories.
This type represents the present list of allowable vulnerability types for which we allow advisories to be filed.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
CodeExecution
Execution of arbitrary code allowing an attacker to gain partial or total control of an impacted computer system.
CryptoFailure
Cryptography Failure (e.g. confidentiality breakage, integrity breakage, key leakage)
DenialOfService
Vulnerabilities an attacker can leverage to cause crashes or excess resource consumption such that software ceases to function normally, notably panics in code that is advertised as “panic-free” (particularly in format parsers for untrusted data)
FileDisclosure
Disclosure of local files (a.k.a. “directory traversal”)
FormatInjection
Mishandled escaping allowing an attacker to execute code or perform otherwise unexpected operations, e.g. shell escaping, SQL injection, XSS.
MemoryCorruption
Memory unsafety vulnerabilities allowing an attacker to write to unintended locations in memory.
MemoryExposure
Read-only memory safety vulnerabilities which unintentionally expose data.
PrivilegeEscalation
Attacks which bypass authentication and/or authorization systems, allowing the attacker to obtain unintended privileges.
ThreadSafety
Thread safety bug, e.g. data races arising from unsafe code that
misapplies and/or misuses Send
/Sync
.
Other(String)
Other types of categories: left open-ended to add more of them in the future.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Category
impl<'de> Deserialize<'de> for Category
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Source§impl Ord for Category
impl Ord for Category
Source§impl PartialOrd for Category
impl PartialOrd for Category
impl Eq for Category
impl StructuralPartialEq for Category
Auto Trait Implementations§
impl Freeze for Category
impl RefUnwindSafe for Category
impl Send for Category
impl Sync for Category
impl Unpin for Category
impl UnwindSafe for Category
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more