Page MenuHomePhabricator

Bawolff (Brian Wolff)
Busy-bodyAdministrator

Today

  • Clear sailing ahead.

Tomorrow

  • Clear sailing ahead.

Saturday

  • Clear sailing ahead.

User Details

User Since
Oct 25 2014, 1:53 AM (552 w, 4 d)
Roles
Administrator
Availability
Available
IRC Nick
Bawolff
LDAP User
Brian Wolff
MediaWiki User
Bawolff [ Global Accounts ]

Hi!

Recent Activity

Yesterday

Bawolff added a comment to T395214: Multiple test failures for MediaWiki\Minerva\SkinMinervaTest::testHasPageTabs.

It seems like the reset title cache patch may have broken scribunto tests, at least on the REL1_43 branch.

Wed, May 28, 7:30 PM · MW-1.43-notes, MW-1.44-notes, MW-1.45-notes (1.45.0-wmf.4; 2025-06-03), Patch-For-Review, Web-Team, PHP 8.1 support, MinervaNeue, ci-test-error (WMF-deployed Build Failure)

Tue, May 27

Bawolff added a comment to T395310: Change the signature to respect viewing users time format ( 12h or 24h ).

OSM is using javascript gadget to swap the 24 hr dates to 12 hour ones

Tue, May 27, 7:26 PM

Sat, May 24

Krinkle awarded T367346: WMF-Last-Access-Global cookie set on wrong domain when accessing static assets a Love token.
Sat, May 24, 2:30 PM · Data-Engineering (Q4 2025 April 1st - June 30th), Infrastructure-Foundations, Traffic

Sun, May 18

Bawolff changed the visibility for T394590: Reflected XSS in WikiCategoryTagCloud.
Sun, May 18, 6:52 PM · WikiCategoryTagCloud, Vuln-XSS, affects-Miraheze, Security, Security-Team
Bawolff added a comment to T266155: Frequent "Error: 429, Too Many Requests" errors on pages with many (>50) thumbnails.

We should probably stop linking to sizes we no longer make.

Sun, May 18, 11:53 AM · MW-1.42-notes (1.42.0-wmf.7; 2023-11-28), MW-1.40-notes (1.40.0-wmf.24; 2023-02-20), serviceops, StructuredDataOnCommons, SRE, MediaWiki-File-management, Thumbor, Commons
Bawolff added a comment to T394589: Server side upload for Koavf.

See T393851

Sun, May 18, 2:00 AM · Server-side-upload-request, video2commons

Sat, May 17

Bawolff added a comment to T394522: Custom signatures allow the use of hidden external links that can be used for vandalism.

I kind of wonder if this is the sort of thing better handled by simply blocking users who do things like this. Even if we banned external links in sigs, nothing is stopping the user from manually writing out their preferred "signature" instead of using ~~~~. Restrictions on signatures more serve to prevent people who don't know better from doing annoying things. Its not really a good security measure against actually malicious users.

Sat, May 17, 10:45 PM · MediaWiki-Core-Preferences
Bawolff closed T391473: Common API upload failures with very large files as Resolved.

I guess so. In the longer term we probably want a better solution though.

Sat, May 17, 1:29 PM · MW-1.44-notes (1.44.0-wmf.27; 2025-04-29), MediaWiki-File-management, Commons, MediaWiki-Uploading

Sun, May 11

Bawolff closed T393839: Server side upload for Trade as Resolved.

Anyways, closing this bug since the file is uploaded.

Sun, May 11, 8:49 PM · Server-side-upload-request, video2commons
Bawolff created T393851: PublishStashedFileJob is being incorrectly retried if it takes longer than 6 minutes.
Sun, May 11, 8:48 PM · MW-Interfaces-Team, WMF-JobQueue, MediaWiki-Uploading
Bawolff added a comment to T393839: Server side upload for Trade.

Looking at logs, it looked like what happened is there were two publish jobs. The second one failed (due to the first one having a lock) which caused an error to be communicated to the client. However the first one was still going and eventually succeeded. Indeed https://commons.wikimedia.org/wiki/File:Cat_Valentine's_TOP_62_Moments_in_Victorious!_-_NickRewind.webm exists

Sun, May 11, 8:44 PM · Server-side-upload-request, video2commons
Bawolff added a comment to T393839: Server side upload for Trade.

Any suggestions for alternative solutions i can do instead?

Sun, May 11, 7:59 PM · Server-side-upload-request, video2commons

Mon, May 5

Bawolff claimed T393348: Add infrastructure to MW (stash) upload pipeline to allow converting on upload.
Mon, May 5, 5:41 AM · MediaWiki-Uploading
Bawolff created T393348: Add infrastructure to MW (stash) upload pipeline to allow converting on upload.
Mon, May 5, 4:56 AM · MediaWiki-Uploading
Bawolff added a comment to T391473: Common API upload failures with very large files.

Btw, when this goes live (on Commons and on enwiki), can you let me know?

Mon, May 5, 4:40 AM · MW-1.44-notes (1.44.0-wmf.27; 2025-04-29), MediaWiki-File-management, Commons, MediaWiki-Uploading

Tue, Apr 29

Bawolff added a comment to T392782: Wikimedia\Tests\XmlTypeCheckTest::testRecursiveEntity memory-spikes & occasionally hangs when running PHPUnit.

This is kind of a weird situation, because the thing the test is supposed to be testing is that this doesn't happen.

Tue, Apr 29, 9:14 AM · Vuln-DoS, MW-1.44-notes (1.44.0-wmf.27; 2025-04-29), MediaWiki-Core-Tests, Performance Issue, MediaWiki-libs-Mime, Security, Security-Team

Apr 22 2025

Bawolff added a comment to T391473: Common API upload failures with very large files.

So it looks like the DB use is as follows:

Apr 22 2025, 11:59 PM · MW-1.44-notes (1.44.0-wmf.27; 2025-04-29), MediaWiki-File-management, Commons, MediaWiki-Uploading

Apr 14 2025

Bawolff added a comment to T391473: Common API upload failures with very large files.

Thanks. I'll investigate further. My gut feeling is that opening the transaction is more due to the mediawiki framework than anything else, and the code isn't really relying on implicit transactions being there, so i suspect that is something fixable without too much trouble (and in any case given we are reconnecting, we dont get the benefits of implicit transactions anyways)

Apr 14 2025, 8:32 PM · MW-1.44-notes (1.44.0-wmf.27; 2025-04-29), MediaWiki-File-management, Commons, MediaWiki-Uploading

Apr 13 2025

Bawolff added a comment to T391784: Gradually isolate mediawiki authentication code and infrastructure.

If I was trying to pivot, one thing I thing I'd try to do would be to try and write something to db or cache that might get executed. e.g. Anything still using php unserialize() or Mustache templates. So one thing that might make sense here is to set a different $wgSecretKey between auth and normal (for mustache) [or making a new var just for that], and making sure every instance of unserialize() uses the second argument to limit class types.

Apr 13 2025, 11:15 PM · SecTeam-Processed, Security-Team, MediaWiki-Platform-Team, serviceops, MediaWiki-extensions-CentralAuth, MediaWiki-Core-AuthManager, Security, Epic
Bawolff added a comment to T391750: QuickInstantCommons does not use the title capitalization of the file repo.

I'm pretty sure that master should work with 1.43, but im also happy to backport if that makes things easier.

Apr 13 2025, 4:59 PM · affects-Miraheze, MediaWiki-extensions-QuickInstantCommons

Apr 12 2025

Bawolff updated subscribers of T391473: Common API upload failures with very large files.

So my theory for what is happening here so far:

Apr 12 2025, 11:29 PM · MW-1.44-notes (1.44.0-wmf.27; 2025-04-29), MediaWiki-File-management, Commons, MediaWiki-Uploading
Bawolff added a comment to T391158: Server-side upload request for D. Benjamin Miller.

Filed T391755 for increasing the upload by url time limit.

Apr 12 2025, 9:46 PM · Server-side-upload-request
Bawolff created T391755: Async upload by url should use a longer timeout.
Apr 12 2025, 9:44 PM · MediaWiki-Uploading
Bawolff added a comment to T391158: Server-side upload request for D. Benjamin Miller.

Looking further in the logs, it appears that the assemble job also loses the DB connection, but there is a Wikimedia\Rdbms\Database::handleErroredQuery: lost connection to db1227 with error 2006; reconnected log, so i guess no explicit transaction is open, so there is no issue. Kind of odd that Publish has an open transaction but Assemble does not.

Apr 12 2025, 9:39 PM · Server-side-upload-request
Bawolff added a comment to T391473: Common API upload failures with very large files.

Even if the speed of the connection to IA had been unlimited (or there had been no timeout for that portion), wouldn't the operation still fail at the publication stage?

Apr 12 2025, 7:37 AM · MW-1.44-notes (1.44.0-wmf.27; 2025-04-29), MediaWiki-File-management, Commons, MediaWiki-Uploading
Bawolff added a comment to T118887: Upload by URL doesn't work well for large files: HTTP request timed out..

Just as a note, there are reports of 180 seconds being too small at T391158

Apr 12 2025, 1:29 AM · MW-1.42-notes (1.42.0-wmf.25; 2024-04-02), Wikimedia-Site-requests, Commons, Internet-Archive, MediaWiki-Uploading, Multimedia

Apr 11 2025

Bawolff added a comment to T391473: Common API upload failures with very large files.

@Bawolff To be clear, I first tried async publication, and only later tried a non-async to see if it would work. But async from stash is what I was trying multiple times and it just didn't work. I also tried async from archive.org, too, but (unsurprisingly) that didn't work either.

Apr 11 2025, 10:44 PM · MW-1.44-notes (1.44.0-wmf.27; 2025-04-29), MediaWiki-File-management, Commons, MediaWiki-Uploading
Bawolff added a comment to T391473: Common API upload failures with very large files.

Deadlocks are converted to DBQueryError and DBQueryError should not be catched, that mixed up the internal state of rdbms classes.

*nod* do not catch that :D gotcha.

The deletion on uploadstash is based on unique key, so not expecting a lock escalation to table lock. It seems more a gap lock on the unique key.
But the failing query is for a update of an (known?) existing row. Maybe the rows before and after are also "busy" by other running chunked uploads and mysql timeouts to do the changes.

Yeah, my theory is that the initial select for the state fetch is holding a lock in the transaction, and then that times out during file handling before we get to the update query. In which case I think the thing to do is:

  • commit transaction after fetching initial state...
  • perform the file operation...
  • re-check status before updating, and kick out an error in case they don't match (rare, should indicate operator error)

However I'm not quite sure as I don't think it _should_ be holding a lock on the us_key unique index unless we issue a 'for update' in the select, which we're not. So I could still be wrong on this, but the ways of database locks are _very mysterious_ to me. :D

@Umherirrender if you think this sounds reasonable I can update the patch to that and we can see if it helps, but I feel like I'm going to want to test this with real files when I get back from traveling and am on my regular internet connection. :)

Apr 11 2025, 7:11 AM · MW-1.44-notes (1.44.0-wmf.27; 2025-04-29), MediaWiki-File-management, Commons, MediaWiki-Uploading
Bawolff added a comment to T391158: Server-side upload request for D. Benjamin Miller.

For The Cocoanuts.webm, we have the following errors:

Apr 11 2025, 7:03 AM · Server-side-upload-request
Bawolff added a comment to T391473: Common API upload failures with very large files.

So looking at the logstash, it appears the "async" flag was not set for this upload (and hence it was not done via the jobqueue). It is somewhat expected that non-async chunked uploads will fail for uploads of this size.

Apr 11 2025, 6:17 AM · MW-1.44-notes (1.44.0-wmf.27; 2025-04-29), MediaWiki-File-management, Commons, MediaWiki-Uploading

Apr 7 2025

Aram awarded T310051: Incorrect category header "ء" needs to be "ئ" instead (on ckbwiki) a Love token.
Apr 7 2025, 5:52 PM · MW-1.44-notes (1.44.0-wmf.22; 2025-03-25), MediaWiki-Internationalization, MediaWiki-Categories

Mar 31 2025

Bawolff awarded T360589: De-fragment thumbnail sizes in mediawiki a Mountain of Wealth token.
Mar 31 2025, 9:21 PM · MW-1.44-notes (1.44.0-wmf.20; 2025-03-11), Epic, Commons, MediaWiki-File-management, Data-Persistence

Mar 27 2025

Bawolff added a comment to T310051: Incorrect category header "ء" needs to be "ئ" instead (on ckbwiki).

Now that the change has been deployed to ckbwiki, I think there's nothing more to do here. Thanks @Bawolff!

Mar 27 2025, 8:07 PM · MW-1.44-notes (1.44.0-wmf.22; 2025-03-25), MediaWiki-Internationalization, MediaWiki-Categories
Bawolff added a comment to T156184: Make rawHTML mode not apply to system messages.

Probably a better solution would be to use a strip marker as the message parameter.

Mar 27 2025, 3:03 AM · Security, MW-1.29-release (WMF-deploy-2017-04-04_(1.29.0-wmf.19)), MW-1.27-release-notes, MW-1.28-release-notes, MW-1.23-release, MW-1.29-release-notes, MediaWiki-User-Interface

Mar 24 2025

Bawolff added a comment to T387130: CVE-2025-32699: Potential javascript injection attack enabled by Unicode normalization in Action API.

Thanks for the backports!

Do we know offhand how long this has been around for?

Mar 24 2025, 9:30 PM · MW-Interfaces-Team, Essential-Work, Content-Transform-Team (Work In Progress), SecTeam-Processed, Vuln-Inject, Vuln-XSS, MediaWiki-Action-API, Security, Security-Team

Mar 21 2025

Bawolff added a comment to T389592: Figure out a way to use custom ICU collations in MediaWiki.

The php bindings do not support tailorings. If they added that it would make a lot of things easier

Mar 21 2025, 2:35 PM · MediaWiki-Internationalization

Mar 19 2025

Bawolff added a comment to T310051: Incorrect category header "ء" needs to be "ئ" instead (on ckbwiki).

Just to clarify, with putting vowels under their own header now, are we including وو in a separate header?

No, please. وو should be under و.

With the new changes, the only pairs of characters that are equal weight are: ک & ك and ھ & ه

Exactly!

Mar 19 2025, 7:29 PM · MW-1.44-notes (1.44.0-wmf.22; 2025-03-25), MediaWiki-Internationalization, MediaWiki-Categories

Mar 18 2025

Bawolff added a comment to T334372: Add support for inline SVG.

However, I disagree strongly with the "inline SVG is secure in browsers by default" which is the current POC patch.

Mar 18 2025, 6:50 PM · Patch-For-Review, Wikimedia-Hackathon-2024, MediaWiki-Parser
Bawolff added a comment to T310051: Incorrect category header "ء" needs to be "ئ" instead (on ckbwiki).

Thanks for your input on vowels. Since we've decided to give them their own headers, let's move ێ into its own section.

Mar 18 2025, 1:45 AM · MW-1.44-notes (1.44.0-wmf.22; 2025-03-25), MediaWiki-Internationalization, MediaWiki-Categories

Mar 17 2025

Bawolff added a comment to T388703: wikimania.wikimedia.org is having massive numbers of CSP reports.

It might just have been linked somewhere prominent with some sort of embedded google translate.

Mar 17 2025, 5:18 PM · SecTeam-Processed, WMF-General-or-Unknown, ContentSecurityPolicy, Security, Security-Team

Mar 16 2025

Bawolff updated subscribers of T44093: importDump.php dies with status 1 for sqlite:LError: 8 attempt to write a readonly database.
Mar 16 2025, 1:08 AM · MediaWiki-Core-Snapshots, SQLite, TestMe, MediaWiki-Maintenance-system
Bawolff added a comment to T310051: Incorrect category header "ء" needs to be "ئ" instead (on ckbwiki).

@Bawolff Thanks for creating the demo and for all your explanations. I tested the demo and noticed the following:

  • Sorting numbers numerically works perfectly. However, in the current version, each number seems to have its own header, whereas in the demo, all numbers are grouped under a single header (٠-٩). I don’t see this as a major issue, but if the community prefers the previous format, how can we revert to it?
Mar 16 2025, 12:59 AM · MW-1.44-notes (1.44.0-wmf.22; 2025-03-25), MediaWiki-Internationalization, MediaWiki-Categories

Mar 15 2025

Bawolff added a comment to T388970: Add custom uppercase collation for Inari Sámi Wikipedia.

Huh, weirdly they didn't just forget those characters but icu intentionally put them in the wrong place at the end. https://github.com/unicode-org/cldr/blob/main/common/collation/smn.xml#L27

Mar 15 2025, 10:30 PM · MW-1.44-notes (1.44.0-wmf.22; 2025-03-25), AvoinGLAM-Saami, WMNO-Sámi, MediaWiki-Internationalization
Bawolff added a comment to T44093: importDump.php dies with status 1 for sqlite:LError: 8 attempt to write a readonly database.

This sounds like you were running the command as the wrong unix user.

Mar 15 2025, 5:45 AM · MediaWiki-Core-Snapshots, SQLite, TestMe, MediaWiki-Maintenance-system

Mar 13 2025

Bawolff added a comment to T310051: Incorrect category header "ء" needs to be "ئ" instead (on ckbwiki).

Ok. Based on that description, i think its best we use a custom collation instead of the UCA based one (The custom one gives us more flexibility. The UCA one is more complex and might give better results for characters from other languages but it doesn't allow us to customize it as much. The big difference is that the UCA one allows more options for breaking ties, but i don't think that is super important for ckb. UCA might sort some obscure letters and foreign letters better).

Mar 13 2025, 11:05 AM · MW-1.44-notes (1.44.0-wmf.22; 2025-03-25), MediaWiki-Internationalization, MediaWiki-Categories
Bawolff added a comment to T388768: Investigate if it makes sense to have uppercase collation convert to NFKD before sorting.

hmm, i also wonder if projects using the identity (case sensitive) collation (like wiktionary) would be interested in this type of sorting, or if they really want every letter.

Mar 13 2025, 10:35 AM · MediaWiki-Categories
Bawolff created T388768: Investigate if it makes sense to have uppercase collation convert to NFKD before sorting.
Mar 13 2025, 9:22 AM · MediaWiki-Categories

Mar 11 2025

Pppery awarded T65782: Make querycache, querycachetwo and querycache_info tables visible on Wiki Replicas a Like token.
Mar 11 2025, 5:57 PM · cloud-services-team, Data-Services, WMF-Legal
Bawolff added a comment to T384395: Adding Uppercase and lowercase collation for Kazakh language.

Just as a reminder (because i didnt see it in the SAL), after changing the setting you must run updateCollation.php (otherwise pre-existing categories will be sorted wrongly and behave weirdly.)

Mar 11 2025, 9:15 AM · MW-1.44-notes (1.44.0-wmf.17; 2025-02-18), LPL Onboarding and Development (Current), MediaWiki-Internationalization

Mar 8 2025

Bawolff added a comment to T384395: Adding Uppercase and lowercase collation for Kazakh language.

In addition to that patch, $wgCategoryCollation has to be changed for that wiki prior to running the maintenance script.

Thanks for the clarification! This makes me wonder, however: Why do we have it in local settings? For most languages, this should probably the default in core.

Mar 8 2025, 2:21 AM · MW-1.44-notes (1.44.0-wmf.17; 2025-02-18), LPL Onboarding and Development (Current), MediaWiki-Internationalization

Mar 7 2025

Bawolff added a comment to T387691: CVE-2025-32069: Wikitext stored XSS on filepages due to dangerous WBMI serialization.

Not all data attributes need to be converted to data-mw-*; those in e.g. ComponentWidget.js are generated and used by JS only.

I also think we can safely fallback to the original (non data-mw-* prefixed) attributes in cached cases, without having to purge the caches: I narrowed down the selector to target only the nodes in specific places (i.e. those generated by PHP in the expected/predictable spot; not those inserted by users that appear elsewhere on the page)

Mar 7 2025, 1:11 PM · Structured-Data-Backlog (Current Work), SecTeam-Processed, SDC-Statements, Vuln-XSS, WikibaseMediaInfo, Security, Security-Team
Bawolff added a comment to T387969: Wikimedia Commons UploadWizard gives the error "File did not pass file verification" but offers no additional info on how to fix it.

@Lucas_Werkmeister_WMDE thanks so much, who would be the right person in WMF responsible for UploadWizard to ping to make aware of the bug? I just want the right person to be aware of the issue.

Mar 7 2025, 11:48 AM · MW-1.44-notes (1.44.0-wmf.27; 2025-04-29), Structured-Data-Backlog, UploadWizard, MediaWiki-Uploading
Bawolff added a comment to T310051: Incorrect category header "ء" needs to be "ئ" instead (on ckbwiki).

I thought no one cared about this—thank you, everyone! While ckb and fa are somewhat similar, there are still differences. By the way, ckb has the same issue with the letter Heh. For example, the word «ھەور» (cloud) begins with the letter «ھ» but is classified under the letter «ه».

Mar 7 2025, 4:34 AM · MW-1.44-notes (1.44.0-wmf.22; 2025-03-25), MediaWiki-Internationalization, MediaWiki-Categories

Mar 6 2025

Bawolff added a comment to T310051: Incorrect category header "ء" needs to be "ئ" instead (on ckbwiki).

We don't really have the ability to break up groups (or at least, not very easily). We mostly just have the ability to chose which letter represents the group. (Or potentially a string like "ٲ - ئ" if that is better, as long as it starts with one of the letters in question)

Mar 6 2025, 8:10 PM · MW-1.44-notes (1.44.0-wmf.22; 2025-03-25), MediaWiki-Internationalization, MediaWiki-Categories
Bawolff closed T133226: Non US-ASCII chars in category names: Any page bound to a category with "ø" in its name is not listed as Resolved.

This was likely an issue with UTF-8 normalization where the ø was being entered in ISO-8859-1 instead of UTF-8.

Mar 6 2025, 8:16 AM · I18n, MediaWiki-Categories
Bawolff added a comment to T175802: Collation sequences, failed contraction matches in Norwegian.

This sounds like it can be accomplished by a lua module if desired, or just manually with defaultsort. I would suggest declining this bug

Mar 6 2025, 8:14 AM · MediaWiki-Categories, MediaWiki-Internationalization
Bawolff updated subscribers of T310051: Incorrect category header "ء" needs to be "ئ" instead (on ckbwiki).

The CKB collation is inheriting from the farsi collation.

Mar 6 2025, 8:02 AM · MW-1.44-notes (1.44.0-wmf.22; 2025-03-25), MediaWiki-Internationalization, MediaWiki-Categories
Bawolff added a comment to T303672: DEFAULTSORT:ꭓ sorts under ᶍ instead of under ꭓ on fr.wiktionary.org.

Maybe includes/collation/data/first-letters-root.php has to be regenerated for more recent CLDR, or perhaps the script just chooses the wrong representive in that case. ꭓ certainly seems like a better representative of the class than ᶍ,

Mar 6 2025, 7:27 AM · Wiktionary-fr, MediaWiki-Categories
Bawolff added a comment to T249985: Lithuanian Category Collation: Articles starting with y grouped together with articles starting with i, but those are two different letters.

Looks like CLDR data to this day is still the wrong way - https://github.com/unicode-org/cldr/blob/main/common/collation/lt.xml . In addition to considering Y to be only secondary difference to I, it also considers Į to be secondary difference to I (The Wikipedia article makes it sound like I, Į, and Y should all be primary difference). The CLDR data cites Bronius Piesarkas: Lithuanian-English Dictionary ISBN 9986-465-56-7 as a source.

Mar 6 2025, 7:14 AM · Upstream, MediaWiki-Categories, Wikimedia-Site-requests
Bawolff added a project to T387969: Wikimedia Commons UploadWizard gives the error "File did not pass file verification" but offers no additional info on how to fix it: MediaWiki-Uploading.

I'm 99% sure that this is due to the 10MB max attribute size limitation. This means that embedded raster images are not allowed to exceed 10MB (after base64). The files in question appear to have large raster images embedded in them

Mar 6 2025, 3:59 AM · MW-1.44-notes (1.44.0-wmf.27; 2025-04-29), Structured-Data-Backlog, UploadWizard, MediaWiki-Uploading

Mar 5 2025

Bawolff added a comment to T387969: Wikimedia Commons UploadWizard gives the error "File did not pass file verification" but offers no additional info on how to fix it.

The screenshot looks like it’s showing UploadWizard; have you tried Special:Upload? As far as I can tell, MediaWiki should show some additional details with this message, but it’s possible UploadWizard doesn’t show them properly.

Mar 5 2025, 10:23 PM · MW-1.44-notes (1.44.0-wmf.27; 2025-04-29), Structured-Data-Backlog, UploadWizard, MediaWiki-Uploading
Bawolff added a comment to T384395: Adding Uppercase and lowercase collation for Kazakh language.

In addition to that patch, $wgCategoryCollation has to be changed for that wiki prior to running the maintenance script.

Mar 5 2025, 9:21 PM · MW-1.44-notes (1.44.0-wmf.17; 2025-02-18), LPL Onboarding and Development (Current), MediaWiki-Internationalization

Mar 3 2025

Bawolff awarded T387691: CVE-2025-32069: Wikitext stored XSS on filepages due to dangerous WBMI serialization a Burninate token.
Mar 3 2025, 8:00 AM · Structured-Data-Backlog (Current Work), SecTeam-Processed, SDC-Statements, Vuln-XSS, WikibaseMediaInfo, Security, Security-Team

Mar 2 2025

Bawolff changed the visibility for T387672: Template Rendering Issue.
Mar 2 2025, 8:22 PM · SecTeam-Processed

Mar 1 2025

Bawolff added a comment to T387075: Display C2PA metadata when available on photos uploaded to Wikimedia Commons.

Oh, maybe i misunderstood. https://opensource.contentauthenticity.org/docs/verify-known-cert-list/ says there is a hard coded list.

Mar 1 2025, 4:32 AM · MediaWiki-File-management, Commons
Bawolff added a comment to T387075: Display C2PA metadata when available on photos uploaded to Wikimedia Commons.

So if I'm reading the linked pages correctly, this system is based on cameras, photo editing tools, and other tools involved in editing the image to cryptographically sign the file in some way. How would we decide which signatures are valid and which are not?

Mar 1 2025, 4:30 AM · MediaWiki-File-management, Commons
Bawolff added a comment to T387075: Display C2PA metadata when available on photos uploaded to Wikimedia Commons.
How does this ensure that this doesn't end up promoting proprietary tools as more "trustworthy" than similar free software tools?

As far as I understand this is an open initiative that is run by a non-profit.

Mar 1 2025, 4:12 AM · MediaWiki-File-management, Commons
Bawolff added a comment to T387075: Display C2PA metadata when available on photos uploaded to Wikimedia Commons.

A major question here is do we actually validate the sigs or do we just display the value? If we do validate and its invalid, do we still display it or do we pretend it doesnt exist or show a warning of some kind?

Mar 1 2025, 4:04 AM · MediaWiki-File-management, Commons

Feb 28 2025

Bawolff added a comment to T387130: CVE-2025-32699: Potential javascript injection attack enabled by Unicode normalization in Action API.

Sorry, my bad. I got confused reading the backscroll and thought it was only the parsoid patches that got deployed.

Feb 28 2025, 7:33 PM · MW-Interfaces-Team, Essential-Work, Content-Transform-Team (Work In Progress), SecTeam-Processed, Vuln-Inject, Vuln-XSS, MediaWiki-Action-API, Security, Security-Team
Bawolff added a comment to T387585: Remote code execution in wikimedia/less.php.

Can users control these things?

Feb 28 2025, 7:04 PM · SecTeam-Processed, Security
Bawolff added a comment to T387130: CVE-2025-32699: Potential javascript injection attack enabled by Unicode normalization in Action API.

Backport deployments of c1123486 and c1123488 have been successfully completed. Thanks everyone. I know there are several code-hardening patches to follow, but I believe that should get us mitigated in Wikimedia production.

Feb 28 2025, 12:39 AM · MW-Interfaces-Team, Essential-Work, Content-Transform-Team (Work In Progress), SecTeam-Processed, Vuln-Inject, Vuln-XSS, MediaWiki-Action-API, Security, Security-Team

Feb 27 2025

Bawolff added a comment to T387508: Add numerous Security Vuln-* Tags in Phabricator.

Perhaps XSS should be split up into i18n-xss and other xss because the two have really different risk profiles so its a bit confusing to group the two.

Feb 27 2025, 8:56 PM · SecTeam-Processed, Project-Admins, Vulnerability Management, Security-Team, Security
Bawolff added a comment to T387130: CVE-2025-32699: Potential javascript injection attack enabled by Unicode normalization in Action API.

I'm having trouble finding details of the normalization algorithm, but experimentally we can gain confidence:

Feb 27 2025, 8:45 PM · MW-Interfaces-Team, Essential-Work, Content-Transform-Team (Work In Progress), SecTeam-Processed, Vuln-Inject, Vuln-XSS, MediaWiki-Action-API, Security, Security-Team
Bawolff added a comment to T387130: CVE-2025-32699: Potential javascript injection attack enabled by Unicode normalization in Action API.

Thinking about this

The requirements are:

  • combining slash is sometimes valid, so we cant outright ban it
  • < followed by combining slash will almost always be malicious in output because most keyboards output the precomposed form and we also run NFC on all user input
  • we cant generically replace combining slash with entity at the normalization stage as we dont know if the output is html or not.

What if on any output normalization (so excluding normalization of user input in WebRequest), we first count the number of precomposed "not greater than" signs, normalize, and then count again. If the number changes we know an attack is happening since we assume at this point the decomposed not greater than is always malicious. At this point we throw an exception or maybe go back to the unnormalized string, replace all combining slash with unicode replacement and try again (its ok to be a little lossy here since we assume this code path only happens during an attack). Thoughts?

If we do strip these characters, i think it is less confusing to the user to replace them with unicode replacement character then to just silently delete.

Feb 27 2025, 11:07 AM · MW-Interfaces-Team, Essential-Work, Content-Transform-Team (Work In Progress), SecTeam-Processed, Vuln-Inject, Vuln-XSS, MediaWiki-Action-API, Security, Security-Team
Bawolff added a comment to T387130: CVE-2025-32699: Potential javascript injection attack enabled by Unicode normalization in Action API.

Yes, I agree that would be better. What I don't know is why we choose to normalize html (or wikitext) to NFC there. Is that a step we actually need?

Feb 27 2025, 10:28 AM · MW-Interfaces-Team, Essential-Work, Content-Transform-Team (Work In Progress), SecTeam-Processed, Vuln-Inject, Vuln-XSS, MediaWiki-Action-API, Security, Security-Team
Bawolff added a comment to T387130: CVE-2025-32699: Potential javascript injection attack enabled by Unicode normalization in Action API.

Thinking about this

Feb 27 2025, 1:34 AM · MW-Interfaces-Team, Essential-Work, Content-Transform-Team (Work In Progress), SecTeam-Processed, Vuln-Inject, Vuln-XSS, MediaWiki-Action-API, Security, Security-Team

Feb 26 2025

Bawolff added a comment to T387130: CVE-2025-32699: Potential javascript injection attack enabled by Unicode normalization in Action API.

I'm concerned that unicode is a changing specification and we're not entirely guaranteed that there won't be some other combining character added that can interact with >.

Feb 26 2025, 12:42 PM · MW-Interfaces-Team, Essential-Work, Content-Transform-Team (Work In Progress), SecTeam-Processed, Vuln-Inject, Vuln-XSS, MediaWiki-Action-API, Security, Security-Team

Feb 25 2025

Bawolff added a comment to T359470: Migrate MediaWiki.extdist to statslib.

I don't see how this code could work as graphite.wikimedia.org is behind an auth wall.

Feb 25 2025, 4:23 PM · MW-1.44-notes (1.44.0-wmf.20; 2025-03-11), MW-Interfaces-Team (MWI-Sprint-4 (2025-02-25 to 2025-03-11)), Essential-Work, MediaWiki-Engineering, ExtensionDistributor, Observability-Metrics
Bawolff added a comment to T387130: CVE-2025-32699: Potential javascript injection attack enabled by Unicode normalization in Action API.

Yes, I agree that would be better. What I don't know is why we choose to normalize html (or wikitext) to NFC there. Is that a step we actually need?

Feb 25 2025, 7:50 AM · MW-Interfaces-Team, Essential-Work, Content-Transform-Team (Work In Progress), SecTeam-Processed, Vuln-Inject, Vuln-XSS, MediaWiki-Action-API, Security, Security-Team
Bawolff added a comment to T387188: Fix revisions on enwiki corrupted due to 2009 undeletion bug.

For reference, the exception is:

Feb 25 2025, 6:52 AM · Wikimedia-database-issue (Bad data)
Bawolff added a comment to T387130: CVE-2025-32699: Potential javascript injection attack enabled by Unicode normalization in Action API.

Another PoC:

Feb 25 2025, 1:00 AM · MW-Interfaces-Team, Essential-Work, Content-Transform-Team (Work In Progress), SecTeam-Processed, Vuln-Inject, Vuln-XSS, MediaWiki-Action-API, Security, Security-Team

Feb 24 2025

Bawolff added a comment to T387130: CVE-2025-32699: Potential javascript injection attack enabled by Unicode normalization in Action API.

This is a really cool vuln.

Feb 24 2025, 10:34 PM · MW-Interfaces-Team, Essential-Work, Content-Transform-Team (Work In Progress), SecTeam-Processed, Vuln-Inject, Vuln-XSS, MediaWiki-Action-API, Security, Security-Team
Bawolff awarded T387130: CVE-2025-32699: Potential javascript injection attack enabled by Unicode normalization in Action API a Burninate token.
Feb 24 2025, 9:45 PM · MW-Interfaces-Team, Essential-Work, Content-Transform-Team (Work In Progress), SecTeam-Processed, Vuln-Inject, Vuln-XSS, MediaWiki-Action-API, Security, Security-Team
Bawolff added a comment to T381617: XSS in Charts extension combined with TemplateStyles, LanguageConverter, ToC.

@sbassett I think everything is merged and deployed at this point. Is it ok to make the task public?

Feb 24 2025, 11:32 AM · Patch-For-Review, SecTeam-Processed, MediaWiki-Parser, TemplateStyles, Charts, Security, Security-Team
Pppery awarded T20468: Add double redirect list to success page when moving a page a Like token.
Feb 24 2025, 5:22 AM · MediaWiki-Page-rename

Feb 14 2025

Bawolff added a comment to T384395: Adding Uppercase and lowercase collation for Kazakh language.

I guess all those are using a different version than wikipedia. I believe wikipedia uses CLDR 37.

Feb 14 2025, 7:08 AM · MW-1.44-notes (1.44.0-wmf.17; 2025-02-18), LPL Onboarding and Development (Current), MediaWiki-Internationalization
Bawolff added a comment to T384395: Adding Uppercase and lowercase collation for Kazakh language.

The CLDR looks correct to me (But of course I don't speak this language). I'd prefer we use the CLDR collation instead of our own as long as it is correct. You can test the CLDR collation at https://icu4c-demos.unicode.org/icu-bin/collation.html making sure the drop down menu on the top left is set to kk (type=standard): Kazakh (Standard Sort Order)

Feb 14 2025, 6:26 AM · MW-1.44-notes (1.44.0-wmf.17; 2025-02-18), LPL Onboarding and Development (Current), MediaWiki-Internationalization

Feb 13 2025

Bawolff added a comment to T383077: [EPIC] Re-license Codex under MIT.

(probably starting with non-current WMF staff, who may be harder to reach)

Feb 13 2025, 10:12 PM · Design-System-Team (Roadmap), Epic, Codex, Software-Licensing

Feb 8 2025

Bawolff added a comment to T385935: CVE-2025-32076: Evil regex used to process user-provided data in VisualData.

I think a good solution might be:

Feb 8 2025, 5:53 PM · Vuln-DoS, SecTeam-Processed, MediaWiki-extensions-Other, affects-Miraheze, Security

Feb 7 2025

Bawolff added a comment to T381617: XSS in Charts extension combined with TemplateStyles, LanguageConverter, ToC.

FYI, i do intend to turn this into a blog post once it is public

Feb 7 2025, 11:22 PM · Patch-For-Review, SecTeam-Processed, MediaWiki-Parser, TemplateStyles, Charts, Security, Security-Team
Bawolff added a watcher for MediaWiki-extensions-InlineComments: Bawolff.
Feb 7 2025, 5:34 PM
Bawolff added a member for MediaWiki-extensions-InlineComments: Bawolff.
Feb 7 2025, 5:34 PM

Feb 4 2025

Bawolff added a comment to T381617: XSS in Charts extension combined with TemplateStyles, LanguageConverter, ToC.

I'd agree that the main mitigations are now merged.

Feb 4 2025, 5:46 PM · Patch-For-Review, SecTeam-Processed, MediaWiki-Parser, TemplateStyles, Charts, Security, Security-Team

Feb 1 2025

Bawolff added a comment to T376979: Figure out the future of Wikimedia Commons Query Service (WCQS).

Part of the reason this feels silly to me, is this dataset should be significantly easier to serve than Wikidata.

Feb 1 2025, 6:17 PM · Wikidata, Wikidata-Query-Service, StructuredDataOnCommons, Commons
Bawolff created T385370: No HTTPS redirect for dumps.wikimedia.org is confusing.
Feb 1 2025, 5:48 PM · Datasets-General-or-Unknown, Traffic
Bawolff added a comment to T384175: css-sanitizer should allow prefers-reduced-motion media selector.

If you have any example edits where any of those are being used in practice, then that might be helpful to add to the entry? (or add to any related documentation on MediaWiki-wiki, which we could link to?) (Anytime before next Friday)

Feb 1 2025, 5:03 AM · User-notice-archive, TemplateStyles, Accessibility, css-sanitizer

Jan 31 2025

Bawolff added a comment to T384175: css-sanitizer should allow prefers-reduced-motion media selector.

The change is aimed at (advanced) template editors who use the TemplateStyles feature. It is primarily an accessibility improvement, allowing editors to adjust templates to display differently depending on the users accessibility preferences.

Jan 31 2025, 10:01 PM · User-notice-archive, TemplateStyles, Accessibility, css-sanitizer

Jan 30 2025

Bawolff added a comment to T299951: Normalize categorylinks table.

As an aside, we've had lots of problems in the past related to not storing collation version numbers (different versions of libicu have incompatible output). If we are in the process of rearranging this all, it would be cool if we added a solution to that.

Jan 30 2025, 2:52 PM · MW-1.44-notes (1.44.0-wmf.15; 2025-02-04), DBA, MediaWiki-Page-derived-data

Jan 29 2025

Bawolff added a comment to T379070: Special:Undelete does not go to right page if you check the checkbox to adjust revision visibility for a deleted file revision.

Yes, issue is still present as far as i know

Jan 29 2025, 7:02 PM · good first task, MediaWiki-Page-deletion
Bawolff closed T383554: Server-side upload request for Jeff G. as Declined.

No worries. I'm going to mark this task closed.

Jan 29 2025, 3:03 PM · Server-side-upload-request