TCP Source Port Pass Firewall
The reporter claims that a firewall protecting a Shopify storefront allows TCP SYN packets to reach a normally blocked destination port when the source port is set to 80. An unauthorised user could therefore bypass the firewall's port filtering by choosing that source port.
Originally disclosed on HackerOne
- Triaged in 23 hours
- Fixed in 20 days
- Paid in 20 days
- Disclosed after 20 days
Affects: *yourshop.myshopify.com
Your firewall policy seems to let TCP packets with a specific source port pass through. Some types of requests can pass through the firewall. The port number 80 is the source port that unauthorized users can use to bypass your firewall.
Suggestion to fix: Make sure that all your filtering rules are correct and strict enough. If the firewall intends to deny TCP connections to a specific port, it should be configured to block all TCP SYN packets going to this port, regardless of the source port.
I tested on test.myshopify.com and it responded 4 times to 4 TCP SYN probes sent to port 20 using source port 80. However, it did not respond at all to 4 TCP SYN probes sent to the same destination port using a random source port.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the firewall rule matched on the source port instead of blocking all TCP SYN packets to the destination port regardless of source.
Impact
An attacker could reach services on ports that the firewall is meant to block, though the report only shows that connection attempts were answered, not that any service was exploited.
What the attacker needed
Network access to the target host; ability to choose the TCP source port
The fix
The firewall should be configured to block all TCP SYN packets to the protected port regardless of the source port, and filtering rules should be reviewed for strictness.
How it was found
- Send four TCP SYN probes to destination port 20 using source port 80 and observe replies.
- Send four TCP SYN probes to the same destination port using a random source port and observe no replies.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
A firewall decides which network connections are allowed. This report says packets with source port 80 got through to a port that should be blocked. The reporter tested this by sending connection attempts and counting replies.
What is Misconfiguration?
Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.