Last modified: 2011-06-13 17:42:57 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T31165, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 29165 - Don't save ArticleFeedback ratings for pages where it is not enabled (like the front-end startup module does)
Don't save ArticleFeedback ratings for pages where it is not enabled (like th...
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
ArticleFeedback (Other open bugs)
unspecified
All All
: High normal (vote)
: ---
Assigned To: Krinkle
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-05-27 14:55 UTC by Helder
Modified: 2011-06-13 17:42 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Helder 2011-05-27 14:55:12 UTC
I just noticed that if I copy/paste the following to the address bar of my browser the ArticleFeedback form is loaded and I can submit the feedback even for pages where the extension is not enabled:

 javascript:mw.loader.load( 'ext.articleFeedback' );void 0;

Shouldn't the extension check if it is enabled before accepting the submitted data?
Comment 1 Trevor Parscal 2011-05-27 15:55:00 UTC
The detection is done in ext.articleFeedback.startup. You can do lots of things with JavaScript hacking, this is not a situation where it really matters to prevent people from enabling ArticleFeedback on pages themselves, so there's no need to lock it down harder.

If you were to use

javascript:mw.loader.load( 'ext.articleFeedback.startup' );void 0;


It would load a lightweight detection and bootstrapping script, that may or may not proceed to load ext.articleFeedback.
Comment 2 Helder 2011-05-27 22:16:41 UTC
What if people starts to target the user (talk) page of some editor and use the ArticleFeedback tool for vandalizing it?

I think it could be problematic, since there are plans[1] to let readers to provide also free-text comments about the page.

[1] https://secure.wikimedia.org/wikipedia/mediawiki/w/index.php?title=Article_feedback#Current_Plan_.28May_2011.29
Comment 3 Roan Kattouw 2011-06-01 16:14:38 UTC
(In reply to comment #2)
> What if people starts to target the user (talk) page of some editor and use the
> ArticleFeedback tool for vandalizing it?
> 
How would you use ratings to vandalize anything?

> I think it could be problematic, since there are plans[1] to let readers to
> provide also free-text comments about the page.
> 
Even if AFT allows you to submit text in addition to numerical ratings, the widget is still hidden for normal users on pages where it's not supposed to be active. The vandalism would only be visible to people that used the same trick to make the AFT widget visible on pages where it's not supposed to show up.

I guess a fitting real-life analogy would be vandalizing a billboard using invisible ink.
Comment 4 Helder 2011-06-01 16:35:06 UTC
Well... People could "rate a user" massively ([[Cyber-bullying]]?) as not being "Trustworthy" so that its name is displayed in (automatically generated) special pages such as
https://secure.wikimedia.org/wikipedia/en/wiki/Special:ArticleFeedback
https://secure.wikimedia.org/wikibooks/pt/w/index.php?title=Especial%3ARatedPages&ratingtier=1&namespace=0&ratingtag=reliability&uselang=en
and others which could be created in the future...

I think such pages could make these unwanted ratings to become visible, and considering that the ratings in the userpage are not visible to "normal" users, after a large amount of bad ratings is achieved, it would be difficult to revert.
Comment 5 Krinkle 2011-06-03 08:05:38 UTC
You're suggesting we implement a check similar to the one in the .startup module on the server-side when saving the rating ?

Sounds valid, albeit an edge case, does sound sane.

Reopening.
Comment 6 Krinkle 2011-06-03 08:07:19 UTC
(In reply to comment #4)
> Well... People could "rate a user" massively ([[Cyber-bullying]]?) as not being
> "Trustworthy" so that its name is displayed in (automatically generated)
> special pages such as
> https://secure.wikimedia.org/wikipedia/en/wiki/Special:ArticleFeedback
> https://secure.wikimedia.org/wikibooks/pt/w/index.php?title=Especial%3ARatedPages&ratingtier=1&namespace=0&ratingtag=reliability&uselang=en
> and others which could be created in the future...
> 
> I think such pages could make these unwanted ratings to become visible, and
> considering that the ratings in the userpage are not visible to "normal" users,
> after a large amount of bad ratings is achieved, it would be difficult to
> revert.


That's correct, afaik rating in any namespace (including but not limited to the User namespace) is currently possible when manually loading the module.
Comment 7 Krinkle 2011-06-03 08:08:13 UTC
I'll see if I can get around this in the weekend. Assigning to myself.
Comment 8 Helder 2011-06-03 14:22:30 UTC
(In reply to comment #5)
> You're suggesting we implement a check similar to the one in the .startup
> module on the server-side when saving the rating ?

Yep! (But I focused on the problem and forgot to mention this explicitly)
Maybe the whole ext.articleFeedback.startup.js module could be implemented server side. This way, no JS code from the extension would be sent to the readers on pages where the extension is not enabled, such as
https://secure.wikimedia.org/wikipedia/en/wiki/Trzebucza?debug=1

> Sounds valid, albeit an edge case, does sound sane.
> 
> Reopening.

(In reply to comment #7)
> I'll see if I can get around this in the weekend. Assigning to myself.

Thanks!
Comment 9 Roan Kattouw 2011-06-03 18:33:36 UTC
(In reply to comment #8)
> (In reply to comment #5)
> > You're suggesting we implement a check similar to the one in the .startup
> > module on the server-side when saving the rating ?
> 
> Yep! (But I focused on the problem and forgot to mention this explicitly)
> Maybe the whole ext.articleFeedback.startup.js module could be implemented
> server side. This way, no JS code from the extension would be sent to the
> readers on pages where the extension is not enabled, such as
> https://secure.wikimedia.org/wikipedia/en/wiki/Trzebucza?debug=1
> 
No, we can't do that, because server-side output is Squid-cached, and we want to be able to change the settings for randomly showing the widget (we call this the 'lottery') quickly.
Comment 10 Krinkle 2011-06-13 17:42:57 UTC
Fixed in r89982.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links