Sensitive Cookie Without 'HttpOnly' Flag in pkp/ojs

Valid

Reported on

Oct 7th 2021


✍️ Description

HTTPOnly attribute is not set for session cookies "OJSSID" in the application.

Proof of Concept

Check this for POC: Image

Impact

When a cookie doesn’t have an HttpOnly flag, it can be accessed through JavaScript, which means that an XSS could lead to cookies being stolen. These include session cookies that can make it easier to achieve account/session takeover.

We have contacted a member of the pkp/ojs team and are waiting to hear back 2 months ago
We have contacted a member of the pkp/ojs team and are waiting to hear back 2 months ago
Alec Smecher validated this vulnerability 2 months ago
0x7zed has been awarded the disclosure bounty
The fix bounty is now up for grabs
Alec Smecher
2 months ago

Fixed: https://github.com/pkp/pkp-lib/issues/7373

Not necessarily a comment on this specific issue, but a heads-up that I'm going to be intentionally slow to confirm and resolve trivial reports. It looks like there's a bit of a gold rush on this platform and I don't want to encourage a flood of low-value entries.

Alec Smecher confirmed that a fix has been merged on 9c663f 2 months ago
Alec Smecher has been awarded the fix bounty