BeeStation / BeeStation-Hornet

99.95% station. 0.05% bees
https://beestation13.com
GNU Affero General Public License v3.0
200 stars 682 forks source link

Admin proc call rustg warning tells proc name #11868

Closed EvilDragonfiend closed 1 week ago

EvilDragonfiend commented 1 week ago

About The Pull Request

Minour improvement of

Admin proc call rustg warning tells proc name We'd need to know which sorcery they're trying

Why It's Good For The Game

better investigation

Testing Photographs and Procedure

image

Changelog

:cl: code: minor notification for proc call warning /:cl:

PowerfulBacon commented 1 week ago

Can you HTML inject the proc name?

EvilDragonfiend commented 1 week ago

Can you HTML inject the proc name?

If I am right, there's no href interpreter in DM that allows you to call a customised proc name.

EvilDragonfiend commented 1 week ago

Hmm, I think one thing is possible... hang on

EvilDragonfiend commented 1 week ago

Can you HTML inject the proc name?

Hmm, I guess there isn't such thing.

PowerfulBacon commented 1 week ago

Does capped input strip away html tags? It wouldn't matter if the proc exists or not if you typed "rustg

test

"

EvilDragonfiend commented 1 week ago

Does capped input strip away html tags? It wouldn't matter if the proc exists or not if you typed "rustg

test

"

image

funnily it says so

image image

It appears it strips well.

PowerfulBacon commented 1 week ago

Oh that's because the / symbol is the splitter for the text, so it's treating anything to the left of as the typepath and not the proc name. Try to do rustg<a href='google.com'>aaaa There's definitely ways to get dangerous scripts without the / symbol since you can use JS to replace the / by char code

EvilDragonfiend commented 1 week ago

image You are right. It was not safe. now done by rustg_test<a href='www.google.com'>this_is_google. <> is now handled by byond encode

PowerfulBacon commented 1 week ago

The other ones are vulnerable, but those ones send it to your own chat. Was particularly concerned about this one since it sends to all

EvilDragonfiend commented 1 week ago

The other ones are vulnerable, but those ones send it to your own chat. Was particularly concerned about this one since it sends to all

As long as we are careful of this, it will be good to identify which sorcery they're trying, and will be a good chance to research.