ERPNext Privilege Escalation: Technical Security Analysis and Impact

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.

:link: Full technical write-up: ERPNext Privilege Escalation: Full Takeover | PentestPilot

If you’re running or testing ERPNext, I’d be interested in hearing your thoughts and experiences around this issue.

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:

Report of the Presidential Commission on the Space Shuttle Challenger Accident

The Challenger Disaster – Richard Feynman

Hi @Peer

Very interesting read

I could not find the Challenger Disaster on https://youtu.be/Iq_r7IcNmUk He must have missed it

Thanks

This was January 28th, 1986 at 11:39am EDT

Here is one video of it (https://www.youtube.com/watch?v=j4JOjcDFtBE):

Thank you very much for the technical investigation and detailed write-up! :heart_hands:
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.