The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
CSRF protection error when security token is being submit.
My form below is giving me a CSRF protection error but the security key is being submit with the form, so it shouldn't. I've checked the DOM and the security key is being put in the value field correctly.
Code:
<form action="newindex.php?do=submit" method="post"> Subject:<br> <input type="text" id="subject" name="subject"><br> <textarea id="article" id="article" name="article"><?php echo $_POST['article'] ?></textarea><br> <div class="sliderimage"><h2 class="blockhead">Slider Image:</h2> <table><tr><td><b>Image:</b><br>Dimensions should be 640x360.</td><td> <input type="file" id="image" name="image"></td></tr> <tr><td><b>Transition:</b></td><td> <select id="transition" name="transition"> <option value="">Random</option> <option value="sliceDown">slideDown</option> <option value="sliceDownLeft">sliceDownLeft</option> <option value="sliceUp">sliceUp</option> <option value="sliceUpLeft">sliceUpLeft</option> <option value="fold">fold</option> <option value="fade">fade</option> <option value="slideInRight">slideInRight</option> <option value="slideInLeft">slideInLeft</option> <option value="boxRandom">boxRandom</option> <option value="boxRain">boxRain</option> <option value="boxRainReverse">boxRainReverse</option> <option value="boxRainGrow">boxRainGrow</option> <option value="boxRainGrowReverse">boxRainGrowReverse</option> </select></td></tr> <tr><td><b>Caption:</b></td><td> <input type="text" id="caption" name="caption"></table><br></div> <input type="hidden" name="securitytoken" value="<?php echo $bbuserinfo[securitytoken] ?>" /> <div class="center"><input type="button" value="Preview" class="preview"><input type="submit" name="submit"></div> </form> |
#2
|
||||
|
||||
CSRF is not directly related to the security token. It sounds like you're submitting data from a domain that isn't the same as the domain vbulletin is on.
|
#3
|
|||
|
|||
This page is submitting to itself...
|
#4
|
||||
|
||||
Is your page, within the same domain as vBulletin though?
|
#5
|
|||
|
|||
Come on Zach...
He's missing the security token hidden field. nvm no he's not |
#6
|
|||
|
|||
Yes.
Fixed it, thanks anyway. ^^ |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|