<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>TOCTOU on Florence Njeri</title>
    <link>https://florencenjeri.com/tags/toctou/</link>
    <description>Recent content in TOCTOU on Florence Njeri</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <lastBuildDate>Mon, 06 Jul 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://florencenjeri.com/tags/toctou/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Abusing TOCTOU Vulnerabilities in Financial Agents leading to double spending</title>
      <link>https://florencenjeri.com/posts/abusing-toctou-vulnerabilities-in-financial-agents/</link>
      <pubDate>Mon, 06 Jul 2026 00:00:00 +0000</pubDate>
      
      <guid>https://florencenjeri.com/posts/abusing-toctou-vulnerabilities-in-financial-agents/</guid>
      <description>I want to pay Fragment_A $1000 AND Fragment_B $1000, but I only have $1000. Double spending is a technique that will let me successfully do both concurrently before the banking or blockchain system validation tool catches the discrepancy.
The exploit and result: TOCTOU Race Condition via Parallel Tool Calls # Step 1: Reconnaissance of the trading tools
I queried the model about the difference between the create_order and execute_order tools to understand which of the two tools commits the transaction for money to leaves my account. I found out that create_order only creates an order and execute_order commits the orders using the order_ids, I created two orders - one for FRAGMENT_A and one for FRAGMENT_B - without any funds being deducted from my account:</description>
    </item>
    
  </channel>
</rss>
