Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Security issue: Unsanitized DB connection/write #41

Open
bondjimbond opened this issue Jun 6, 2024 · 2 comments
Open

Security issue: Unsanitized DB connection/write #41

bondjimbond opened this issue Jun 6, 2024 · 2 comments
Assignees

Comments

@bondjimbond
Copy link

Security issue identified by DGI:

    if (!empty($_POST['data'][strtoupper('Ark_ID')])) { // any pending data must has Ark_ID column
        $noid = Database::dbopen($_GET["db"], dbpath(), DatabaseInterface::DB_WRITE);
@HyphenHook
Copy link
Contributor

@bondjimbond

Could we get more information regarding what form of sanitation is needed here? We do have a database existence check in place. Also can we get more information regarding security issues with $_SERVER.

@bondjimbond
Copy link
Author

I don't really know the details; the issue was reported to me by DGI when they were trying out connections with the arks-service server. Based on this and some other issues identified (e.g. #40) they estimated a lot more work they'd need to do, so I asked them to stop working on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants