webMAN-MOD icon indicating copy to clipboard operation
webMAN-MOD copied to clipboard

[Feature Request] ps3netsrv - Read only flag

Open NiQ1 opened this issue 4 months ago • 1 comments

Right now the only form of security that ps3netsrv has is an IP whitelist, which unfortunately can't really be considered security - if a PC on the LAN is infected with malware it can just set the PC's IP address to the PS3 (when the console itself is switched off and therefore won't conflict) and access the server. The best course of action would be to add some sort of password authentication, but unfortunately that would break compatibility with old client, some of which are not open source.

I would like to suggest adding a command line or configuration option that runs ps3netsrv in read only mode, so if any malicious actor manages to get access to the server, at least they won't be able to delete all your games and movies. I would assume that most people don't require write access very often, so they can run it in read-write mode only when they need to copy something off the console, and run it in read only mode in all other cases.

Thank you!

NiQ1 avatar Aug 03 '25 10:08 NiQ1

Thank you for your feedback and suggestion. I implemented the read-only flag as a compilation flag.

The following ps3netsrv commands were excluded from the new binary ps3netsrv_ro:

NETISO_CMD_WRITE_FILE NETISO_CMD_READ_DIR_ENTRY NETISO_CMD_READ_DIR_ENTRY_V2 NETISO_CMD_CREATE_FILE NETISO_CMD_DELETE_FILE NETISO_CMD_MKDIR NETISO_CMD_RMDIR

The READ_DIR_ENTRY commands are not used by webMAN MOD or multiMAN. They were superseded by NETISO_CMD_READ_DIR

You can try this test build ps3netsrv_20250803.zip

aldostools avatar Aug 03 '25 13:08 aldostools