mirror of https://github.com/scrapy/scrapy.git
Add security warning about pickle files in JOBDIR (#7274)
* Add security warning about pickle files in JOBDIR The job directory contains files serialized with pickle (spider.state, request queues), which can execute arbitrary code when loaded. Add a warning so users know to treat JOBDIR with the same trust level as their project code. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Make JOBDIR security warning more concise and accurate Simplify the warning to focus on treating the job directory as trusted, without mentioning specific serialization details. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
3fe89a211b
commit
da1a6b7ebc
|
|
@ -31,6 +31,10 @@ job (i.e. a spider run), so that if stopped cleanly, it can be resumed later.
|
|||
.. warning:: This directory must *not* be shared by different spiders, or even
|
||||
different jobs of the same spider.
|
||||
|
||||
.. warning:: Treat the job directory with the same security care as your
|
||||
Scrapy project source code. Do not point ``JOBDIR`` to a path that
|
||||
untrusted parties can write to.
|
||||
|
||||
See also :ref:`job-dir-contents`.
|
||||
|
||||
How to use it
|
||||
|
|
|
|||
Loading…
Reference in New Issue