recently published a technical analysis of a privilege escalation issue in ERPNext, covering how the vulnerability works, the potential security impact, and the conditions required for exploitation.
The write-up also discusses the affected functionality and security considerations for ERPNext/Frappe deployments.
Had a read through and cross-checked against a recent bench all the stuff reported seems (accodring to the blog entry to be fixed). So as long as you’re on a current release you should be fine.
No software is ever going to be 100% free of this stuff, so honestly it’s nice to see it reported and fixed properly rather than sat on.
Thanks for taking the time to read through it and cross-check it against a recent Bench. Exactly, the main takeaway is that affected installations should update to a current release. Glad to see the fixes are in place, and I appreciate the discussion around it.
Thank you for putting this together and reporting it here.
When I was at Frappeverse 2023, I asked some people if there was an OSCP at Frappe. Nobody even had an idea of what that means. Just one person from the visitors knew what this abbreviation means and why the concept is important. Of course, you can have the knowledge and the skills without any (or other) certification, but at the time those who provide the OSCP cert were still kind of a vanguard.
Errors in programming often are a result of personal blind spots. These can be institutional (widespread in an organisation), in other words, they became part of the organisation’s culture, and then it can get dangerous or ugly.
To understand what I mean, read “Feynman’s Personal Observations on the Reliability of the Shuttle” regarding “The Challenger Disaster”, which was precisely caused by widespread and severe institutional blind spots at NASA. They had a culture of not looking at problems. Then the space shuttle fell out of the sky due to an explosion with several people on board. This event was on all the TV channels at the time.
That’s one of the extreme cases. But the principle can exist in smaller communities and organisations. That’s why vigilance is always useful, and people with non-uniform thinking who won’t stop raising their observations.
Here are two links to the report and that world-renown physicist:
Thank you very much for the technical investigation and detailed write-up!
The “SELECT … INTO OUTFILE ‘/path’” part is very interesting.
Maybe we could implement a read-only mode when executing templates? This would stop writes at the ORM layer, given that templates and scripts (notification conditions, assignment rules’ conditions) are the most probable sources of security vulnerabilities.