From 5d4f1058b1c751ac972554328c815dfd1082f644 Mon Sep 17 00:00:00 2001 From: hailey elizabeth Date: Mon, 26 Oct 2026 08:43:43 -0700 Subject: [PATCH] bskyweb: check facet offsets against the post text, resolve embedr handles with gttp (#12203) --- bskyweb/cmd/bskyweb/formating.go | 23 ++- bskyweb/cmd/bskyweb/formatting_test.go | 82 ++++++++ bskyweb/cmd/bskyweb/fuzz_test.go | 58 ++++++ bskyweb/cmd/bskyweb/webpost_test.go | 185 +++++++++++++++++++ bskyweb/cmd/embedr/handle_resolution.go | 75 ++++++++ bskyweb/cmd/embedr/handle_resolution_test.go | 56 ++++++ bskyweb/cmd/embedr/handlers.go | 5 + bskyweb/cmd/embedr/server.go | 2 +- bskyweb/go.mod | 3 +- bskyweb/go.sum | 6 +- 10 files changed, 481 insertions(+), 14 deletions(-) create mode 100644 bskyweb/cmd/bskyweb/fuzz_test.go create mode 100644 bskyweb/cmd/bskyweb/webpost_test.go create mode 100644 bskyweb/cmd/embedr/handle_resolution.go create mode 100644 bskyweb/cmd/embedr/handle_resolution_test.go diff --git a/bskyweb/cmd/bskyweb/formating.go b/bskyweb/cmd/bskyweb/formating.go index 9eac94ef8..13f70b41d 100644 --- a/bskyweb/cmd/bskyweb/formating.go +++ b/bskyweb/cmd/bskyweb/formating.go @@ -16,19 +16,22 @@ func ExpandPostText(post *appbsky.FeedPost) string { var charsAdded int = 0 // iterate over facets, check if they're link facets, and if found, grab the uri for _, facet := range post.Facets { + // offsets come from the record, and charsAdded can be negative here + if facet == nil || facet.Index == nil { + continue + } + start := int(facet.Index.ByteStart) + charsAdded + end := int(facet.Index.ByteEnd) + charsAdded + if start < 0 || end < start || end > len(postText) { + continue + } linkUri := "" if slices.ContainsFunc(facet.Features, func(feat *appbsky.RichtextFacet_Features_Elem) bool { - if feat.RichtextFacet_Link == nil || feat.RichtextFacet_Link.LexiconTypeID != "app.bsky.richtext.facet#link" { + if feat == nil || feat.RichtextFacet_Link == nil || feat.RichtextFacet_Link.LexiconTypeID != "app.bsky.richtext.facet#link" { return false } - // bail out if bounds checks fail - if facet.Index.ByteStart > facet.Index.ByteEnd || - int(facet.Index.ByteStart)+charsAdded > len(postText) || - int(facet.Index.ByteEnd)+charsAdded > len(postText) { - return false - } - linkText := postText[int(facet.Index.ByteStart)+charsAdded : int(facet.Index.ByteEnd)+charsAdded] + linkText := postText[start:end] linkUri = feat.RichtextFacet_Link.Uri // only expand uris that have been shortened (as opposed to those with non-uri anchor text) @@ -39,8 +42,8 @@ func ExpandPostText(post *appbsky.FeedPost) string { }) { // replace the shortened uri with the full length one from the facet using utf8 byte offsets // NOTE: we already did bounds check above - postText = postText[0:int(facet.Index.ByteStart)+charsAdded] + linkUri + postText[int(facet.Index.ByteEnd)+charsAdded:] - charsAdded += len(linkUri) - int(facet.Index.ByteEnd-facet.Index.ByteStart) + postText = postText[:start] + linkUri + postText[end:] + charsAdded += len(linkUri) - (end - start) } } // if the post has an embeded link and its url doesn't already appear in postText, append it to diff --git a/bskyweb/cmd/bskyweb/formatting_test.go b/bskyweb/cmd/bskyweb/formatting_test.go index 1fbf8d5ee..67570b1b6 100644 --- a/bskyweb/cmd/bskyweb/formatting_test.go +++ b/bskyweb/cmd/bskyweb/formatting_test.go @@ -37,3 +37,85 @@ func TestExpandPostText(t *testing.T) { t.Fail() } } + +// facetTestPost builds a post with facets as they arrive from a record. +func facetTestPost(text string, facets ...*appbsky.RichtextFacet) *appbsky.FeedPost { + return &appbsky.FeedPost{Text: text, Facets: facets} +} + +func linkFacetAt(start, end int64, uri string) *appbsky.RichtextFacet { + return &appbsky.RichtextFacet{ + Index: &appbsky.RichtextFacet_ByteSlice{ByteStart: start, ByteEnd: end}, + Features: []*appbsky.RichtextFacet_Features_Elem{{ + RichtextFacet_Link: &appbsky.RichtextFacet_Link{ + LexiconTypeID: "app.bsky.richtext.facet#link", + Uri: uri, + }, + }}, + } +} + +// A facet may point at a uri shorter than the text it replaces ("http://a..." +// vs "http://a"), which drives the running offset negative. +func TestExpandPostTextNegativeOffset(t *testing.T) { + post := facetTestPost( + "http://a...http://a...", + linkFacetAt(0, 11, "http://a"), + linkFacetAt(0, 8, "http://a"), + ) + if got := ExpandPostText(post); got == "" { + t.Fatal("expansion dropped the whole text") + } +} + +// Out-of-range, negative and missing offsets are ignored. +func TestExpandPostTextHostileFacets(t *testing.T) { + cases := map[string]*appbsky.FeedPost{ + "negative start": facetTestPost("http://a...", linkFacetAt(-1, 8, "http://a")), + "negative end": facetTestPost("http://a...", linkFacetAt(0, -1, "http://a")), + "end past text": facetTestPost("http://a...", linkFacetAt(0, 4000, "http://a")), + "empty text": facetTestPost("", linkFacetAt(0, 0, "http://a")), + "nil index": { + Text: "http://a...", + Facets: []*appbsky.RichtextFacet{{ + Features: []*appbsky.RichtextFacet_Features_Elem{{ + RichtextFacet_Link: &appbsky.RichtextFacet_Link{ + LexiconTypeID: "app.bsky.richtext.facet#link", + Uri: "http://a", + }, + }}, + }}, + }, + "nil feature": { + Text: "http://a...", + Facets: []*appbsky.RichtextFacet{{Index: &appbsky.RichtextFacet_ByteSlice{ByteStart: 0, ByteEnd: 8}, Features: []*appbsky.RichtextFacet_Features_Elem{nil}}}, + }, + "many collapsing facets": facetTestPost( + "http://a...http://a...http://a...http://a...", + linkFacetAt(0, 11, "http://a"), + linkFacetAt(0, 11, "http://a"), + linkFacetAt(0, 11, "http://a"), + linkFacetAt(0, 11, "http://a"), + ), + } + for name, post := range cases { + t.Run(name, func(t *testing.T) { + if got := ExpandPostText(post); got == "" && post.Text != "" { + t.Fatalf("expansion dropped the whole text") + } + }) + } +} + +// The legit path: the client shortens long urls and points the facet at the uri. +func TestExpandPostTextShortenedLink(t *testing.T) { + post := facetTestPost( + "look at example.com/abcdefghi... it is great", + linkFacetAt(8, 32, "https://example.com/abcdefghijklmnop"), + ) + got := ExpandPostText(post) + want := "look at https://example.com/abcdefghijklmnop it is great" + if got != want { + t.Fatalf("got %q, want %q", got, want) + } +} diff --git a/bskyweb/cmd/bskyweb/fuzz_test.go b/bskyweb/cmd/bskyweb/fuzz_test.go new file mode 100644 index 000000000..035da11c6 --- /dev/null +++ b/bskyweb/cmd/bskyweb/fuzz_test.go @@ -0,0 +1,58 @@ +package main + +import ( + "testing" + + appbsky "github.com/bluesky-social/indigo/api/bsky" +) + +// FuzzExpandPostText: facet offsets come from arbitrary records, so expansion +// must not panic, drop the text, or grow without bound. +func FuzzExpandPostText(f *testing.F) { + f.Add("http://a...http://a...", int64(0), int64(11), int64(0), int64(8), "http://a") + f.Add("look at example.com/abcdefghi... ok", int64(8), int64(32), int64(-1), int64(-1), "https://example.com/abcdefghijklmnop") + f.Add("", int64(0), int64(0), int64(-5), int64(-5), "") + f.Add("abc", int64(3), int64(1), int64(0), int64(1<<40), "...") + + f.Fuzz(func(t *testing.T, + text string, + s0, e0, s1, e1 int64, + uri string, + ) { + post := &appbsky.FeedPost{ + Text: text, + Facets: []*appbsky.RichtextFacet{ + { + Index: &appbsky.RichtextFacet_ByteSlice{ByteStart: s0, ByteEnd: e0}, + Features: []*appbsky.RichtextFacet_Features_Elem{{ + RichtextFacet_Link: &appbsky.RichtextFacet_Link{ + LexiconTypeID: "app.bsky.richtext.facet#link", + Uri: uri, + }, + }}, + }, + { + Index: &appbsky.RichtextFacet_ByteSlice{ByteStart: s1, ByteEnd: e1}, + Features: []*appbsky.RichtextFacet_Features_Elem{{ + RichtextFacet_Link: &appbsky.RichtextFacet_Link{ + LexiconTypeID: "app.bsky.richtext.facet#link", + Uri: uri, + }, + }}, + }, + }, + } + + got := ExpandPostText(post) + + // Expansion only ever replaces a short slice with a uri, so the result + // cannot be longer than the text plus both uris. + if max := len(text) + 2*len(uri) + 64; len(got) > max { + t.Fatalf("output grew to %d bytes (text %d, uri %d)", len(got), len(text), len(uri)) + } + // It must never silently drop a non-empty text when nothing expanded. + if text != "" && got == "" { + t.Fatalf("output empty for text %q", text) + } + }) +} diff --git a/bskyweb/cmd/bskyweb/webpost_test.go b/bskyweb/cmd/bskyweb/webpost_test.go new file mode 100644 index 000000000..110f4eba5 --- /dev/null +++ b/bskyweb/cmd/bskyweb/webpost_test.go @@ -0,0 +1,185 @@ +package main + +import ( + "encoding/json" + "net/http" + "net/http/httptest" + "strings" + "testing" + + appbsky "github.com/bluesky-social/indigo/api/bsky" + "github.com/bluesky-social/indigo/xrpc" + "github.com/bluesky-social/social-app/bskyweb" + "github.com/labstack/echo/v4" +) + +/* +A facet pair whose anchor is longer than its uri ("http://a..." vs "http://a") +used to make ExpandPostText slice with a negative low bound, which panicked the +handler and dropped the connection. Drive the real handler so a panic fails here. +*/ + +func hostileFacetPost() map[string]any { + return map[string]any{ + "$type": "app.bsky.feed.post", + "text": "http://a...http://a...", + "createdAt": "2026-10-01T00:00:00.000Z", + "facets": []map[string]any{ + { + "index": map[string]any{"byteStart": 0, "byteEnd": 11}, + "features": []map[string]any{{"$type": "app.bsky.richtext.facet#link", "uri": "http://a"}}, + }, + { + "index": map[string]any{"byteStart": 0, "byteEnd": 8}, + "features": []map[string]any{{"$type": "app.bsky.richtext.facet#link", "uri": "http://a"}}, + }, + }, + } +} + +func postViewJSON(uri, did, handle string, record map[string]any, replyCount int) map[string]any { + return map[string]any{ + "uri": uri, + "cid": "bafyreiaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "author": map[string]any{"did": did, "handle": handle}, + "record": record, + "indexedAt": "2026-10-01T00:00:00.000Z", + "likeCount": 0, "replyCount": replyCount, "repostCount": 0, "quoteCount": 0, + } +} + +// appviewWithThread serves getPostThread with `thread` and fails everything else. +func appviewWithThread(t *testing.T, thread map[string]any) *httptest.Server { + t.Helper() + return httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + if r.URL.Path != "/xrpc/app.bsky.feed.getPostThread" { + t.Errorf("unexpected appview call %s", r.URL.String()) + http.Error(w, "unexpected", http.StatusBadRequest) + return + } + w.Header().Set("Content-Type", "application/json") + if err := json.NewEncoder(w).Encode(map[string]any{"thread": thread}); err != nil { + t.Errorf("encode: %v", err) + } + })) +} + +// renderWebPost runs the real WebPost handler against a fake appview and +// returns the recorded response, failing the test on a panic. +func renderWebPost(t *testing.T, thread map[string]any) *httptest.ResponseRecorder { + t.Helper() + if _, err := bskyweb.TemplateFS.ReadFile("templates/scripts.html"); err != nil { + t.Skip("templates/scripts.html not present (run yarn build-web first)") + } + appview := appviewWithThread(t, thread) + defer appview.Close() + + e := echo.New() + e.HideBanner = true + e.Renderer = NewRenderer("templates/", &bskyweb.TemplateFS, false) + srv := &Server{ + echo: e, + xrpcc: &xrpc.Client{Client: appview.Client(), Host: appview.URL}, + cfg: &Config{}, + } + e.GET("/profile/:handleOrDID/post/:rkey", srv.WebPost) + + rec := httptest.NewRecorder() + req := httptest.NewRequest(http.MethodGet, "/profile/victim.test/post/victimpost", nil) + defer func() { + if panicked := recover(); panicked != nil { + t.Fatalf("WebPost panicked on an appview record: %v", panicked) + } + }() + e.ServeHTTP(rec, req) + return rec +} + +func TestWebPostRendersHostileFacetReply(t *testing.T) { + victim := postViewJSON( + "at://did:plc:victim/app.bsky.feed.post/victimpost", + "did:plc:victim", "victim.test", + map[string]any{"$type": "app.bsky.feed.post", "text": "hello world", "createdAt": "2026-10-01T00:00:00.000Z"}, + 1, + ) + attacker := postViewJSON( + "at://did:plc:attacker/app.bsky.feed.post/evilpost", + "did:plc:attacker", "attacker.test", + hostileFacetPost(), 0, + ) + rec := renderWebPost(t, map[string]any{ + "$type": "app.bsky.feed.defs#threadViewPost", + "post": victim, + "replies": []any{map[string]any{"$type": "app.bsky.feed.defs#threadViewPost", "post": attacker}}, + }) + + if rec.Code != http.StatusOK { + t.Fatalf("status %d, want 200", rec.Code) + } + body := rec.Body.String() + if !strings.Contains(body, "hello world") { + t.Fatalf("rendered page lost the post text:\n%s", body) + } + if !strings.Contains(body, `application/ld+json`) { + t.Fatalf("rendered page lost its JSON-LD") + } + // the reply must still be represented, just without a poisoned expansion + if !strings.Contains(body, `"@type":"Comment"`) { + t.Fatalf("rendered JSON-LD lost the reply") + } +} + +func TestWebPostRendersSelfHostileFacets(t *testing.T) { + attacker := postViewJSON( + "at://did:plc:attacker/app.bsky.feed.post/evilpost", + "did:plc:attacker", "attacker.test", + hostileFacetPost(), 0, + ) + rec := renderWebPost(t, map[string]any{ + "$type": "app.bsky.feed.defs#threadViewPost", + "post": attacker, + }) + if rec.Code != http.StatusOK { + t.Fatalf("status %d, want 200", rec.Code) + } +} + +// A post quoted by the page's post is expanded through the same helper, so the +// quoted record must not be able to take the page down either. +func TestWebPostRendersHostileQuotedRecord(t *testing.T) { + quoted := postViewJSON( + "at://did:plc:attacker/app.bsky.feed.post/evilpost", + "did:plc:attacker", "attacker.test", + hostileFacetPost(), 0, + ) + page := postViewJSON( + "at://did:plc:victim/app.bsky.feed.post/victimpost", + "did:plc:victim", "victim.test", + map[string]any{"$type": "app.bsky.feed.post", "text": "look at this", "createdAt": "2026-10-01T00:00:00.000Z"}, + 0, + ) + page["embed"] = map[string]any{ + "$type": "app.bsky.embed.record#view", + "record": map[string]any{ + "$type": "app.bsky.embed.record#viewRecord", + "uri": quoted["uri"], + "cid": quoted["cid"], + "author": quoted["author"], + "value": hostileFacetPost(), + "labels": []any{}, + "indexedAt": "2026-10-01T00:00:00.000Z", + }, + } + rec := renderWebPost(t, map[string]any{ + "$type": "app.bsky.feed.defs#threadViewPost", + "post": page, + }) + if rec.Code != http.StatusOK { + t.Fatalf("status %d, want 200", rec.Code) + } + if body := rec.Body.String(); !strings.Contains(body, "look at this") { + t.Fatalf("rendered page lost the quoting post's text") + } +} + +var _ = appbsky.FeedPost{} // keep the indigo api import meaningful if helpers change diff --git a/bskyweb/cmd/embedr/handle_resolution.go b/bskyweb/cmd/embedr/handle_resolution.go new file mode 100644 index 000000000..a4e4292ba --- /dev/null +++ b/bskyweb/cmd/embedr/handle_resolution.go @@ -0,0 +1,75 @@ +package main + +import ( + "context" + "errors" + "net" + "net/http" + "time" + + "github.com/bluesky-social/gttp" + "github.com/bluesky-social/indigo/atproto/identity" +) + +// errHandleRedirect is returned when a well-known lookup tries to redirect. +var errHandleRedirect = errors.New("handle resolution refused to follow a redirect") + +const ( + handleResolveTimeout = 5 * time.Second + handleCacheCapacity = 10_000 +) + +// newHandleHTTPClient returns the client used to resolve a handle named in an +// oEmbed URL: strict SSRF policy, no redirects, bounded time and body. +func newHandleHTTPClient() *http.Client { + return gttp.New( + gttp.WithTimeout(handleResolveTimeout), + gttp.WithDialTimeout(handleResolveTimeout), + gttp.WithResponseHeaderTimeout(handleResolveTimeout), + gttp.WithNoRedirects(), + gttp.WithNoRetries(), + gttp.WithNoProxy(), + gttp.WithStrictSSRFProtection(), + gttp.WithMaxResponseBodyBytes(4096), + ) +} + +// newIdentityDirectory is identity.DefaultDirectory() with the client above, no +// authoritative DNS fallback and a smaller cache. +func newIdentityDirectory() *identity.CacheDirectory { + base := &identity.BaseDirectory{ + PLCURL: identity.DefaultPLCURL, + HTTPClient: *newHandleHTTPClient(), + Resolver: net.Resolver{ + Dial: func(ctx context.Context, network, address string) (net.Conn, error) { + d := net.Dialer{Timeout: 3 * time.Second} + return d.DialContext(ctx, network, address) + }, + }, + // Indigo dials the handle domain's nameserver when this is on. + TryAuthoritativeDNS: false, + SkipDNSDomainSuffixes: []string{".bsky.social"}, + } + return identity.NewCacheDirectory(base, handleCacheCapacity, 24*time.Hour, 2*time.Minute, 5*time.Minute) +} + +// isHandleResolutionError reports whether err came from resolving a handle. Those +// carry dial addresses and resolver details, so they are logged, not returned. +func isHandleResolutionError(err error) bool { + for _, target := range []error{ + identity.ErrHandleResolutionFailed, + identity.ErrHandleNotFound, + identity.ErrHandleMismatch, + identity.ErrHandleNotDeclared, + identity.ErrHandleReservedTLD, + identity.ErrDIDResolutionFailed, + identity.ErrDIDNotFound, + errHandleRedirect, + gttp.ErrBlockedByIPPolicy, + } { + if errors.Is(err, target) { + return true + } + } + return false +} diff --git a/bskyweb/cmd/embedr/handle_resolution_test.go b/bskyweb/cmd/embedr/handle_resolution_test.go new file mode 100644 index 000000000..304b5265c --- /dev/null +++ b/bskyweb/cmd/embedr/handle_resolution_test.go @@ -0,0 +1,56 @@ +package main + +import ( + "context" + "errors" + "net/http" + "testing" + + "github.com/bluesky-social/gttp" +) + +func TestHandleHTTPClientRefusesRedirects(t *testing.T) { + client := newHandleHTTPClient() + if client.CheckRedirect == nil { + t.Fatalf("expected a redirect policy") + } + req, err := http.NewRequest(http.MethodGet, "http://169.254.169.254/latest/meta-data/", nil) + if err != nil { + t.Fatalf("request: %v", err) + } + prev, _ := http.NewRequest(http.MethodGet, "https://handle.example/.well-known/atproto-did", nil) + if err := client.CheckRedirect(req, []*http.Request{prev}); err == nil { + t.Fatalf("expected the redirect to be refused") + } +} + +func TestHandleHTTPClientBlocksInternalAddresses(t *testing.T) { + client := newHandleHTTPClient() + for _, target := range []string{ + "http://127.0.0.1/.well-known/atproto-did", + "http://169.254.169.254/latest/meta-data/", + "http://10.0.0.1/.well-known/atproto-did", + "http://[::1]/.well-known/atproto-did", + "http://100.100.100.200/.well-known/atproto-did", + } { + req, err := http.NewRequest(http.MethodGet, target, nil) + if err != nil { + t.Fatalf("%s: %v", target, err) + } + if _, err := client.Do(req.WithContext(context.Background())); err == nil { + t.Errorf("%s was not blocked", target) + continue + } else if !errors.Is(err, gttp.ErrBlockedByIPPolicy) { + t.Errorf("%s: expected an IP policy block, got %v", target, err) + } + } +} + +func TestResolutionErrorsAreNotReturned(t *testing.T) { + if !isHandleResolutionError(gttp.ErrBlockedByIPPolicy) { + t.Errorf("IP policy blocks should be treated as resolution failures") + } + if !isHandleResolutionError(errHandleRedirect) { + t.Errorf("redirect refusals should be treated as resolution failures") + } +} diff --git a/bskyweb/cmd/embedr/handlers.go b/bskyweb/cmd/embedr/handlers.go index 5fb4287b5..f9bd624d7 100644 --- a/bskyweb/cmd/embedr/handlers.go +++ b/bskyweb/cmd/embedr/handlers.go @@ -142,6 +142,11 @@ func (srv *Server) WebOEmbed(c echo.Context) error { aturi, err := srv.parseBlueskyURL(c.Request().Context(), c.QueryParam("url")) if err != nil { + if isHandleResolutionError(err) { + // Names internal addresses and ports; log it, don't return it. + log.Warn("handle resolution failed", "err", err) + return c.String(http.StatusBadRequest, "Expected 'url' to point at an account that can be resolved") + } return c.String(http.StatusBadRequest, fmt.Sprintf("Expected 'url' to be bsky.app URL or AT-URI: %v", err)) } if aturi.Collection() != syntax.NSID("app.bsky.feed.post") { diff --git a/bskyweb/cmd/embedr/server.go b/bskyweb/cmd/embedr/server.go index 8315949ae..c189273e3 100644 --- a/bskyweb/cmd/embedr/server.go +++ b/bskyweb/cmd/embedr/server.go @@ -92,7 +92,7 @@ func serve(cctx *cli.Context) error { server := &Server{ echo: e, xrpcc: xrpcc, - dir: identity.DefaultDirectory(), + dir: newIdentityDirectory(), metricsHttpd: metricsHttpd, } diff --git a/bskyweb/go.mod b/bskyweb/go.mod index a0ed30383..65835c81e 100644 --- a/bskyweb/go.mod +++ b/bskyweb/go.mod @@ -3,11 +3,12 @@ module github.com/bluesky-social/social-app/bskyweb go 1.26.10 require ( + github.com/bluesky-social/gttp v0.1.0 github.com/bluesky-social/indigo v0.0.0-20260605210604-af2fec94f34c github.com/flosch/pongo2/v6 v6.0.0 github.com/ipfs/go-log v1.0.5 github.com/joho/godotenv v1.5.1 - github.com/klauspost/compress v1.18.0 + github.com/klauspost/compress v1.18.6 github.com/labstack/echo-contrib v0.17.4 github.com/labstack/echo/v4 v4.13.4 github.com/prometheus/client_golang v1.22.0 diff --git a/bskyweb/go.sum b/bskyweb/go.sum index 9fd27eafe..d077e7e43 100644 --- a/bskyweb/go.sum +++ b/bskyweb/go.sum @@ -2,6 +2,8 @@ github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03 github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= +github.com/bluesky-social/gttp v0.1.0 h1:jsG6ssqLYboxxdx+eBScIvKfMfBB6qvN8E4SW+NeoaM= +github.com/bluesky-social/gttp v0.1.0/go.mod h1:TPtZ67MOhePifYaztEI42hUhluaE2GJ33+oFxPermuw= github.com/bluesky-social/indigo v0.0.0-20260605210604-af2fec94f34c h1:Jr82+1HUmwwZzDpt/eeU4sieya27iXjuPMdXZkOXoBc= github.com/bluesky-social/indigo v0.0.0-20260605210604-af2fec94f34c/go.mod h1:JqQkz8lrOI6YZivP38GHmtVOTtzsNToITKj1gMpU5Jo= github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs= @@ -98,8 +100,8 @@ github.com/jtolds/gls v4.20.0+incompatible h1:xdiiI2gbIgH/gLH7ADydsJ1uDOEzR8yvV7 github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU= github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= -github.com/klauspost/compress v1.18.0 h1:c/Cqfb0r+Yi+JtIEq73FWXVkRonBlf0CRNYc8Zttxdo= -github.com/klauspost/compress v1.18.0/go.mod h1:2Pp+KzxcywXVXMr50+X0Q/Lsb43OQHYWRCY2AiWywWQ= +github.com/klauspost/compress v1.18.6 h1:2jupLlAwFm95+YDR+NwD2MEfFO9d4z4Prjl1XXDjuao= +github.com/klauspost/compress v1.18.6/go.mod h1:cwPg85FWrGar70rWktvGQj8/hthj3wpl0PGDogxkrSQ= github.com/klauspost/cpuid/v2 v2.2.7 h1:ZWSB3igEs+d0qvnxR/ZBzXVmxkgt8DdzP6m9pfuVLDM= github.com/klauspost/cpuid/v2 v2.2.7/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= -- knotmirror 0.0.1