Replies: 1 comment
-
You mean as described here? Unfortunately 3.x users are out of luck since it won't get any new features. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently SQLAlchemy jobstore seems to be doing plain
pickle.dumps
serialization on the job objects, writing that to a string SQL column and then loading those off from there withpickle.loads
. This is a bit unsafe since if a malicious actor has access to write to the SQL database they can add a serialized object with overridden methods such as__getitem__
and__getattr_
which will be invoked when loading the jobs.apscheduler/apscheduler/jobstores/sqlalchemy.py
Lines 130 to 148 in a224747
I'm wondering whether it would be possible to serialize the jobs to some JSON format/etc where SQL write -> arbitrary code execution vulnerabilities would be harder to pull off. Is there a hard dependence on using
pickle
(e.g. necessity to serialize functions) or would it be possible to avoid using pickle?Beta Was this translation helpful? Give feedback.
All reactions