Opened 6 years ago
Closed 3 years ago
#4126 closed defect (bug) (fixed)
"Special contributions" template leaks PII
Reported by: | jonoaldersonwp | Owned by: | dd32 |
---|---|---|---|
Milestone: | Priority: | high | |
Component: | Codex | Keywords: | seo analytics privacy close |
Cc: |
Description
E.g., https://codex.wordpress.org/Special:Contributions/Jany2786@gmail.com
This template should have a meta robots value of 'noindex, follow'.
Change History (17)
#2
@
6 years ago
For reference, that isn't the email address, it's the username. Those are old spam accounts that used the same values for email and username.
We no longer allow accounts to have email addresses as their username. Been like that for a few years. Usernames must be lowercase alphanum only.
This ticket was mentioned in Slack in #meta by tellyworth. View the logs.
6 years ago
#4
@
6 years ago
Can (should) we handle URLs with user=\w+@
in a special way? Force a 404 or 410, redact the address from the page, something like that? Just in case there are any ancient non-spam addresses in there.
#5
@
6 years ago
Hmm, we should probably avoid trying to do anything clever with the URLs on request, but, we can definitely control indexing of these (types of) URLs, and, separately, I've plans to keep them out of Google Analytics etc by doing some housekeeping in Google Tag Manager before tracking scripts fire.
#7
@
5 years ago
- Owner set to tellyworth
- Status changed from new to accepted
What's the solution here? Noindex all Special:
pages? Just Contributions
and Log
? Is it specific to those with @
in the URL?
#8
@
5 years ago
Let's noindex anything starting with https://codex.wordpress.org/Special:Contributions/ - I don't see any useful/valuable (landing) pages in that set.
#9
@
4 years ago
This ticket was mentioned in Slack in #meta by tellyworth. View the logs.
4 years ago
#14
@
4 years ago
- Owner changed from tellyworth to dd32
Unfortunately now that the above commit has been deployed (I think) some pages aren't being matched correctly.
For example, https://codex.wordpress.org/Special:SpecialPages doesn't include the noindex although it should, but User pages are noindexed.
#15
@
4 years ago
In r11568-codex I've updated the noindex code to be this:
// Noindex various pages. See Meta #4373, #4127, #4126. $noindex = ( // No article ( $pageOutput->isArticleRelated() && ! $pageOutput->getRevisionId() ) || // The User, Special, and File namespaces are not indexed. in_array( $pageOutput->getTitle()->getNsText(), array( 'User_talk', 'User', 'Special', 'File', ), true ) || // It's an internal 'index.php?..' page preg_match( '~^/index\.php~', $_SERVER['REQUEST_URI'] ) );
That seems to match all pages I could find, just need to wait upon a systems deploy / cache clear again.
There's a bunch of is....()
functions in MediaWiki that could be used, but it wasn't straight forward to use those functions I found due to the number of them. isArticleRelated()
is also truthful for user pages, as is wiki pages.
Also applies to the "Special: Log" template - see https://codex.wordpress.org/index.php?title=Special:Log&type=&user=Sassyloving25@gmail+com&page=Sassyloving25&year=2018&month=11&hide_tag_log=1