Sitemap
InfoSec Write-ups

A collection of write-ups from the best hackers in the world on topics ranging from bug bounties and CTFs to vulnhub machines, hardware challenges and real life encounters. Subscribe to our weekly newsletter for the coolest infosec updates: https://weekly.infosecwriteups.com/

Business Logic: Broken. Wallet: Hacked. OTP: Bypassed.

5 min readJul 19, 2025

--

Press enter or click to view image in full size

📌 Special thanks to Shah kaif my dedicated learning partner — for collaborating on this research and finding.

During a recent security assessment of redacted.ai, a virtual assistance platform that connects clients with remote talent including engineers, mentors, and co-founders, I uncovered several critical vulnerabilities that could compromise user accounts, financial data, and platform integrity.

⚠️ This post is for educational purposes only. I follow responsible disclosure. The name redacted.ai replaces the real domain for confidentiality.

🧠 What’s redacted.ai?

redacted.ai is an AI-based job-matching platform that:

  • Lets users sign up using email, Verify their account using Digilocker services for KYC,
  • Rewards actions with wallet coins,
  • Provided Virtual assistance and Job matching,
  • Helped with Mock interviews,

Also they were hiring for Remote Cybersecurity Specialist, and that was the main reason I had visited the site. Everything seemed to be perfect.

Simple idea. Good UX.
— But one weekend, I got curious and poked around.

Let’s just say… things fell apart fast.

Vulnerabilities at a Glance

Press enter or click to view image in full size

1️⃣ OTP? Nah, Who Needs That!

redacted.ai used 4-digit OTPs for login and forgot-password flows — with no rate limiting, no CAPTCHA, and no timeouts.

I could easily bruteforce OTPs as they were only of 4 digits and Rate limits were not enforced.

Screenshot of The Attack:

Press enter or click to view image in full size

This confirmed Pre-Account Takeover + Account Takeover of any user using forgot-otp feature.

📉 Impact:

  • Any user account can be hijacked.
  • OTP system is meaningless.
  • Attacker doesn’t need the password, just the email address.

2️⃣ Business Logic Flaw — Wallet Be Like “Make It Rain 💸”

After creating a new account, I explored the “Wallet” feature. A popup appeared allowing me to request an amount — in dollars — despite my wallet balance being exactly $0. 🫠

Press enter or click to view image in full size

I sent request of some dollars and naturally, I intercepted the request using Burp Suite. When I sent a payment request for some random amount, the response was:

{
"error':"Insufficient wallet balance for this request."
}

Here, I changed the 400 Bad Request to 200 OK and removed the body of request and forwarded the request. To my surprise, The frontend accepted this and sent:

{
"userId':"6872b......",
"amount":1000000,
"type":"debited"
}

Here, All I had to do is changed the “type” → “debited” to “credited”.

Get Het Patel’s stories in your inbox

Join Medium for free to get updates from this writer.

So, Here’s what I did,

{
"userId':"6872b......",
"amount":10000000000......,
"type":"credited"
}

And this is what I got:

And the frontend:

Press enter or click to view image in full size

💡 Why This Is Critical:

  • No server-side validation for wallet transactions.
  • Trusting frontend logic for financial operations is a massive red flag.
  • I was able to manipulate the wallet balance to any amount without any authentication or verification.

🛡️ Impact:

  • Unauthorized wallet crediting
  • Leads to potential purchase abuse, gift card fraud, or platform exploitation
  • Possible financial loss to the platform

3️⃣ Stored XSS in Resume Upload (PDF) and SVG Upload

The platform allowed users to upload their resumes as PDFs and profile pictures as SVGs — both of which were vulnerable to Stored Cross-Site Scripting (XSS).

PDF Upload: Stored XSS 🪓

I crafted a malicious PDF file containing JavaScript payloads and uploaded it via the resume upload section. When any admin or HR opened this document in-browser, the JavaScript executed silently in their context.

This led to persistent XSS, as the PDF was stored and retrievable via a direct link — no sanitization or validation of file contents!

SVG Upload: Stored XSS Again! 🧠

All I had to do is update :

filename="example2.jpg" --> "example2.svg"
Content-Type: image/jpeg --> image/svg+xml

Remove the jpeg content and replace it by js script.

SVG images are actually XML files — and JavaScript can be embedded directly in them. I uploaded an SVG with the following payload:

<svg xmlns="http://www.w3.org/2000/svg">
<script>alert('Hello from SVG script');</script>
</svg>

Boom! ⚠️ Whenever someone visited the profile or page rendering this SVG, the script fired.

Press enter or click to view image in full size

5️⃣ Mobile Number Verification Bypass

While updating the profile, the platform sends an OTP to verify the mobile number. However, this mechanism was flawed due to poor frontend-side validation and lack of backend enforcement.

I entered invalid mobile number and requested for OTP.

And also did provided false OTP. As expected the response was:

SAME!!! Again I tried changing bad request to → 200 OK and changed the body content to:

{
"success":true,
"error":"Invalid...."
}

And this fired an another POST request at an /api/update-user-data:

Press enter or click to view image in full size

And that returned with:

About the Authors:

  • Het Patel — VAPT Intern| Cybersecurity Researcher | Bug Hunter | Top 5% THM | Coffee Addict ☕
  • Kaif Shah — Security Researcher | CEHv11 | CRTA | Top 4% THM | Bug Hunter

Happy Hacking! (Ethically, of course) 😉🔒

Bug Bounty
Bug Bounty Writeup
Business Logic
Xss Attack
Bug Bounty Tips

--

--

InfoSec Write-ups
InfoSec Write-ups

Published in InfoSec Write-ups

A collection of write-ups from the best hackers in the world on topics ranging from bug bounties and CTFs to vulnhub machines, hardware challenges and real life encounters. Subscribe to our weekly newsletter for the coolest infosec updates: https://weekly.infosecwriteups.com/