Skip to content
Account takeover Disclosed report Intermediate

apps.owncloud.com: Referer protection Bypassed

The appstore at apps.owncloud.com used an HTTP Referer check as CSRF protection, but the validating regular expression was too weak, allowing an attacker to bypass the check.

herlove Follow

Originally disclosed on HackerOne

  • Triaged in 37 hours
  • Fixed in 3 months
  • Disclosed after 3 months

Summary by the program

@herlove has reported a vulnerability within the appstore at apps.owncloud.com allowing an adversary to bypass the HTTP referer based CSRF protection. This issue was caused by an insufficient regular expression which has been patched meanwhile.

On request of the reporter this issue has been disclosed limited and not public.

Summary by the researcher

i reported a vulnerability in which attacker was able to bypass referer protection which is commonly used for protecting users from CSRF attacks. This happened due to weak regular expression.

The original report as published on HackerOne, by herlove. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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 regular expression used to validate the HTTP Referer header was insufficiently strict, so crafted Referer values could satisfy it.

Impact

An attacker could bypass the Referer-based CSRF protection.

The fix

The insufficient regular expression was patched.

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.

Websites often check the 'Referer' header to stop other sites making requests on a logged-in user's behalf. This check used a pattern-matching rule that was too loose, so a malicious site could craft a request that still passed the check, bypassing the protection.

What is Account takeover?

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.

More from ownCloud

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Account takeover

The lesson behind this report.

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.