Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1317394

Summary: Error message while testing Cross-Site scripting nonce parameter.
Product: Red Hat Enterprise Linux 8 Reporter: Amol K <akahat>
Component: pki-coreAssignee: Christina Fu <cfu>
Status: CLOSED UPSTREAM QA Contact: Asha Akkiangady <aakkiang>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.3CC: ascheel, mharmsen, nkinder
Target Milestone: rcKeywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-02-07 23:13:04 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Amol K 2016-03-14 08:23:42 UTC
Description of problem:

After execution of following URL got unrecoverable error message.


Version-Release number of selected component (if applicable):
10.2.6-10.el7pki

How reproducible:
Always

Steps to Reproduce:
1. Authenticate with a CA agent certificate.
2. The following url is being used to test Cross-Site Scripting nonce parameter. 
3. In the browser paste the following url with your CA's host and agent port.

https://hostname:<secure-port>/ca/agent/ca/profileProcess?requestId=%20%2b%20requestId%20%2b%20&' + recordSet[i].defListSet[j].defId +
'='%20%2b%20escapeValue(recordSet%5bi%5d.defListSet%5bj%5d.defVal)%20%2b%
20'&' + recordSet[i].defListSet[j].defId + '='%20%2b%20recordSet%5bi%
5d.defListSet%5bj%5d.defVal%20%2b%20'&' + recordSet[i].defListSet[j].defId +
'='%20%2b%20recordSet%5bi%5d.defListSet%5bj%5d.defVal%20%2b%20'&' +
recordSet[i].defListSet[j].defId + '='%20%2b%20recordSet%5bi%5d.defListSet%
5bj%5d.defVal%20%2b%20'&' + recordSet[i].defListSet[j].defId + '=%20%2b%20c%
5bk%5d%20%2b%20&' + recordSet[i].defListSet[j].defId +
'=false&requestNotes='%20%2b%20requestNotes%20%2b%20'&op=unassign&nonce=
%5c%22%22%3c%73%43%72%49%70%54%3e%61%6c%65%72%74%28%35%31%32%31%33%29%3c%2f%
73%43%72%49%70%54%3e&submit=submit


Actual results:


The Certificate System has encountered an unrecoverable error.

Error Message:
java.lang.NumberFormatException: Illegal embedded sign character

Please contact your local administrator for assistance.


Expected results:


Additional info:

Comment 1 Matthew Harmsen 2016-03-23 00:33:00 UTC
(In reply to Amol K from comment #0)
> Description of problem:
> 
> After execution of following URL got unrecoverable error message.
> 
> 
> Version-Release number of selected component (if applicable):
> 10.2.6-10.el7pki
> 
> How reproducible:
> Always
> 
> Steps to Reproduce:
> 1. Authenticate with a CA agent certificate.
> 2. The following url is being used to test Cross-Site Scripting nonce
> parameter. 
> 3. In the browser paste the following url with your CA's host and agent port.
> 
> https://hostname:<secure-port>/ca/agent/ca/
> profileProcess?requestId=%20%2b%20requestId%20%2b%20&' +
> recordSet[i].defListSet[j].defId +
> '='%20%2b%20escapeValue(recordSet%5bi%5d.defListSet%5bj%5d.defVal)%20%2b%
> 20'&' + recordSet[i].defListSet[j].defId + '='%20%2b%20recordSet%5bi%
> 5d.defListSet%5bj%5d.defVal%20%2b%20'&' + recordSet[i].defListSet[j].defId +
> '='%20%2b%20recordSet%5bi%5d.defListSet%5bj%5d.defVal%20%2b%20'&' +
> recordSet[i].defListSet[j].defId + '='%20%2b%20recordSet%5bi%5d.defListSet%
> 5bj%5d.defVal%20%2b%20'&' + recordSet[i].defListSet[j].defId + '=%20%2b%20c%
> 5bk%5d%20%2b%20&' + recordSet[i].defListSet[j].defId +
> '=false&requestNotes='%20%2b%20requestNotes%20%2b%20'&op=unassign&nonce=
> %5c%22%22%3c%73%43%72%49%70%54%3e%61%6c%65%72%74%28%35%31%32%31%33%29%3c%2f%
> 73%43%72%49%70%54%3e&submit=submit
> 
> 
> Actual results:
> 
> 
> The Certificate System has encountered an unrecoverable error.
> 
> Error Message:
> java.lang.NumberFormatException: Illegal embedded sign character
> 
> Please contact your local administrator for assistance.
> 
> 
> Expected results:
> 
>

What was expected?

Basically, this appears to work as expected as the cross-site attack appeared to be thwarted. 

> Additional info:

Comment 2 Amol K 2016-03-23 12:28:13 UTC
Expected Outcome is:

Request
-------------

Request Information
===============================================
| Error Code:       | 1                       |
===============================================
| Error Reason:     | Operation Not Found     |
===============================================



But we got:
java.lang.NumberFormatException: Illegal embedded sign character

Comment 5 Matthew Harmsen 2016-05-04 18:25:01 UTC
Upstream ticket:
https://fedorahosted.org/pki/ticket/2315

Comment 6 Matthew Harmsen 2016-05-04 18:26:58 UTC
Per Bug Triage of 05/03/2016: RHEL 7.4

NOTE: Discussed and confirmed with aakkiang over IRC.

Comment 8 Matthew Harmsen 2018-04-17 00:39:29 UTC
Per 10.5.x/10.6 Triage:   10.6

cfu: fix looks relatively simple

Comment 9 Matthew Harmsen 2018-07-03 23:25:24 UTC
Moved to RHEL 7.7.