[原文]Invalid SQL syntax error in blog.php in phpBB Blog 2.2.2 and earlier allows remote attackers to obtain the full path of the application via an invalid permalink parameter to index.php, which produces an invalid SQL query that leaks the full pathname in a SQL syntax error message. NOTE: this was originally claimed to be SQL injection, but a cleansing step strips all non-digit characters and leaves an empty permalink argument, which leads to the syntax error.
phpBB Blog index.php permalink Parameter SQL Injection
Remote / Network Access
Loss of Confidentiality,
Loss of Integrity
The phpBB Blog has been reported to contain a flaw that may allow an attacker to carry out an SQL injection attack. The original report indicated that input passed to the 'permalink' variable of the index.php script was not properly sanitized. After subsequent evaluation and coordination with the vendor, OSVDB has determined that not passing any input to the 'permalink' variable will cause an SQL error, suggesting injection capability. However, source code review and additional testing show that any non-numeric input is stripped before being passed to the query. This makes SQL injection attacks impossible.
As a result of the failed query, the full installation path may be disclosed. While such information is relatively low risk, it is often useful in carrying out additional, more focused attacks.
The vulnerability reported is incorrect. No solution required.