安全问题:绕过Rails 3.1中的reCaptcha

时间:2012-11-01 22:27:26

标签: ruby-on-rails security recaptcha spam

我不明白他们如何成功发布这么多垃圾邮件,即使我有recaptcha工作(如果verify_recaptcha ...)这是我在控制器中的内容:

def create
    @comment = Comment.new(params[:comment])

    respond_to do |format|
      if verify_recaptcha(:model => @post, :message => "Oh! There's a problem with reCAPTCHA's input!")
        if @comment.save
          #flash[:submit_notice] = 'Comment was successfully created.'
          Notifications.comment_notification(@comment).deliver
          format.html { redirect_to(:back) }
        else
          format.html { redirect_to(@comment) }
        end
      end
    end
  end

这就是我在production.log中看到的内容:

Started POST "/en/comments" for 199.15.234.180 at 2012-11-01 19:50:48 +0200
Processing by CommentsController#create as */*
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"yFrJyx7EPCG9d29+PEbkNOHlUpuyXIVSy5acGNOO0mU=", "comment"=>{"pos.....

垃圾邮件HTML如下。据我了解,“as * / *”不是HTML,这是一个“正常”的POST请求。所以我猜这个问题就在那里。试图google for * / *没找到任何东西。那到底是什么?

更新:[已解决]

这看起来不是一个问题,只是一个无聊的人持续发布垃圾邮件评论并解决reCaptchas(或者机器学习到目前为止已经发展了?)。可能Mollom是下一个要添加的东西:)

0 个答案:

没有答案
相关问题