<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/how-i-tricked-openclaw-into-attacking-its-own-network-a-nat64-ssrf-bypass-sza64rzah" -->

---
title: How I Tricked OpenClaw Into Attacking Its Own Network: A...
description: A security researcher demonstrates a Server-Side Request Forgery bypass in OpenClaw (an AI assistant gateway formerly known as Clawdbot/Moltbot) that fetches...
canonical: https://daily.dev/posts/how-i-tricked-openclaw-into-attacking-its-own-network-a-nat64-ssrf-bypass-sza64rzah
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: How I Tricked OpenClaw Into Attacking Its Own Network: A NAT64 SSRF Bypass | daily.dev
og:description: A security researcher demonstrates a Server-Side Request Forgery bypass in OpenClaw (an AI assistant gateway formerly known as Clawdbot/Moltbot) that fetches...
og:url: https://daily.dev/posts/how-i-tricked-openclaw-into-attacking-its-own-network-a-nat64-ssrf-bypass-sza64rzah
og:image: https://api.daily.dev/og/posts/sZA64RzAh.png
og:image:alt: How I Tricked OpenClaw Into Attacking Its Own Network: A NAT64 SSRF Bypass
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# How I Tricked OpenClaw Into Attacking Its Own Network: A NAT64 SSRF Bypass

**[InfoSec Write-ups](https://daily.dev/sources/infosecwriteups)** · 10 min read · 0 upvotes · 0 comments

## Summary

A security researcher demonstrates a Server-Side Request Forgery bypass in OpenClaw (an AI assistant gateway formerly known as Clawdbot/Moltbot) that fetches URLs on a user's behalf. OpenClaw's SSRF guard used the ipaddr.js library to detect embedded IPv4 addresses inside IPv6 literals, but a bug caused it to misread the RFC 8215 NAT64 /48 address format by checking the wrong bit positions. This let an attacker craft an IPv6 literal showing a benign decoy address (8.8.8.8) to the guard while a NAT64 router actually forwarded requests to a private target like the cloud metadata endpoint 169.254.169.254. The bug required the host to have an actual RFC 8215 NAT64 gateway on its network. OpenClaw fixed the issue in version 2026.8.1 and all subsequent releases; the bug affected beta builds between 2026.7.2-beta.1 and 2026.8.1-beta.2, with the affected stable range still being determined.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://infosecwriteups.com/how-i-tricked-openclaw-into-attacking-its-own-network-a-nat64-ssrf-bypass-9b93a7f11cd9>

## Questions this post answers

### How does the OpenClaw NAT64 SSRF bypass vulnerability work?

OpenClaw's SSRF guard misread RFC 8215 NAT64 /48 addresses (64:ff9b:1::/48) by always decoding the embedded IPv4 from the last 32 bits, which is only correct for the /96 well-known NAT64 prefix. For the /48 format, the real IPv4 lives in bits 48-63 and 72-87, so an attacker could place a decoy like 8.8.8.8 in the ignored trailing bits while a real NAT64 router forwarded the request to a hidden target like 169.254.169.254, bypassing the guard entirely.

_Teams building SSRF guards can track disclosures like this NAT64 parsing flaw through daily.dev to harden IP validation logic._

### Which OpenClaw versions are affected by the NAT64 SSRF vulnerability and how do I fix it?

The fix shipped in OpenClaw version 2026.8.1 and is present in every release since; updating to the latest version fully resolves it. The bug definitely affected beta builds from 2026.7.2-beta.1 through 2026.8.1-beta.2, with some earlier stable versions possibly affected too, though the exact stable range was still being confirmed with the OpenClaw team.

_Anyone running OpenClaw gateways can follow daily.dev for the confirmed list of affected versions as it gets finalized._

### Why does RFC 6052 NAT64 address translation create an SSRF risk for IPv6 embedded IPv4 addresses?

RFC 6052 mandates that suffix bits in certain NAT64 prefix formats be ignored by translators, and that mandate creates free scratch space an attacker can fill with a decoy address. A parser that infers a single byte layout from a library's classification label rather than confirming the actual prefix length can read the ignored decoy bits instead of the real embedded IPv4 address, letting attackers hide a private target behind a benign-looking public address.

_Developers writing IP validation logic can use daily.dev to stay ahead of protocol edge cases like RFC 6052's ignored suffix bits._

## Similar posts on daily.dev

- [Latest OpenClaw Flaw Can Let Malicious Websites Hijack Local AI Agents](https://daily.dev/posts/latest-openclaw-flaw-can-let-malicious-websites-hijack-local-ai-agents-ypkd31d1j) · Security Boulevard · 0 upvotes · 0 comments
- [OpenClaw gives users yet another reason to be freaked out about security](https://daily.dev/posts/openclaw-gives-users-yet-another-reason-to-be-freaked-out-about-security-nncjkijgt) · Ars Technica · 21 upvotes · 6 comments
- [Four OpenClaw flaws let attackers steal data, escalate privileges, and plant backdoors through the agent’s own sandbox](https://daily.dev/posts/four-openclaw-flaws-let-attackers-steal-data-escalate-privileges-and-plant-backdoors-through-the-a-ctlflklqf) · The Next Web · 1 upvotes · 0 comments
- [1-Click RCE To Steal Your Moltbot Data and Keys](https://daily.dev/posts/1-click-rce-to-steal-your-moltbot-data-and-keys-ieiavgrhd) · Hacker News · 0 upvotes · 0 comments

---

Tags: [#security](https://daily.dev/tags/security), [#vulnerability](https://daily.dev/tags/vulnerability), [#openclaw](https://daily.dev/tags/openclaw)

[View this post on daily.dev](https://daily.dev/posts/how-i-tricked-openclaw-into-attacking-its-own-network-a-nat64-ssrf-bypass-sza64rzah)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"How I Tricked OpenClaw Into Attacking Its Own Network: A NAT64 SSRF Bypass","url":"https://daily.dev/posts/how-i-tricked-openclaw-into-attacking-its-own-network-a-nat64-ssrf-bypass-sza64rzah","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/how-i-tricked-openclaw-into-attacking-its-own-network-a-nat64-ssrf-bypass-sza64rzah"},"datePublished":"2026-09-17T06:14:06.869Z","dateModified":"2026-09-17T06:14:37.640Z","description":"A security researcher demonstrates a Server-Side Request Forgery bypass in OpenClaw (an AI assistant gateway formerly known as Clawdbot/Moltbot) that fetches...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/964ae26956b3147c4013d465ff754853?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/964ae26956b3147c4013d465ff754853?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"InfoSec Write-ups","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"InfoSec Write-ups","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/f0dc21b5bbfd46fda36f7b4b53dd1705","url":"https://daily.dev/sources/infosecwriteups"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/how-i-tricked-openclaw-into-attacking-its-own-network-a-nat64-ssrf-bypass-sza64rzah","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"security,vulnerability,openclaw","timeRequired":"PT10M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"InfoSec Write-ups","item":"https://daily.dev/sources/infosecwriteups"},{"@type":"ListItem","position":3,"name":"How I Tricked OpenClaw Into Attacking Its Own Network: A NAT64 SSRF Bypass"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/how-i-tricked-openclaw-into-attacking-its-own-network-a-nat64-ssrf-bypass-sza64rzah#faq","mainEntity":[{"@type":"Question","name":"How does the OpenClaw NAT64 SSRF bypass vulnerability work?","acceptedAnswer":{"@type":"Answer","text":"OpenClaw's SSRF guard misread RFC 8215 NAT64 /48 addresses (64:ff9b:1::/48) by always decoding the embedded IPv4 from the last 32 bits, which is only correct for the /96 well-known NAT64 prefix. For the /48 format, the real IPv4 lives in bits 48-63 and 72-87, so an attacker could place a decoy like 8.8.8.8 in the ignored trailing bits while a real NAT64 router forwarded the request to a hidden target like 169.254.169.254, bypassing the guard entirely. Teams building SSRF guards can track disclosures like this NAT64 parsing flaw through daily.dev to harden IP validation logic."}},{"@type":"Question","name":"Which OpenClaw versions are affected by the NAT64 SSRF vulnerability and how do I fix it?","acceptedAnswer":{"@type":"Answer","text":"The fix shipped in OpenClaw version 2026.8.1 and is present in every release since; updating to the latest version fully resolves it. The bug definitely affected beta builds from 2026.7.2-beta.1 through 2026.8.1-beta.2, with some earlier stable versions possibly affected too, though the exact stable range was still being confirmed with the OpenClaw team. Anyone running OpenClaw gateways can follow daily.dev for the confirmed list of affected versions as it gets finalized."}},{"@type":"Question","name":"Why does RFC 6052 NAT64 address translation create an SSRF risk for IPv6 embedded IPv4 addresses?","acceptedAnswer":{"@type":"Answer","text":"RFC 6052 mandates that suffix bits in certain NAT64 prefix formats be ignored by translators, and that mandate creates free scratch space an attacker can fill with a decoy address. A parser that infers a single byte layout from a library's classification label rather than confirming the actual prefix length can read the ignored decoy bits instead of the real embedded IPv4 address, letting attackers hide a private target behind a benign-looking public address. Developers writing IP validation logic can use daily.dev to stay ahead of protocol edge cases like RFC 6052's ignored suffix bits."}}]}
```

