Nextcloud: CSRF token validation is missing

ID H1:221043
Type hackerone
Reporter 596a96cc7bf9108cd896f33c4
Modified 2017-04-19T06:55:51



Hello Security Team,


I know this is a medium risk issue but i want you guys to be aware of it that the CSRF token validation is missing at the time of login on login page.

PoC Code:

<form name="frmlogin" action="" method="post" onsubmit="return ValidateForm();"> <div class="row"> <div class="col-xs-12"> <div class="form-group"> <label class="control-label">Email</label> <input type="text" name="member_username" id="member_username" value="" class="form-control"> </div> </div><!-- col-sm-12 --> <div class="col-xs-12"> <div class="form-group"> <label class="control-label">Password</label> <input type="password" name="member_password" class="form-control"> </div> </div><!-- col-sm-12 --> <div class="col-xs-12"> <div class="form-group text-center"> <button class="btn btn-search btn-primary col-xs-12 mb10" style="padding:10px;margin-top:10px;" type="submit" name="login" value="Login Now">Login Now</button> <a href="">Forgot Password?</a> </div> </div><!-- col-sm-12 --> </div><!-- End Row --> </form> <script type="text/javascript"> var tabs = ''; //<![CDATA[ function ValidateForm() { var f = document.frmlogin; if(f.member_username.value=='') { alert('Please enter the Username.'); f.member_username.focus(); return false; } if(f.member_password.value=='') { alert('Please specify the Password.'); f.member_password.focus(); return false; } } //]]> </script>

PoC Attached is the html code: {F175917}


  • An attacker can Brute force their password.
  • Brute force Attack

Regards, j3