MS-FSRVP abuse (ShadowCoerce)
Last updated
Was this helpful?
Last updated
Was this helpful?
MS-FSRVP is Microsoft's File Server Remote VSS Protocol. It's used for creating shadow copies of file shares on a remote computer, and for facilitating backup applications in performing application-consistent backup and restore of data on SMB2 shares (). That interface is available through the \pipe\FssagentRpc
SMB named pipe.
In late 2021, published showcasing and demonstrating the possibility of abusing the protocol to coerce authentications on the last two slides.
Similarly to other MS-RPC abuses, this works by using a specific method relying on remote UNC paths. In this case, at the time of writing, two methods were detected as vulnerable: IsPathSupported
and IsPathShadowCopied
.
The coerced authentications are made over SMB. Unlike other similar coercion methods (MS-RPRN printerbug, MS-EFSR petitpotam), I doubt MS-FSRVP abuse can be combined with to elicit incoming authentications made over HTTP.
A requirement to the abuse is to have the "File Server VSS Agent Service" enabled on the target server.
Nota bene: for the proof of concept to work, using a proper security provider (RPC_C_AUTHN_WINNT
) and authentication level (RPC_C_AUTHN_LEVEL_PKT_PRIVACY
) can required. It is enabled by default in the script.
In June 2022, Microsoft patched in , which also patched this coercion attack.
The following Python proof-of-concept () implements the IsPathSupported
and IsPathShadowCopied
methods.
Topotam's tweet:
Topotam's slides: