为什么我的 Rails 应用程序接收 URL 中带有 jQ​​uery 代码的请求?

发布于 2024-11-27 10:54:50 字数 1137 浏览 0 评论 0原文

我们在 Heroku 上运行的生产 Rails 2.3.5 应用程序收到了奇怪的请求,其中 URL 中包含 JavaScript 片段。我们在 Heroku 上使用 Hoptoad/Airbrake 设置了错误报告,我在其中看到如下请求:

http://cooksnetwork.williams-sonoma.com/publishers/448/widgets/;if(c.css(this[a], http://cooksnetwork.williams-sonoma.com/publishers /448/widgets/);f=e.css( http://cooksnetwork.williams-sonoma.com/publishers/448/widgets/,c.css(这个[a], http://cooksnetwork.williams-sonoma.com/publishers/448/widgets /).css(

这些是 RESTful 路由,小部件嵌套在发布者下。widgets/ 之后的字符串可以在缩小的文件中找到jQuery 1.4.2 源代码,位于 public/javascripts 中。每个请求都会导致 ActionView::MissingTemplate 错误,所有内容均位于 widgets/ 中。 > 和 .css 被解释为所需的操作,例如:

ActionView::MissingTemplate:缺少模板小部件/;if(视图路径 app/views 中的 c.erb

似乎是相同的四个片段,按相同的顺序,每 1-5 分钟作为一组出现,花费 1-2 分钟从开始到结束,

这些错误已被记录超过 60,000 次。是否有人有类似的经历或知道发生了什么?

Our production Rails 2.3.5 app, running on Heroku, is receiving bizarre requests that include snippets of JavaScript in the URL. We have error reporting set up with Hoptoad/Airbrake on Heroku, where I'm seeing requests like the following:

http://cooksnetwork.williams-sonoma.com/publishers/448/widgets/;if(c.css(this[a],
http://cooksnetwork.williams-sonoma.com/publishers/448/widgets/);f=e.css(
http://cooksnetwork.williams-sonoma.com/publishers/448/widgets/,c.css(this[a],
http://cooksnetwork.williams-sonoma.com/publishers/448/widgets/).css(

These are RESTful routes, with widgets nested under publishers. The strings following widgets/ are found in the minified jQuery 1.4.2 source, which we have in public/javascripts. Each request results in an ActionView::MissingTemplate error, with everything between widgets/ and .css being interpreted as the desired action, ex.:

ActionView::MissingTemplate: Missing template widgets/;if(c.erb in view path app/views

It seems to be the same four snippets, in the same order, occurring as a set every 1-5 minutes and taking 1-2 minutes from start to finish. The publisher ID varies over time.

These errors have been logged over 60,000 times now. Does anyone have similar experience or an idea what's happening?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

↙温凉少女 2024-12-04 10:54:50

这个网站是公开的吗?有人可能试图寻找 XSS 漏洞

Is this site public? Someone might be trying to find XSS exploits

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文