★ wanayoo — archive 1999 https://github.com/phpmyadmin/sql-parser/issues/270Nouvelle recherche | Portail wanayoo
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

sscanf() has been disabled for security reasons #270

Closed
williamdes opened this issue Nov 24, 2019 · 0 comments
Closed

sscanf() has been disabled for security reasons #270

williamdes opened this issue Nov 24, 2019 · 0 comments
Assignees
Labels
bug
Milestone

Comments

@williamdes
Copy link
Member

@williamdes williamdes commented Nov 24, 2019

sql-parser/src/Token.php

Lines 261 to 271 in 69ee110

sscanf($ret, '%x', $ret);
$ret = -$ret;
} else {
sscanf($ret, '%x', $ret);
}
} elseif (($this->flags & self::FLAG_NUMBER_APPROXIMATE)
|| ($this->flags & self::FLAG_NUMBER_FLOAT)
) {
sscanf($ret, '%f', $ret);
} else {
sscanf($ret, '%d', $ret);

Some people disable sscanf for some reasons

And this issue is appearing on our error reporting server since phpMyAdmin 4.5

@williamdes williamdes added the bug label Nov 24, 2019
williamdes added a commit to niconoe-/sql-parser that referenced this issue Feb 9, 2020
…s because sscanf can be disabled for security reasons.

Fixes: phpmyadmin#270
@williamdes williamdes added this to the 4.5.1 milestone Feb 9, 2020
@williamdes williamdes self-assigned this Feb 9, 2020
williamdes added a commit that referenced this issue Feb 9, 2020
…e sscanf can be disabled for security reasons.

Pull-request: #286
Fixes: #270

Signed-off-by: William Desportes <williamdes@wdes.fr>
williamdes added a commit that referenced this issue Feb 9, 2020
Pull-request: #286

Signed-off-by: William Desportes <williamdes@wdes.fr>
@williamdes williamdes closed this in 8ea41bc Feb 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

1 participant
You can’t perform that action at this time.