Refitter allows arbitrary code execution through unescaped OpenAPI content-type values
受影响
| 软件包 | 受影响版本 | 修复版本 |
|---|---|---|
| nuget:Refitter | < 2.1.2 | 2.1.2 |
Refitter emits the spec's content-type key (content map key in requestBody/responses) verbatim into a Refit [Headers("Accept: ", "Content-Type: ")] attribute string without escaping ". A crafted value survives Refitter's default OpenAPI validation, breaks out of the attribute and the enclosing interface + namespace, injects a top-level file class with a [ModuleInitializer] method, and reopens so the file stays valid. .NET runs [ModuleInitializer] methods at assembly load, so the attacker's code…
在 X 上接收快讯漏洞利用、重大泄露和故障,附应对措施。
关注 @vulnpulse_app2026/11/20 09:06,GitHub Advisory Database 发布了“Refitter allows arbitrary code execution through unescaped OpenAPI content-type values”(类型:漏洞公告)。严重程度为“严重”(critical)。相关技术:.NET / C#。CVE:CVE-2026-63344。