php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #80773 $_GET['hash'] removes end of long strings
Submitted: 2021-02-19 00:32 UTC Modified: 2021-02-28 04:22 UTC
From: tomaj46400 at bulkeye dot com Assigned:
Status: No Feedback Package: URL related
PHP Version: 8.0.2 OS: Irrelevant
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: tomaj46400 at bulkeye dot com
New email:
PHP Version: OS:

 

 [2021-02-19 00:32 UTC] tomaj46400 at bulkeye dot com
Description:
------------
1) Goto http://test_script_URL/?hash=777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777z&bash=777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777z

Observe that
$_GET['hash'] gets set to '7777[and more 7s]'
while
$_GET['bash'] gets set to '7777[and more 7s]z'

Test script:
---------------
<?php
  echo 'HASH' . $_GET['hash'];
  echo '<br>';
  echo 'BASH' . $_GET['bash'];
?>


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-02-19 00:39 UTC] requinix@php.net
-Status: Open +Status: Feedback
 [2021-02-19 00:39 UTC] requinix@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves.

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external
resources such as databases, etc. If the script requires a
database to demonstrate the issue, please make sure it creates
all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.

This is highly unlikely to be a bug in PHP. Keep looking.
 [2021-02-28 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 12:01:27 2024 UTC