-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Stack overflow on malformed step input #11305
Comments
Thanks, we will look into it. SPE-1886 |
This is quite unfortunate. The problem occurs somewhere deep in OCCT (the library we use to load STEP files) and I did not find a way to detect it early enough. The log messages before the crash show that OCCT is actually aware of some problem, but it seems to keep going. I attempted to run the same check separately, but I was not successful as I am completely unfamiliar with the codebase. I did not find any way around it (something like "stop on errors" or similar). I also attempted to report the bug to OCCT authors, because I believe that's where it should eventually be fixed, but I am unable to use their issue tracker due to some permission issues.
Thanks. |
Hello, is this (/~https://github.com/Open-Cascade-SAS/OCCT) where the code for this dependency resides? Am I correct in thinking that there is no simple way to compile this dependency statically into PrusaSlicer? using Also, as for my request for private contact, should I just try emailing security@prusa3d.com or is there a different preferred way? Thanks. |
Yes.
No, it is quite the opposite. Building the dependencies is about a single CMake call, using them is about adding one directory to
Sorry about not answering this one. There is no dedicated address for security issues in PrusaSlicer only, but it will get to us if you send it to security@prusa3d.com. |
I again spend some time trying to log in into OpenCASCADE issue tracker to report it, but I was simply not able to. I only have anonymous read-only access. @vglukhik Would you be able to file this bug report into your system and evaluate whether it indeed is a problem in the library? Sorry for tagging you like this, but creating an account and logging in the issue tracker is a task above my capabilities. Thanks. @deus-ex-silicium The report you sent reached us and we are currently processing it. |
Hello!
If you trying to login to Mantis using GutHub account, I will not reach success, sorry. If you want use Mantis, you must create separated account.
What issue you are talking about? I can create bug report instead of you if you will provide me some more information.
Also you can ask @dmitry ***@***.***>. He will manage you issue and resolve it with pleasure.
…---
Best regards,
Vadim Glukhikh
DevOps engineer | Open Cascade
Mob.: +7 916 263 96 06
Mob.: +351 915 883 256
www.opencascade.com<http://www.opencascade.com/>,
www.capgemini.com<http://www.capgemini.com/>
[cid:b943a724-8cbc-43af-8a65-eb53c0779924]
Please consider the environment and do not print this email unless absolutely necessary. Open Cascade encourages environmental awareness.
CONFIDENTIALITY NOTICE: This message contains information that may be privileged or confidential. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
________________________________
От: Lukáš Matěna ***@***.***>
Отправлено: 6 октября 2023 г. 09:05
Кому: prusa3d/PrusaSlicer ***@***.***>
Копия: Vadim GLUKHIKH ***@***.***>; Mention ***@***.***>
Тема: Re: [prusa3d/PrusaSlicer] Stack overflow on malformed step input (Issue #11305)
I again spend some time trying to log in into OpenCASCADE issue tracker to report it, but I was simply not able to. I only have anonymous read-only access.
@vglukhik</~https://github.com/vglukhik> Would you be able to file this bug report into your system and evaluate whether it indeed is a problem in the library? Sorry for tagging you like this, but creating an account and logging in the issue tracker is a task above my capabilities. Thanks.
@deus-ex-silicium</~https://github.com/deus-ex-silicium> The report you sent reached us and we are currently processing it.
—
Reply to this email directly, view it on GitHub<#11305 (comment)>, or unsubscribe</~https://github.com/notifications/unsubscribe-auth/A7FDN6R7BVZBOXGRKODGOFDX563TXAVCNFSM6AAAAAA4Y4WDSOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONJQGE2TSNJQGU>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
@vglukhik Thanks. The issue I am talking about is described above in this post: #11305 (comment). As far as I can tell, it is an infinite recursion on a malformed STEP file. Some errors are detected before that, but it seems there is no way to bail out on them. |
Description of the bug
Hello, I have found an issue where a stack overflow bug occurs in PrusaSlicer. During the crash an address sanitizer report shows the stack filled with function frame calls to StepShape_OrientedEdge::EdgeEnd() and StepShape_OrientedEdge::EdgeStart() from the OCCTWrapper.so library. I suspect this is a recursive loop gone wild somewhere. I have reproduced the issue by importing the malformed step file on windows and linux using PrusaSlicer 2.6.1. Below you can find the ASAN report and the malformed step file which causes the issue. This could be potentially abused by someone to cause a simple DoS, I would expect PrusaSlicer to give up when trying to import this malformed input and potentially display an error message about the failure.
More importantly, I wanted to ask about the possibility of reporting a security issue in PrusaSlicer with more impact, do you have a preferred way of disclosing the details with the dev team without it becoming public immediately ? I found an email for security issues on the prusa3d.com (security@prusa3d.com) but that seems to be only for the web app.
Thanks for your time.
Project file & How to reproduce
stack-overflow.zip
Checklist of files included above
Version of PrusaSlicer
Version 2.6.1+win64
Operating system
Windows 10 Pro 22H2 OS Build 19045.3448
Printer model
Prusa MK3S+
The text was updated successfully, but these errors were encountered: