php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #46291 Access problem with submitted text containing word VALUES
Submitted: 2008-10-14 15:04 UTC Modified: 2008-10-14 15:14 UTC
From: micromas at arcor dot de Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 5.2.6 OS: Debian Linux 2.6.20
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: micromas at arcor dot de
New email:
PHP Version: OS:

 

 [2008-10-14 15:04 UTC] micromas at arcor dot de
Description:
------------
I created a form with a textarea named "editContent" and a submit button named "btnSave":

  <form name="editForm" action="<?php echo $_SERVER["PHP_SELF"]; ?>" method="post" enctype="multipart/form-data">
  <textarea name='editContent' style='width: 550px; height: 400px;' wrap='off'>
  <?php htmlspecialchars($txt); ?>
  </textarea>
  <input type="submit" name="btnSave" value="Save">

The textarea is used for editing php files. Whenever there is a file containg an sql statement containing the word VALUES (e. g. for insert) then I get this error message after submitting:

"You don't have permission to access /folder/script.php on this server."

Reproduce code:
---------------
$query="INSERT INTO TABLE1 (FIELD1, FIELD2) VALUES (1,2)"; (Part of submitted text)

Expected result:
----------------
No error message.

Actual result:
--------------
"You don't have permission to access /folder/script.php on this server." This happens only if the text contains the word VALUES.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-10-14 15:14 UTC] scottmac@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

Your host probably has some sort of "security" module that is causing this. Nothing to do with PHP here.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 20 07:01:34 2024 UTC