Menu

#70 Problem with CSRF after posting new posts.

Fixed
None
Medium
csrf
Defect
2016-09-10
2016-09-08
Jeff Steele
No

When posting with Jforum configured to use csrf, a parameter is added to the POST in the form of "?OWASP_CSRFTOKEN=token" .When the post is redirected to display the posted message, the new URL is in the form of "http://server/jforum/list/topic-id.page#post-id?OWASP_CSRFTOKEN=token". As a result, the anchor does not go to the newly-posted message, but rather the top of the page. If the order of the parameters were changed, to be:

"http://server/jforum/list/topic-id.page?OWASP_CSRFTOKEN=token#post-id"

The message would load correctly. However, I haven't been able to figure out how to make this change. Perhaps someone here can help?

Related

Wiki: NewFeatures250

Discussion

  • Jeff Steele

    Jeff Steele - 2016-09-08

    Thank you for your quick response. I came to the same conclusion when I looked in to it. I'll try to open a ticket with OWASP.

     
  • Ulf Dittmer

    Ulf Dittmer - 2016-09-08

    If you do open a ticket, please post the URL here, so I can keep tabs on it.

     
  • Ulf Dittmer

    Ulf Dittmer - 2016-09-09

    I have added a version of the CSRFGuard library which fixes this issue to the file download area; it's called csrfguard-3-latest.jar. You need to replace the csrfguard-3.1.0.jar file in WEB-INF/lib with this one, and the issue should be addressed.

     
  • Jeff Steele

    Jeff Steele - 2016-09-09

    Thank you very much Ulf! I really appreciate your extremely attentive and quick response to this. I will test it today.

     
  • Jeff Steele

    Jeff Steele - 2016-09-09

    I am running the new library and it has fixed the issue. Ulf, again, thank you for addressing this in such a timely manner. Your help is greatly appreciated. This ticket can be closed as far as I'm concerned.

     
  • Ulf Dittmer

    Ulf Dittmer - 2016-09-10
    • status: New --> Fixed
    • assigned_to: Ulf Dittmer
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.