[wp-trac] [WordPress Trac] #55942: Add a "type" field to the meta and options tables
WordPress Trac
noreply at wordpress.org
Sat Mar 11 15:14:02 UTC 2023
#55942: Add a "type" field to the meta and options tables
-------------------------------------------------+-------------------------
Reporter: azaozz | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Future
| Release
Component: Database | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests needs- | Focuses:
testing | performance
-------------------------------------------------+-------------------------
Comment (by barry.hughes):
> Unless someone "hacks" the values directly in the database.
This implies (to me) that the only way this system can be compromised is
when a bad actor anyway has unfettered access to the server, or to the
database, and if that's the case all hope is lost ... but I don't think
that is necessarily true. It's not inconceivable that a plugin could be
'tricked' into serializing a complex type, and attacks may be chained
across multiple plugins. However, I understand this could be too
theoretical or simply out of scope.
> Thinking the simpler/more straightforward solution would be to set the
type automatically depending on the data.
💯
Yes, that is a straightforward approach and would still represent a nice
iteration on the Options API.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55942#comment:31>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list