Page MenuHomePhabricator

Miszczyk (Maciej Miszczyk)
User

Projects

User does not belong to any projects.

Today

  • Clear sailing ahead.

Tomorrow

  • Clear sailing ahead.

Sunday

  • Clear sailing ahead.

User Details

User Since
Jul 3 2020, 4:22 PM (197 w, 6 d)
Availability
Available
LDAP User
Unknown
MediaWiki User
Miszczyk [ Global Accounts ]

Recent Activity

Aug 10 2021

Miszczyk added a comment to T257062: Lilypond seemingly not subject to restrictions (CVE-2020-29007).

@Legoktm I've added the original vulnerability (CVE-2020-29007) to the list, otherwise I think the advisory is ok.

Aug 10 2021, 6:20 PM · MW-1.36-notes (1.36.0-wmf.1; 2020-07-21), MW-1.35-notes (1.35.0-wmf.41; 2020-07-14), Wikimedia-Incident, WMF-General-or-Unknown, MediaWiki-extensions-Score, Security, Security-Team

Dec 8 2020

Miszczyk added a comment to T257062: Lilypond seemingly not subject to restrictions (CVE-2020-29007).

Hmm, I don't feel comfortable recommending it if it's still possible to bypass safe mode by changing the payload. If right now Score is an RCE risk one way or another, I'd prefer to keep it disabled until we have a reasonably good fix.

Dec 8 2020, 3:26 PM · MW-1.36-notes (1.36.0-wmf.1; 2020-07-21), MW-1.35-notes (1.35.0-wmf.41; 2020-07-14), Wikimedia-Incident, WMF-General-or-Unknown, MediaWiki-extensions-Score, Security, Security-Team
Miszczyk added a comment to T257062: Lilypond seemingly not subject to restrictions (CVE-2020-29007).

@Ebe123 thanks for the feedback. Is safe mode considered safe now, or are there still vulnerabilities being addressed there?

Dec 8 2020, 3:20 PM · MW-1.36-notes (1.36.0-wmf.1; 2020-07-21), MW-1.35-notes (1.35.0-wmf.41; 2020-07-14), Wikimedia-Incident, WMF-General-or-Unknown, MediaWiki-extensions-Score, Security, Security-Team
Miszczyk added a comment to T257062: Lilypond seemingly not subject to restrictions (CVE-2020-29007).

The issue has been assigned CVEID CVE-2020-29007. The advisory can be found here: https://seqred.pl/en/cve-2020-29007-remote-code-execution-in-mediawiki-score/

Dec 8 2020, 2:25 PM · MW-1.36-notes (1.36.0-wmf.1; 2020-07-21), MW-1.35-notes (1.35.0-wmf.41; 2020-07-14), Wikimedia-Incident, WMF-General-or-Unknown, MediaWiki-extensions-Score, Security, Security-Team

Oct 12 2020

Miszczyk added a comment to T257062: Lilypond seemingly not subject to restrictions (CVE-2020-29007).

Hey guys, I want to give everyone a heads-up: I'm going to give a talk about Lilypond security on Oh My Hack conference on 28 November (https://omhconf.pl and I'm intending to disclose this issue. I don't think it's going to be a big deal for Wikipedia as Lilypond is now disabled, but I do think that maintainers of other MediaWiki installations should know about the impact of having this extension enabled.

Oct 12 2020, 10:09 AM · MW-1.36-notes (1.36.0-wmf.1; 2020-07-21), MW-1.35-notes (1.35.0-wmf.41; 2020-07-14), Wikimedia-Incident, WMF-General-or-Unknown, MediaWiki-extensions-Score, Security, Security-Team

Sep 14 2020

Miszczyk added a comment to T257062: Lilypond seemingly not subject to restrictions (CVE-2020-29007).

Is the issue still being worked on? Is there some sort of timeline for developing the fix?

Sep 14 2020, 6:06 AM · MW-1.36-notes (1.36.0-wmf.1; 2020-07-21), MW-1.35-notes (1.35.0-wmf.41; 2020-07-14), Wikimedia-Incident, WMF-General-or-Unknown, MediaWiki-extensions-Score, Security, Security-Team

Jul 10 2020

Miszczyk added a comment to T257062: Lilypond seemingly not subject to restrictions (CVE-2020-29007).

@Aklapper is this an official repository or just a mirror? I don't see it mentioned anywhere on lilypond.org. The one they do mention is a Savannah repo on GNU servers: https://git.savannah.gnu.org/gitweb/?p=lilypond.git

Jul 10 2020, 4:07 PM · MW-1.36-notes (1.36.0-wmf.1; 2020-07-21), MW-1.35-notes (1.35.0-wmf.41; 2020-07-14), Wikimedia-Incident, WMF-General-or-Unknown, MediaWiki-extensions-Score, Security, Security-Team

Jul 7 2020

Miszczyk added a comment to T257062: Lilypond seemingly not subject to restrictions (CVE-2020-29007).

BTW, I've noticed that there are some other websites which let you execute Lilypond in unsafe mode: Lilybin and Hacklily. I guess their maintainers should also be informed about the security implications of this.

Jul 7 2020, 4:19 PM · MW-1.36-notes (1.36.0-wmf.1; 2020-07-21), MW-1.35-notes (1.35.0-wmf.41; 2020-07-14), Wikimedia-Incident, WMF-General-or-Unknown, MediaWiki-extensions-Score, Security, Security-Team

Jul 6 2020

Miszczyk added a comment to T257062: Lilypond seemingly not subject to restrictions (CVE-2020-29007).

@Legoktm it might be possible to filter out anything containing Scheme code (provided that the only way to execute Scheme in LilyPond is by prefixing it with a hash, which I'm not sure of), but if we do allow Scheme, I don't believe that filtering out malicious code could be done reliably. Scheme has a very powerful (Turing-complete even) macro system, and it has run-time code evaluation as well so there's a lot of ways to obfuscate.

Jul 6 2020, 7:51 PM · MW-1.36-notes (1.36.0-wmf.1; 2020-07-21), MW-1.35-notes (1.35.0-wmf.41; 2020-07-14), Wikimedia-Incident, WMF-General-or-Unknown, MediaWiki-extensions-Score, Security, Security-Team

Jul 4 2020

Miszczyk added a comment to T257062: Lilypond seemingly not subject to restrictions (CVE-2020-29007).
  • All in all, I think this needs to be discussed with upstream, to hopefully result into a mindset shift with regards to whether input is considered trusted or untrusted by default. In its current state, I don't think it's reasonable for users to even run this on their desktops with anything but scores they've personally handcrafted, or for distributors like Debian to ship this without warnings to that effect.
Jul 4 2020, 12:52 PM · MW-1.36-notes (1.36.0-wmf.1; 2020-07-21), MW-1.35-notes (1.35.0-wmf.41; 2020-07-14), Wikimedia-Incident, WMF-General-or-Unknown, MediaWiki-extensions-Score, Security, Security-Team

Jul 3 2020

Miszczyk added a comment to T257062: Lilypond seemingly not subject to restrictions (CVE-2020-29007).

@Krinkle spawning of processes can be disabled with ulimit, although I'm not sure if it would fix the problem with command execution. Code like

Jul 3 2020, 7:05 PM · MW-1.36-notes (1.36.0-wmf.1; 2020-07-21), MW-1.35-notes (1.35.0-wmf.41; 2020-07-14), Wikimedia-Incident, WMF-General-or-Unknown, MediaWiki-extensions-Score, Security, Security-Team
Miszczyk added a comment to T257062: Lilypond seemingly not subject to restrictions (CVE-2020-29007).

@Krinkle as I understand it, safe mode greatly limits what is exposed in the embedded Guile Scheme runtime, both when it comes to Lilypond features and when it comes to Guile's standard library. I guess that LilyPond features which are disabled somehow rely on those unsafe Scheme interfaces. But yes, I think enabling LilyPond safe mode would get rid of those issues, as the safe mode uses a limited subset of R5RS, and IIRC even full standard of R5RS does not expose underlying operating system functionality like shell commands or filesystem access.

Jul 3 2020, 6:15 PM · MW-1.36-notes (1.36.0-wmf.1; 2020-07-21), MW-1.35-notes (1.35.0-wmf.41; 2020-07-14), Wikimedia-Incident, WMF-General-or-Unknown, MediaWiki-extensions-Score, Security, Security-Team
Miszczyk added a comment to T257062: Lilypond seemingly not subject to restrictions (CVE-2020-29007).

I think I found another issue: https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/extensions/Score/+/refs/heads/master/includes/Score.php#673

Jul 3 2020, 4:50 PM · MW-1.36-notes (1.36.0-wmf.1; 2020-07-21), MW-1.35-notes (1.35.0-wmf.41; 2020-07-14), Wikimedia-Incident, WMF-General-or-Unknown, MediaWiki-extensions-Score, Security, Security-Team