We Broke an RSA-2048 Protected Server Without Breaking RSA
How a custom protocol let us reuse a valid RSA-signed Brainfuck interpreter while redirecting it to attacker-controlled data. This Intigriti Challenge 1126 write-up follows the reverse engineering, the signature-scope mistake, and the trust-boundary lesson.
I was casually scrolling through X when I came across a post from Intigriti.
The post was only about 43 minutes old when I noticed it. Another Intigriti hacking challenge.
I wasn't exactly planning to spend my evening reverse-engineering a custom web server. But you know how these things go. You see a challenge, tell yourself you'll just have a quick look, and suddenly you're digging through a stripped ELF binary.
I shared the challenge with m0ssser, and we decided to give it a shot.
The target was:
https://challenge-1126.intigriti.io/
At first glance, it looked like a simple web application. Nothing particularly exciting.
But a few things caught our attention pretty quickly.
What followed wasn't a typical web exploitation challenge. There was no SQL injection, no authentication bypass through a login form, and no straightforward path traversal to the flag.
Instead, we ended up analyzing a custom binary protocol, a Brainfuck interpreter, and an RSA-2048 signature verification mechanism.
And the interesting part?
We didn't need to crack RSA. We just needed to understand what the server was actually verifying.
1. First look at the target
The application presented a basic login page.
My first instinct was to inspect the HTTP responses and understand what kind of application we were dealing with.
One header stood out:
HTTP/1.1 200 OK
Content-Type: text/html
X-Powered-By: superfastserver Version 2.0.0
Server: istio-envoy
superfastserver Version 2.0.0
That was interesting.
It wasn't Apache, Nginx, or another familiar server. It appeared to be a custom HTTP server built specifically for the challenge.
CVE-2026-99362 turns a small NFSv4.1 and NFSv4.2 reply-cache negotiation value into a kernel memory corruption boundary. Here is what the primary records show about scope, exploit evidence, patch status, and safe containment.
CVE-2026-138445 shows how Umami's Reports API let a client supplied filter prefix reach PostgreSQL query structure. The patch is a precise lesson in separating request data from SQL identifiers, and in verifying source revisions when a fix lands after the latest release.
Nov 30, 2026 / Jahan
Two additional endpoints provided useful information:
/changelog.html
/documentation.html
The changelog mentioned something particularly relevant: version 2.0.0 had fixed a path traversal issue and introduced a custom protocol protected by RSA-2048 signed code.
That gave us two directions to investigate.
The first was whether the earlier path traversal fix could still be bypassed.
The second was understanding this mysterious custom protocol and its signature verification.
The documentation also mentioned that the server served files relative to its working directory.
That detail became useful almost immediately.
2. Wait, is that the actual server binary?
During reconnaissance, we discovered that requesting the server binary itself returned a successful response.
GET /superfastserver HTTP/1.1
Host: challenge-1126.intigriti.io
The response contained a downloadable executable of approximately 48 KB.
The server was effectively making its own executable available.
We also found that requesting // exposed a directory listing. This helped explain how the application was serving files from its working directory.
The listing referenced the server and a source directory containing filenames such as:
challenge.c
rsa.c
bf.c
sha256.c
The source filenames were visible, but that didn't mean the files themselves could simply be downloaded. The server's file-handling logic only opened the basename from the working directory.
So the important discovery was the executable.
We downloaded it and identified it as a stripped, dynamically linked x86-64 ELF.
file superfastserver
A stripped executable means the useful developer-defined symbols are missing. Functions are harder to identify, and you have to reconstruct how the application works from its instructions and behavior.
Not impossible. Just more interesting.
At this point, the challenge had changed from web reconnaissance to binary reverse engineering.
3. Understanding what the server actually does
We started examining the executable using tools such as objdump, string inspection, and local debugging.
The 396-byte interpreter and 424-byte program formed an 820-byte signed message.
The server expected the RSA signature to authenticate those bytes.
So we needed to keep that signed content unchanged.
The trick was to supply another DATA frame afterward, causing the server to use a new data_off while preserving the already signed bytes.
The attack sequence was:
1. CODE → Original signed interpreter (396 bytes)
2. DATA → Original signed program (424 bytes)
3. DATA → Our replacement Brainfuck program (424 bytes)
4. SIGN → Original valid RSA signature
5. EXEC → Execute the interpreter
The second DATA frame was the important one.
Its payload was placed after the original signed region.
The new data_off pointed to our replacement program, but the hash still covered the original 820 bytes because the lengths remained unchanged.
The RSA signature still verified successfully.
However, when the server called the interpreter, it handed the interpreter a pointer to our program rather than the signed example program.
We had changed the behavior of an authenticated program without changing the authenticated bytes.
No private key.
No RSA factorization.
No signature forgery.
Just a mismatch between the authenticated bytes and the bytes actually consumed during execution.
A related way to express the bug is:
The server verified the integrity of a signed buffer, but failed to bind the runtime data pointer to that authenticated buffer.
8. But how do we get the flag from a Brainfuck interpreter?
At this stage, we could make the signed interpreter execute our own Brainfuck program.
But we still needed to locate and read the flag.
During reverse engineering, we found that the server loaded the real flag into thread-local memory before handling protocol commands.
The interpreter received a pointer to this memory as its Brainfuck tape.
In this particular implementation, the flag was positioned at an offset of 0x100 from the tape pointer.
That was incredibly useful.
We didn't need to open the flag file ourselves.
The server had already loaded the sensitive content and made the memory available to the code it intended to execute.
A tiny Brainfuck refresher
Brainfuck has a very small instruction set.
For this exploit, only two instructions mattered.
> Move the tape pointer one position to the right
. Output the byte at the current position
To reach the flag, we could move the pointer forward.
Then we could output bytes one by one.
The replacement program used this structure:
bf = b">" * 255 + b".>" * 80 + b"."
The leading > instructions moved the interpreter to the flag region.
The repeated .> instructions printed a byte and advanced to the next cell.
The final . printed the last byte.
The program was then padded to exactly 424 bytes:
bf += b"\x00" * (424 - len(bf))
The fixed length mattered.
Changing the DATA length would have changed the calculated hash length, which would have invalidated the original signature.
By preserving the length, we kept verification operating on the signed 820-byte region while directing the interpreter to our replacement instructions.
This was the moment the exploit came together.
9. Building the final payload
We had all the pieces:
The hardcoded authentication string.
The legitimately signed interpreter.
The original signed Brainfuck program.
Our replacement Brainfuck program.
The original RSA signature.
The HTTP endpoint that forwarded messages to the custom protocol.
We could now assemble a complete protocol session and deliver it in a single HTTP POST request.
Here, code, data, and signature refer to the components recovered from the server's signed sample.
The payload was delivered to:
POST /custom_protocol HTTP/1.1
Host: challenge-1126.intigriti.io
Content-Type: application/octet-stream
The binary request body contained the authentication secret followed by the protocol frames.
The server forwarded the request to its internal protocol listener.
That listener authenticated our session, accepted the frames, verified the signature, and executed the interpreter.
But the interpreter was now reading our Brainfuck program.
And instead of printing the original sample message, it printed the contents of the flag memory.
10. We got the flag!
The working exploit returned an HTTP 200 response and the successful protocol acknowledgments.
Then came the flag.
status: 200 OK
ACK ACK ACK ACK ACK
INTIGRITI{4c0532a9-f169-4a5d-ae02-a8b0671d2b07}
Flag:
INTIGRITI{4c0532a9-f169-4a5d-ae02-a8b0671d2b07}
That was it.
The server had successfully verified a valid RSA signature.
The cryptographic verification passed.
But the security boundary was broken because the signed content wasn't properly tied to the data the interpreter actually used.
We submitted the flag through Intigriti, with m0ssser added as a collaborator.
On November 16, the submission was accepted.
Intigriti also encouraged us to publish a write-up so other researchers could learn from the challenge.
And that's why you're reading this.
11. A few rabbit holes worth mentioning
There were a couple of details that made this challenge more interesting than a straightforward binary exploitation exercise.
The fake flag
The executable contained a string resembling an Intigriti flag, but it wasn't the real solution.
The actual flag was loaded separately into memory from /the_real.flag.
Simply extracting flag-looking strings from the binary wasn't enough.
The path traversal hint
The changelog mentioned a previously fixed path traversal vulnerability.
That looked promising at first.
But the file server's basename-only opening logic prevented using ordinary traversal to retrieve the real flag file.
The path traversal angle wasn't the intended solve.
Misleading instructions embedded in the binary
We also encountered strings that appeared designed to influence automated analysis tools.
Some suggested pursuing weaknesses such as a predictable RSA seed or memory corruption.
Those weren't necessary for the working exploit.
We treated those strings as untrusted data, not instructions.
It's an interesting lesson for anyone using AI-assisted tools during security research: an application being analyzed can contain deliberately misleading text, and that text should never be allowed to override the actual evidence.
In the end, the solve came from understanding the relationships between the protocol's offsets, lengths, signature verification, and execution behavior.
12. What was the actual vulnerability?
The root cause was an incorrect binding between authenticated content and runtime execution data.
The server verified:
SHA256(buffer + code_off, code_len + data_len)
But provided the interpreter with:
buffer + data_off
The code didn't adequately establish that the runtime data pointer belonged to the signed data region.
As a result, an attacker could preserve the originally signed bytes while redirecting the interpreter to separate, attacker-controlled data.
The problem wasn't that RSA-2048 was broken.
RSA did exactly what the implementation asked it to do.
The problem was that the implementation asked the wrong security question.
Relevant CWE categories
The closest classification is CWE-345: Insufficient Verification of Data Authenticity.
Another useful related category is CWE-347: Improper Verification of Cryptographic Signature, since the signature verification failed to establish authenticity of the complete information used by the execution operation.
The case also illustrates why code-signing designs must carefully define their authenticated message format and the relationship between signed bytes and execution-time inputs.
How could this be prevented?
Several changes would eliminate or significantly reduce this class of vulnerability.
First, the application should verify the exact data that the executable consumes. Signed offsets and lengths should be unambiguous, validated, and cryptographically bound to the message.
Second, the server should prevent unauthenticated changes to pointers and regions that affect execution.
Third, it should use well-established signature verification schemes, rather than relying on custom cryptographic message formats.
Fourth, the execution environment should not provide sensitive information such as flag contents to submitted programs unless that access is explicitly intended.
And finally, hardcoded authentication secrets embedded in downloadable binaries should never be considered a reliable security control.
13. What this challenge taught us
The biggest takeaway from this challenge was surprisingly simple.
A valid digital signature does not automatically mean the entire operation is secure.
It only establishes authenticity for the data that has actually been signed and correctly verified.
If an application verifies one set of bytes but later executes or interprets something else, the cryptographic protection may provide a false sense of security.
This type of mistake is especially interesting because you don't have to attack the underlying cryptographic algorithm.
You attack the assumptions surrounding it.
For anyone approaching similar CTF challenges, I would recommend paying close attention to the exact byte ranges included in a hash, how offsets are calculated, and whether verification covers all information that influences subsequent execution.
Those small implementation details can matter more than the headline algorithm.
Final thoughts
What began as a random Intigriti post on X turned into a fun evening of binary analysis and exploitation.
I shared the challenge with m0ssser, we worked through it together, and we eventually found a way to make a server execute our own Brainfuck instructions while still passing its RSA-2048 signature verification.
No broken RSA.
No recovered private key.
Just one subtle trust-boundary mistake.
And honestly, those are some of the most satisfying vulnerabilities to understand.
Huge thanks to Intigriti for putting together the challenge, and to m0ssser for working on the solve with me.