Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .jules/sentinel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## 2025-02-28 - SSRF DNS Rebinding Mitigation Bypass via IPv6 Assignment

**Vulnerability:** In Node.js, setting `URL.hostname` with an unbracketed IPv6 address fails silently. This bypasses DNS rebinding protection (which pins the hostname to the resolved IP address) and leaves the original potentially malicious hostname intact, allowing SSRF attacks.
**Learning:** `URL.hostname` assignment in Node.js does not automatically bracket IPv6 addresses, and fails silently on unbracketed IPv6 addresses, preserving the original hostname which could be used to exploit SSRF via DNS rebinding.
**Prevention:** Always use `net.isIPv6(ip)` to check if the address is IPv6 and wrap it in brackets `[` and `]` (e.g., `[2606:4700::1111]`) before assigning it to `URL.hostname`.
6 changes: 5 additions & 1 deletion client/hooks/useFont.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ import { useAuth } from "./useAuth";
import { supabase } from "@/lib/supabase";

export type FontOption =
"default" | "poppins" | "roboto" | "playfair-display" | "ibm-plex-mono";
| "default"
| "poppins"
| "roboto"
| "playfair-display"
| "ibm-plex-mono";

const fontMapping: Record<FontOption, string> = {
default: "'Indie Flower', ui-sans-serif, system-ui, sans-serif",
Expand Down
7 changes: 6 additions & 1 deletion client/pages/Apps.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,12 @@ import { RepositoriesApp } from "@/components/apps/Repositories";
import { LearnApp } from "@/components/apps/Learn";

type Category =
"All" | "Utility" | "LLM/AI" | "Development" | "Social" | "Games";
| "All"
| "Utility"
| "LLM/AI"
| "Development"
| "Social"
| "Games";

interface AppMetadata {
id: string;
Expand Down
Loading
Loading