pub enum SmugglingKind {
ClTe,
TeCl,
TeTe,
HostInjection,
HeaderInjection,
DoubleContentLength,
DuplicateHost,
}Expand description
请求走私类型
Variants§
ClTe
CL.TE:同时存在 Content-Length 和 Transfer-Encoding
TeCl
TE.CL:同时存在 Transfer-Encoding 和 Content-Length(同上,攻击方向相反)
TeTe
TE.TE:存在多个或非标准 Transfer-Encoding
HostInjection
Host 头值包含 CRLF
HeaderInjection
头部值包含 CRLF 注入
DoubleContentLength
双 Content-Length
DuplicateHost
双 Host 头(RFC 7230 §5.4:客户端不得发送多个 Host, 前后端取词差分是经典走私向量)
Implementations§
Trait Implementations§
Source§impl Clone for SmugglingKind
impl Clone for SmugglingKind
Source§fn clone(&self) -> SmugglingKind
fn clone(&self) -> SmugglingKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SmugglingKind
Source§impl Debug for SmugglingKind
impl Debug for SmugglingKind
impl Eq for SmugglingKind
Source§impl Hash for SmugglingKind
impl Hash for SmugglingKind
Source§impl PartialEq for SmugglingKind
impl PartialEq for SmugglingKind
impl StructuralPartialEq for SmugglingKind
Auto Trait Implementations§
impl Freeze for SmugglingKind
impl RefUnwindSafe for SmugglingKind
impl Send for SmugglingKind
impl Sync for SmugglingKind
impl Unpin for SmugglingKind
impl UnsafeUnpin for SmugglingKind
impl UnwindSafe for SmugglingKind
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
Mutably borrows from an owned value. Read more