-
Notifications
You must be signed in to change notification settings - Fork 36
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
Socket Security: Obfuscated require #45
Comments
Hi, thanks for your attention.
That's exactly what's happening... The Line 8 in a0a1001
Do you know of any options in the |
Maybe some of the Socket Security team have some tips on that, such as @bmeck, @101arrowz or @feross |
I have to say, it seemed a bit odd to me because (I understand there might be things I'm not taking into account regarding reasoning behind security related stuff) |
Hi, در این لحضه که دارم این متن رو مینویسم، اعتقادم اینه که اگر شما برداری syntax ماژول ها رو عوض کنید و تبدیلشون کنید به ESM، فکر نمیکنم مشکلی پیش بیاد ولی نمیتونم با قطعیت بگم (یه مدتی هست خیلی در جریان تغییرات وب نیستم)، مبنای این حرفم اینه مسائل زیره، یک موضوعی که مهمه اینه که وقتی webpack یا این کتابخانه های بستهبندی کد (مثل rollup وامثالهم) بر میخورن به یک فایلی که این syntax جدید رو دارن چی میشه، که این فکر نمیکنم مشکلی باشه، متاسفانه الان نمیتونم خودم اینو تست کنم، ,ولی میشه یه فولدر درست کرد، بعد شما این سورسکد جلالی (index.js) رو بزاری توی فولدر، بعد کنارش یه فایل درست کرد توی یکی دوتا توابع جلالی رو با سینتکس جدید import کنه، بعد بریم مثلا وبپک یا رولآپ (یا vite، یا چندتا از این چیزا) نصب کنیم، و ببینیم چی میشه فعلا غیر از این موضوع "پشتیبانی روبهعقب" مشکلی دیگری متصور نیستم برای اینکه syntax ماژول ها تغییر داده بشه. |
@m-ahmadi by the way, the Socket Security page for the latest version of So maybe this issue can be closed? |
@karlhorky Well, that's a good thing, but the underlying problem is still need to dealt with, and that's whether to switch from |
Here is something we can't do currently: <script type="module">
import { toGregorian } from './node_modules/jalaali-js/...';
</script> But let's say we create another file in Then above code becomes possible. |
Hey @m-ahmadi Thanks for your comments. I'm open to the upgrade of the structure and using ES modules. We can even increase the major version so that anyone using this package will not get into problems, and can update to the latest version if they want to. However, I'm very busy at the moment. If you can provide a PR, I appreciate it. |
Hi there, first of all, thanks for this package!
I wanted to report the "Obfuscated require" security problem with
[email protected]
that is reported by @feross' new Socket Security platform:It seems to be in the first line of the
dist/index.js
file - maybe added by build scripts / packaging / bundler somehowEven if this isn't a real security issue, it may be worth it to try to avoid generating this warning, to avoid users seeing it and either reporting it again or looking for an alternative.
The text was updated successfully, but these errors were encountered: