Hook
Presented with a private invite to a small scope program that seemed to have already been picked clean, I decided to dive in and give it a try which led to the discovery of multiples weaknesses that could be chained together to achieve a higher impact.
Summary
The target was a retail site with a single URL in scope. Everything here grew out of one web cache deception bug on the site. Depending on which page was cached, it either served my own payload straight to a victim or leaked the victim's CSRF token and personal data.
That one bug branched into three reported findings: a self-XSS delivered through a cached page, a stored XSS written into the victim's account over CSRF, and an HTML injection in the phone field that broke the victim's profile and checkout pages, also using the CSRF token. All three were accepted as medium severity, and resulted in 3 bounties.

Background
A quick note on the terms, since a few of them come up a lot.
Web cache deception tricks a cache, here a CDN, into storing a page that was meant to be private. You request a private page with a URL that looks like a static file, the cache trusts that file-like ending, and it keeps a copy of the response. From then on, anyone who opens the same URL gets that stored copy. That can go in two ways: the cached page can be a victim's, leaking their data to you, or the attacker's page serving a payload to everyone who opens the link.
Client-side template injection, or CSTI, is when your input ends up inside a template that the browser evaluates. If the app treats what you typed as template code rather than plain text, you can run expressions, and often JavaScript.
Self-XSS is cross-site scripting that only runs in your own account. On its own it is close to useless, because you cannot make anyone else trigger it. The whole game is finding a way to plant it in someone else's account, which is what turns it into a real stored XSS.
CSRF, or cross-site request forgery, is when a logged-in victim sends a request they never meant to send. If the only thing guarding a sensitive action is a token the attacker can read, that protection is as good as gone.
Discovery Process
The scope was small and quiet, so I slowed down and tested the things I figured other people had given up on.
My first real hit was a web cache deception on the /my-account page. I wrote it up and it came back as a duplicate. However, the duplicate was only about that one page, so if the cache was misconfigured there, it could easily be misconfigured elsewhere. I kept testing instead of dropping it.
While poking at the address form, I threw the classic {{7*7}} at the addressName field testing for SSTI. It came back as 49. That looked like SSTI at first, but none of the follow-up payloads did anything, so I switched my guess to client-side template injection. I tried {{alert(1)}} and it popped an alert. On its own this was just self-XSS, since the payload only lived in my own account. The cache deception bug is what elevated its impact. I set my own addressName to the payload, used the WCD trick to cache my own address page, and sent the cached link to the victim. When they opened it and looked at the addresses, my payload ran in their browser. Chained with the original WCD, this was accepted as a medium severity finding (CVSS 5.4).

The same flaw turned up on the homepage /, and that opened a cleaner path. When a logged-in victim's homepage got cached, the stored copy carried their CSRF token along with some personal data. Once I could read that token, they no longer had any CSRF protection. I used it to overwrite the victim's own addressName with {{alert(1)}}, so the payload ended up stored in their account and fired when they viewed their addresses at /my-account/profile. That is a true stored XSS, and was accepted as a medium severity finding (CVSS 6.9).

The leaked token reached further than the address. While testing other profile fields I had noticed the phone number field was vulnerable to HTML injection, and the same CSRF approach let me write an unclosed comment (<!--) into it, which broke the victim's profile and checkout pages leading to a partial DOS. That went in as a medium severity bug (CVSS 4.2).

Reproduction steps
These are the steps for each branch of the chain. They all start from the same web cache deception, and the target is shown as redacted.com.
Branch 1: self-XSS via a cached page
1. In your own account, set your addressName to the CSTI payload {{alert(1)}}.
2. Request the account page that lists your addresses appending a static file extension using the ; delimiter, for example https://redacted.com/my-account;poc.js.
3. Send that cached link to the victim.
4. When the victim opens it and looks at the addresses, the cached page serves your payload and the script runs in their browser.
Branch 2: stored XSS via CSRF
1. Send the victim a homepage link with a static file extension, like https://redacted.com/;testpoc.js.
2. When they open it while logged in, their own homepage gets cached at that URL, and the cached copy still has their CSRF token and personal data in it.
3. Open that same URL yourself and lift the token from the cached page. You can read it in the console with ACC.config.CSRFToken, or just search the source for 'Token'.
4. Build a CSRF POC using the victim's token to create a new address, with addressName set to the payload {{alert(1)}} :
<!DOCTYPE html>
<html>
<head>
<title>CSRF PoC</title>
</head>
<body>
<h1>CSRF Proof of Concept</h1>
<form action="https://www.redacted.com/my-account/add-address" method="POST">
<input type="hidden" name="addressId" value="">
<input type="hidden" name="addressName" value="{{alert(1)}}">
<input type="hidden" name="line1" value="123 rue test">
<input type="hidden" name="line2" value="123">
<input type="hidden" name="postcode" value="76000">
<input type="hidden" name="townCity" value="Rennes">
<input type="hidden" name="countryIso" value="FR">
<input type="hidden" name="shippingAddress" value="false">
<input type="hidden" name="billingAddress" value="false">
<input type="hidden" name="validateViaOrda" value="false">
<input type="hidden" name="checkAddress" value="true">
<input type="hidden" name="CSRFToken" value="<CSRF_TOKEN_HERE>">
<button type="submit">Submit</button>
</form>
<script>
// Auto-submit the form.
document.forms[0].submit();
</script>
</body>
</html>5. Send that page to the victim. When they load it, the form submits itself with their token and overwrites their addressName with the payload.
6. The payload runs the next time they open their address at /my-account/profile.
Branch 3: profile and checkout DoS via CSRF
1. Cache the victim's homepage and grab their CSRF token, the same way as Branch 2.
2. Build the same kind of CSRF page, but point it at the phone number field and set the value to an unclosed HTML comment <!--.
3. Send it to the victim. Once the form submits, their phone field holds the broken markup.
4. From then on their profile page and checkout page fail to render, so they cannot manage their account or place an order.
Impact
Leveraging the above described chain, an attacker could:
- Cache a victim’s authenticated homepage and read their CSRF token and personal data straight out of it.
- Use that token to forge profile changes as the victim, defeating CSRF protection entirely.
- Run arbitrary JavaScript in the victim’s logged-in session, either by serving a cached payload page or by storing the payload in the victim’s own account.
- Break the victim’s profile and checkout pages by injecting a HTML comment (<!--) into their phone field, leaving them unable to manage their account or place an order.
Fix
The team cut the root of the chain by taking those pages out of the cache. The affected responses now come back with CF-Cache-Status: DYNAMIC and the Cache-Control header set appropriately, so the private pages are no longer stored and the token no longer leaks.
For the injection bugs, the addressName and phone number fields now validate and sanitize what goes into them, which shuts both the CSTI and the HTML injection.
Lessons
- Don't skip quiet, picked-over programs. The leftover bugs sit where everyone else stopped looking.
- Treat a duplicate on one endpoint as a hint to test the same bug everywhere else.
- Follow the app's behavior, not your first guess. {{7*7}} returning 49 looked like SSTI but was CSTI.
- Chaining turns weak bugs into real ones. A self-XSS plus a readable CSRF token became code running in a victim's session.