Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Is this a security breach ?

Carlo_13Carlo_13
edited May 2011 in Vanilla 2.0 - 2.8
Hi,

I am not 100% sure, but for forums using facebook/twitter/tagging plugin, i think anybody can change the setting just by adding to the url:

settings/tagging

or

settings/facebook

or

settings/twitter


Is this the same for you guy ?
Tagged:

Comments

  • ddumontddumont ✭✭
    I am allowed to change the Facebook appid on this forum.

    There was an error rendering this rich post.

  • ddumontddumont ✭✭
    Tagging gives me a permission problem. I didn't try twitter yet.

    There was an error rendering this rich post.

  • Oh gosh,

    I have just tried and you're right. And when you saved, is it effective ?

    Is there a way to block the access to non admin users ?
  • ddumontddumont ✭✭
    I don't want to change the config here. I didn't try to.

    There was an error rendering this rich post.

  • ddumontddumont ✭✭
    edited May 2011

    There was an error rendering this rich post.

  • I've submitted a patch in my pull request
    https://github.com/vanillaforums/Garden/pull/897
    @Todd @Tim @Lincoln @Mark
    Tks
  • LincLinc Admin
    edited May 2011
    Thanks for the heads up, I'm turning on the bat signal.
  • Should I manually apply @ddumont's patches to my 2.0.17.9 installation?
  • LincLinc Admin
  • LincLinc Admin
    I have applied @ddumont's patch to unstable branch.
  • crmarkscrmarks New
    edited May 2011
    The correction will bring up a login page if someone tries to submit the form, but it will still display the data to someone who isn't logged in. Still perhaps a security issue?
  • ddumontddumont ✭✭
    Maybe need another check in the view as well?

    There was an error rendering this rich post.

  • LincLinc Admin
    edited May 2011
    @crmarks I suspect the page is cached for you. Try a different browser or hard-refresh/clear your browser's cache.
  • My bad, I placed the new line after, rather than before,

    if ($Sender->Form->IsPostBack()) {

    On my twitter plug, now it immediately goes to a login prompt. Problem solved!

    Thanks Lincoln!
  • ToddTodd Vanilla Staff
    Thanks for the fixes guys. I uploaded a new version at http://vanillaforums.org/addon/vanilla-core. This will address the problem.
  • ddumontddumont ✭✭
    edited May 2011
    @Todd it may be helpful for application developers if the permissions declared in the plugin info section were automatically enforced so that it wouldn't be up to the plugin developer to place this check in the plugin settings method.

    Is it currently supposed to work like that?
    What's the "SettingsPermission" => "Garden.Settings.Manage" option do if not this? Would this be a bug, or feature that got overlooked?

    There was an error rendering this rich post.

Sign In or Register to comment.