Zum Hauptinhalt springen
LIVE
CVSS 6.5CVE-2026-111315 | The Smaily Connect plugin for WordPress is vulnerable to Insecure Direct Object Reference in versions up to, and including, 3.24.0 This is due to the smaily_get_edit_user_id() function reading an attacker-controlled $_GET['user_id'] parameter without performing any ownership or capability check, and then feeding that id into smaily_get_userdata() (which calls get_user_meta()) when rendering the WooCommerce My Account 'edit-account' form via the smaily_print_CVSS 6.4CVE-2026-137713 | Webmin through 2.670 before ae8feb1 allows XSS via an SVG attachment in a mail queue, relevant if an authenticated user uploads an SVG document and an administrator views it.CVSS 6.9CVE-2026-137678 | A security vulnerability has been detected in code-projects Online Job Portal 1.0. Affected by this issue is some unknown functionality of the file Admin/InsertUser.php. Such manipulation of the argument txtUserName/txtPassword leads to sql injection. The attack can be launched remotely. The exploit has been disclosed publicly and may be used.CVSS 5.3CVE-2026-137703 | Flask-AppBuilder before 5.3.1 contains a path traversal vulnerability in ImageManager.save_file that allows authenticated users to write image files outside IMG_UPLOAD_FOLDER via unsanitized multipart filenames. Attackers with add or edit permission on a ModelView with an ImageColumn can upload filenames containing ../ segments to create or overwrite image files like static assets.CVSS 6.1CVE-2026-130039 | The LiteSpeed Cache plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'REQUEST_URI' parameter in all versions up to, and including, 7.9.3 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. Successful exploitation requires comments to be open, a comment author name containinCVSS 6.1CVE-2026-136206 | The Export Products, Orders & Customers for WooCommerce plugin for WordPress is vulnerable to Reflected Cross-Site Scripting via the 'start_date' parameter in all versions up to, and including, 2.4.3 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that execute if they can successfully trick a user into performing an action such as clicking on a link. SucCVSS 9.4CVE-2026-137706 | Smart Portal developed by Direk Tech has a Missing Authorization vulnerability. Authenticated remote attackers can add a specified account to the Active Directory Domain Admins group, thereby obtaining domain administrator privileges.CVSS 8.7CVE-2026-137705 | Smart Portal developed by Direk Tech has an Arbitrary File Read vulnerability.Unauthenticated remote attackers can exploit Relative Path Traversal to download arbitrary system files.
Alle im Drawer
Intelligence View
⚡ tsecurity.de Intelligence

The Data Moves, The Code Doesn't: Building a KH3 Trainer in Python

I recently started tinkering with making cheats for video games, but before you get mad at me, I don’t mean scumbag cheats, I mean trainers for singleplayer g…

Beitrag
0
Seite
0
↗ Quelle (dev.to)
Quelle & Fakten · 8 Min. Lesezeit
Quelle: dev.to
Rubrik: Secure Programming

I recently started tinkering with making cheats for video games, but before you get mad at me, I don’t mean scumbag cheats, I mean trainers for singleplayer games. No multiplayer, no online, no leaderboards, and no ruining anyone else’s day. Reason being: I’m fighting the most unfair bosses in maybe the entire Kingdom Hearts franchise, the KH3 Data Org bosses (on Critical Mode, with max PRO codes), and I am losing my mind fighting already-mastered phases, just to see 3 seconds of the next phase just to be one-shot. I need a more efficient way to practice: invincibility so I can spend more time seeing unlearned phases, or else I’ll spend the rest of my summer on like 13 bosses, and I say no. I did find software that'll do this for me, but I'm not a big fan of the UI, they want to charge me, and honestly this stuff is just fun to me anyway, so I’d rather see what I can do on my own.






Chasing the Data



I started with Munny, Kingdom Hearts’ in-game currency. I figured this would be an easier starting point than HP, and after a first attempt it seemed I was right. I scanned for a byte signature to find candidate addresses, and noticed something convenient: the real Munny address always ended in the same 16 bits across restarts. I used that to relocate the value and write to Munny even after cold-restarting, which seemed to be a valid solution. In hindsight I was definitely wrong. There’s a lot more going on under the hood of this game.



After wrongfully calling Munny complete, I moved on to HP, where I noticed a similar pattern. HP's address also ended in the same 16 bits across restarts. My initial solution was the same as before: target that signature, isolate it by the address tail, and write. This worked, but only in the instance of a cold restart. Die, load a different save, warp, or do anything else to change the game’s state and poof: the struct gets reallocated and the address tail I was keying on is gone. I no longer have a matching candidate, and worse, this will definitely write values to some random part of the game that could cause a crash. Considering the solution for Munny is relying on the same logic, it’s safe to assume that’s borked and future me has a new chore, but regardless, we continue.



From here, I added a value filter, basically filtering out candidates to only pick values that make sense as HP. This looked like it did the trick on the first save I tried. I had just one value that was definitely HP. But then I loaded a save with a food buff, and saw two valid values for HP. One with the food buff, and one without. Both are valid HP values, so they’ll pass any filter I write. With no obvious way to distinguish the two, this path was dead. Next, I tried using an array-of-bytes signature to identify the real HP. Look at the byte pattern around the HP, and find a consistent fingerprint we can use to identify the real value. Guess what? This matched a look-alike. At this point it felt personal: two methods to filter out candidates both leaving me with a phantom second match. As a last-ditch effort I cracked open Cheat Engine to see if a pointer scan backed up what I was experiencing. After multiple attempts at culling, the scan still returned around 1000 matches. Running it across restarts and reloads to eliminate false values was doing virtually nothing. The scanner effectively proved there’s not a single stable pointer chain to be found. This is because UE4 reallocates objects dynamically, a fun engine quirk that makes my life more interesting.






Hijacking the Write



At this point, certain the game had no stable data path for me to access HP, I decided to pivot. The data moves, but y’know what doesn’t? The code. Instead of focusing on where the data’s being stored, I decided to look at what’s writing to it. I grabbed the live HP address in Cheat Engine and scoped out the situation. What I found was something like mov [rbx+offset], value, and I made that the new target. rbx is holding the base of the live HP struct, so wherever the game just moved it, this instruction is pointing right at it. I’d overwrite the instruction at its fixed code site, bounce it out to my own code written somewhere in the game’s free memory, and then send it back from whence it came. This approach seemed great until I realized I’m looking at every single character’s HP write. That means enemies, Sora, party members, and whatever else has a health bar, so hijacking just based off of the instruction would cause everything to be invincible, completely defeating the purpose of the tool.




mov [rbx+0x5FC], r8d







The HP store instruction. rbx holds the live struct base, so wherever the game just moved Sora, this points right at it.







Isolating Sora



Naturally, my next target was finding some way to consistently identify Sora and ensure we only hijack his HP write. This is where C++ does me a solid. Every actor’s struct starts with a pointer to a vtable, a table of function pointers that every object of the same class shares. Put simply, this’ll do exactly what we need it to: serve as a stable way to identify writes to only Sora’s HP. By setting up a watchdog on the HP write instruction, I was able to identify Sora’s vtable value, 0x696B930, and use it to set up a filter that ensures the injected code only runs when Sora is the target for the HP write. This ended up being the correct solution. Across all transitions, I was able to consistently target Sora’s HP. However, this was done in Cheat Engine, and I’d really like a Python port.




cmp dword [rbx], 0x696B930   ; is this Sora's vtable?
jne do_store ; not Sora - let the write through untouched
; Sora-only code runs here
do_store:
mov [rbx+0x5FC], r8d ; original instruction







The vtable pointer at [rbx] is the same for every Sora and different for everything else. Gate on it and only our code — between the branch and the store — ever sees him.







Porting to Python



Porting the Cheat Engine AOB injection over to Python was a bit complicated, as Cheat Engine handles a lot of the complex stuff out of the box. Specifically, I needed to recreate Cheat Engine’s cave allocation and trampolining. In other words, I needed to overwrite an instruction in the game and tell it to go somewhere else to run my code (the trampoline jump). This code needs to be within 2GB of the location I overwrote, so I needed to find an open spot in memory within this range (the cave). Lastly, after the game runs my injected code, it has to return right back to where it started (falling back down from the trampoline jump). This ended up being a majority of the work, but it laid some solid, reusable groundwork for future cheats and games.




disp = cave_addr - (hook_addr + 5)
if not (-0x80000000 <= disp <= 0x7FFFFFFF):
raise ValueError("cave out of rel32 range - allocate nearer or jump absolute")
jmp = b"\xE9" + disp.to_bytes(4, "little", signed=True)







A jmp rel32 encodes the distance as a signed 32-bit offset from the end of the jump. Land your cave more than 2GB out and it doesn't fit.







Writing as the Game, Not After It



Finally, I started working on freezing the HP value. I started with a naive implementation using polling, which technically leaves room for a fast enough combo to still kill you. When fighting bosses that are known to do twenty-eight-move combos in 3-second windows it’s probably best to not leave margin for error. So I shifted from a polling strategy to co-opting the HP write. My cave already runs at the game’s own HP-store instruction, so instead of correcting HP after the game's already lowered it, the cave just overwrites the value the game is about to store to 9999. The low value never lands, and there’s no window for Sora’s death because we don’t write after the game, we write as the game. I’m now successfully facetanking Data Org bosses on Crit Mode with all PRO codes enabled, and I’ll have every single one of these phases mastered well before the end of the summer. PRO Code merit rank A, here we come.



Originally published on bphdev.com.

Information ergänzen Fachhinweis, Update, Korrektur oder Quelle zur Meldung beitragen
Gäste-Hinweise werden kurz redaktionell geprüft und danach hier angezeigt.

Community-Hinweise zur Meldung

0 freigegeben
Social ReaktionenReagiere als Erste:r — dein Feedback zählt!
Informations-Bewertung:

💬 Community discussion & comments

🌐 Join the main chat

Start the discussion in the Social Chat broadcast stream or submit an expert contribution via the supplement form above.

Community Rating &amp; Social Proof
⭐ Reader Rating
–
Ø / 5.0
No reader ratings yet
Was this article helpful?
0
Submit your rating
Detailed rating (optional)
Content & Quality
Source & Credibility
Freshness
Security Briefing Free · 1-Click Unsubscribe

Intelligence Digest — free

The top security news daily · unsubscribe anytime

Related story clusters & sources (vector AI)

6 Cluster
46 sources
Best Black Friday Toy Deals (2026): Up to 50% Off Lego, Board Games, and Toys
WIRED 19 min. ago
45 more sources
Latest from TechRadar46 min. agoBest Black Friday home office deals 2026 — save on our top-tested work essentials from Herman Miller, FlexiSpot, Logitech, Epson and more Latest from TechRadar44 min. agoSony WH-1000XM6 just hit a record-low price — now it's Black Friday Latest from TechRadar39 min. agoLenovo's Copilot+ IdeaPad Slim 3 with 16GB RAM and a 512GB SSD is £350 off for Black Friday The Verge34 min. agoOur favorite headphones and earbuds are cheaper than ever ahead of Black Friday Computer Bild48 min. agoBlack Friday: Live-Show ab 16 Uhr – die besten Deals t3n.de49 min. agoBlack Friday: Alle guten Angebote zu Apple, Samsung, Fritz und Co. in der Übersicht Golem.de40 min. agoAnzeige: Google Pixel 10a am Black Friday bei Amazon erstmals unter 380 Euro COMPUTER BILD1 hour agoCOMPUTER BILD: Die Deal-Checker! BLACK FRIDAY 2026 DEV Community34 min. agoBest kanban boards for AI coding agents in 2026 WIRED59 min. agoThe Best Black Friday Streaming Deals (2026): Apple TV, Disney, Paramount, and More GamingOnLinux Latest Articl…1 hour agoitch.io Creator Day & Black Friday 2026 sale is live IT Security News1 hour agoIT Security News Hourly Summary 2026-11-27 11h : The AI Threat Horizon: Why Speed, Edge AI and Baselines Are Our Best Defense and 13 more posts Latest from TechRadar1 hour agoBest Black Friday MacBook Air deals: biggest discounts on Apple's thin and light laptop range Latest from TechRadar1 hour agoProton VPN vs ExpressVPN – which secure VPN should you pick this Black Friday? WIRED10 hours agoThe 108 Best Black Friday Deals Are Now Live: Our Expert Picks for 2026 WIRED1 hour ago20 Best Black Friday Tech Deals (2026) WIRED1 hour agoThe 10 Best Black Friday TV Deals (2026): Save Up to 53% Off Giga.de1 hour agoBlack Friday 2026 bei Back Market: Dyson, Ninja und GoPro jetzt deutlich günstiger DEV Community1 hour agoSol's Take: Friday — November 27, 2026 Cyber Security News1 hour agoBlack Friday or Black Fraud Day? 7 Cyber Traps to Watch Out for Before You Click ‘Buy’ CNET2 days agoLive: Black Friday Is Here. Shop Our Favorite Deals and Save Up to 60% Apple, Anker, Bose and More WIRED1 hour ago22 Best Black Friday Deals Under $100 (2026) WIRED1 hour agoBest Black Friday Phone Deals (2026): iPhone, Pixel, and More The Verge1 hour agoThe absolute best Black Friday deals we’ve found (so far) Giga.de1 hour agoAirPods Pro 3 im Black-Friday-Sturzflug: So günstig waren Apples Top-In-Ears noch nie PC-WELT1 hour agoBlack Friday bei Amazon Haul: 20 Prozent Rabatt auf Powerbanks, Batterieprüfer, Speichersticks und mehr PC-WELT1 hour agoBlack Friday bei Amazon Haul: 20 Prozent Rabatt auf Powerbanks, Batterieprüfer, Speichersticks und mehr t3n.de2 hours agoKindle, Echo Dot, Fire TV: Diese neuen Amazon-Geräte sind zum Black Friday stark reduziert Macerkopf.de2 hours agoAmazon Black Friday Woche: iPad Air, iPhone 18 Cases, AirTag 2, Fire TV Sticks, Echo Dot und mehr appgefahren.de1 hour agoJMGO mit Black Friday-Deals: Heimkino-Bundles bis zu 60 Prozent günstiger PC-WELT1 hour agoGoogle Pixel 11 jetzt unglaubliche 430 Euro günstiger im Black-Friday-Deal: Tiefstpreis bei Amazon PC-WELT1 hour agoNorton 360 Premium-Security an Black Friday nur 19,99 Euro statt 100 Euro Latest from TechRadar1 hour agoThe best Black Friday headphone deals: Sony, AirPods and more Latest from TechRadar1 hour agoBest Black Friday mini PC deals 2026 live: Save on desktops from Apple, Geekom, GMKtec, Minisforum, and more Golem.de1 hour agoAnzeige: Amazon startet mit Glücksrad-Gewinnspiel in den Black Friday IT Security News2 hours agoIT Security News Hourly Summary 2026-11-27 10h : Top 10 Best Human Risk Management Platforms in 2026 [Ranked & Scored] and 17 more posts Latest from TechRadar2 hours agoThese smart and polished backpacks have accompanied me to events all over the world — and they're now 30% for Black Friday PC-WELT2 hours agoRiesiger 75 Zoll 4K-QLED-Fernseher fällt bei Amazon auf nur 469 Eur im Black-Friday-Angebot PC-WELT1 hour agoBlack Friday: Beliebte Mähroboter von Mammotion jetzt ab 599 Euro Latest from TechRadar2 hours agoSave up to around £200 on these top mini PCs for Black Friday — with multiple options and configurations available for your exact needs or preferences Caschys Blog4 hours agoFlexiSpot Black Friday 2026: Bis zu 40 % Rabatt auf Bestseller bei Amazon Golem.de2 hours agoBlack Friday: Verdi mobilisiert bei Amazon in Gera nur wenige PC-WELT2 hours agoNotebooksbilliger Black Friday: 150 Euro Extra-Rabatt – Laptops unter 300 Euro appgefahren.de2 hours agotink.de bietet bis zu 50 Euro Extra-Rabatt auf Black-Friday-Angebote PC-WELT2 hours agoNotebooksbilliger Black Friday: 150 Euro Extra-Rabatt – Laptops unter 300 Euro
22 sources
CVE-2026-95457 | Google Android Camera reconnect.shard.cml privileges management
VulDB Updates 1 hour ago
21 more sources
VulDB Updates1 hour agoCVE-2026-95458 | Google Android Bluetooth Setup bluetooth_setup_impl.cc OnAudioSourceConnectChanged privileges management VulDB Updates1 hour agoCVE-2026-95464 | Google Android logical_link.cc SignalError use after free VulDB Updates1 hour agoCVE-2026-95456 | Google Android a2dp_offload_manager.cc StartA2dpOffload use after free VulDB Updates1 hour agoCVE-2026-95463 | Google Android data_element.cc DataElement::Read recursion Engadget1 hour agoGoogle will soon share Android developers' addresses publicly VulDB Updates1 hour agoCVE-2026-95429 | Google Android BrEdrDynamicChannel bredr_dynamic_channel.cc resource consumption VulDB Updates1 hour agoCVE-2026-95434 | Google Android LowEnergyScanner low_energy_scanner.cc NotifyPeerFound resource consumption VulDB Updates1 hour agoCVE-2026-95441 | Google Android Bluetooth connection.cc OnDisconnectionComplete denial of service VulDB Updates1 hour agoCVE-2026-95422 | Google Android periodic_advertising_synchronizer.cc OnSyncEstablished assertion VulDB Updates1 hour agoCVE-2026-95423 | Google Android local_service_manager.cc OnWriteCCC null pointer dereference VulDB Updates1 hour agoCVE-2026-95447 | Google Android SDP Client client.cc OnRxFrame memory corruption VulDB Updates1 hour agoCVE-2026-95421 | Google Android Command Processing bredr_signaling_channel.cc DecodeRxUnit use after free VulDB Updates1 hour agoCVE-2026-95435 | Google Android advertising_data.cc FromBytes out-of-bounds VulDB Updates1 hour agoCVE-2026-95446 | Google Android credit_based_flow_control_rx_engine.cc ProcessPdu input validation VulDB Updates2 hours agoCVE-2026-95420 | Google Android Pairing security_manager.cc OnEncryptionChange privileges management VulDB Updates2 hours agoCVE-2026-95419 | Google Android Bluetooth Security Manager security_manager.cc OnPairingRequest unusual condition VulDB Updates2 hours agoCVE-2026-95416 | Google Android Link Encryption Key security_manager.cc OnPairingFailed denial of service VulDB Updates2 hours agoCVE-2026-95415 | Google Android RemoteCharacteristic remote_characteristic.cc denial of service VulDB Updates2 hours agoCVE-2026-95417 | Google Android remote_characteristic.cc ResolvePendingNotifyRequests use after free VulDB Updates2 hours agoCVE-2026-95414 | Google Android http_file_request_handler.cc GetFilePath path traversal VulDB Updates2 hours agoCVE-2026-95418 | Google Android logical_link.cc LogicalLink::SignalError use after free
Similar posts
🔍 Verwandte News

Auch interessante Nachrichten The Data Moves, The Code Doesn't: Building a KH3 Trainer in Python

Thematisch verwandte Begriffe: Data, Moves, Code, Doesnt · 6 Treffer

Laden...

Loading videos ...

Laden...

Loading posts ...

Laden...

Loading videos ...

Laden...

Loading posts ...

Laden...

Loading videos ...

Laden...

Loading posts ...

Laden...

Loading videos ...

Laden...

Loading posts ...

Laden...

Loading videos ...

💬 Loading comments…
Pull to refresh
Widgets & Topics
Loading widgets…
Nächster Beitrag