Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create SECURITY.md #878

Merged
merged 5 commits into from
May 13, 2020
Merged

Create SECURITY.md #878

merged 5 commits into from
May 13, 2020

Conversation

Flyingmana
Copy link
Contributor

To make the way reporting more clear

still a draft / the Github default

@kkrieger85
Copy link
Contributor

@Flyingmana Maybe we could recommend https://github.com/kkrieger85/magento-module-security-txt and add additional information about how to report issues to OpenMage

@colinmollenhour
Copy link
Member

Is there a way you can see to include a default static security.txt (referring to OpenMage) that the user can still override easily (referring to themselves)? I suppose they could always use Apache's Alias or nginx's location {} to override it if they wanted to. So I'd probably lean towards just adding a static .well-known/security.txt file to the repo since probably less than 0.1% of Magento sites have one of these files already.

@kkrieger85
Copy link
Contributor

If we would extend getVersionInfo() https://github.com/OpenMage/magento-lts/blob/1.9.4.x/app/Mage.php#L169 by adding "security"-hint, it would be possible to automatically add OpenMage reference to security.txt

Proposal:

        return array(
            'major'       => '1',
            'minor'       => '9',
            'revision'    => '4',
            'patch'       => '3',
            'stability'   => '',
            'number'      => '',
            'name'        => 'OpenMage',
            'source'      => 'https://github.com/OpenMage/magento-lts',
            'security'    => 'https://github.com/OpenMage/magento-lts/issues',
        );

Name should be Unique - but that would be quite hard to convince other Magento1 Forks to adopt this.
Source should be a link to original source code
Security should be a link to page where someone could report security issues

@colinmollenhour
Copy link
Member

What are the other active M1 forks besides OpenMage and mage-one.com?

Shouldn't the security url be https://github.com/OpenMage/magento-lts/security/advisories/new ?

@Flyingmana
Copy link
Contributor Author

So the primary usecase of this file is, so people wanting to report a security issue in OpenMage know where and how.
The module of @kkrieger85 is for offering websites a way to contact them.

For OpenMage we do want to explain an alternative way to report security issues in a more private way instead of creating a public github issue.
The Security Advisory may be the best for this. Will test if this can be used by external people to report one. (Did let it test, outsiders just see a 404 page)
So I would fall back to my initial suggestion of having voluntairs provide their email for contact, and they then create internally the advisory

Regarding Other Forks, I started a list recently https://openmage.github.io/magento-lts/alternatives.html

@colinmollenhour
Copy link
Member

Bummer on the 404.. Is there a way to make the submission available to anyone with a github account? Looks like a nice feature but not as useful if only maintainers can use it...

Hey, @mark-netalico, are you interested in joining OpenMage to help maintain M1? If not, what are your reservations?

@mark-netalico
Copy link
Member

@colinmollenhour 100%. I started Mage1SE because I think there needs to be some sort of funding/sponsorship of bug bounties and I'm working to set that up. But I already talked to @Flyingmana about having some official collaboration (especially in the case of something like a zero-day vulnerability).

@kkrieger85
Copy link
Contributor

@mark-netalico AFAIK: Bug bounties and zero day is the idea behind https://mage-one.com/
I like the idea of an open source bug bounty program :D

@kkrieger85
Copy link
Contributor

Alternatives: https://github.com/bragento/magento-core
and there is a fork by some french, but I can't remember the name

@mark-netalico
Copy link
Member

@kkrieger85 Indeed. I have a lot of concerns with the viability/legality/ethic of Mage One... Unfortunately, I don't think it's a viable long term solution as I don't they they'll be able to truly keep the security updates closed source because doing so would be an OSL 3.0 license violation as it requires Derivative Work disclosure. They'll try to keep them private, but their customers will eventually release them publicly. And I think that the project will shut down fairly quickly after the EOL due to lack of funding.

@colinmollenhour
Copy link
Member

I updated the default template, any objection to merging it so I can test the security advisories page after it is published? I'm wondering if the link only works for non-project members after the SECURITY.md is published.

@Flyingmana
Copy link
Contributor Author

you are linking to "https://github.com/OpenMage/magento-lts/security/advisories/new"

this was the last time I checked not available for non-Project-Members

from Jan 21

The Security Advisory may be the best for this. Will test if this can be used by external people to report one. (Did let it test, outsiders just see a 404 page)

So this is misleading. Or was there a change?

@Flyingmana
Copy link
Contributor Author

see https://help.github.com/en/github/managing-security-vulnerabilities/creating-a-security-advisory

Anyone with admin permissions to a repository can create a security advisory.

@colinmollenhour
Copy link
Member

Ahh, thanks. It is odd to me that they don't make this feature public... I updated the language to just start by email for now. We can update as things change. Does it look ok for merge now?

@sreichel sreichel marked this pull request as ready for review May 11, 2020 20:55
sreichel
sreichel previously approved these changes May 11, 2020
Copy link
Contributor

@tmotyl tmotyl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets make version less specific so we don't have to change it once new release comes out

Co-authored-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
@colinmollenhour colinmollenhour merged commit 1c28572 into 1.9.4.x May 13, 2020
@colinmollenhour
Copy link
Member

Confirmed that this page is now accessible without Github authentication:
https://github.com/OpenMage/magento-lts/security/policy

@colinmollenhour colinmollenhour deleted the Flyingmana-patch-6 branch May 13, 2020 00:42
@colinmollenhour
Copy link
Member

Note, the Security policy references the README but the list of maintainers in the README doesn't actually have email addresses, just links to Github profiles, but Github profile don't expose email addresses either.. I think perhaps we should instead link to the HackerOne page. Thoughts?

@tmotyl
Copy link
Contributor

tmotyl commented May 13, 2020

I definitelly prefer one contact poinf for security, otherwise it doesnt look professional, so either openmage emaik or hacker one pge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants